/* ============================================
   3 Suns Creative — Project Builder Styles
   ============================================ */

.pb-wrap {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: inherit;
    color: #222;
}

.pb-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.pb-progress-bar {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
}

.pb-progress-fill {
    height: 100%;
    background: #f26b1f;
    transition: width 0.3s ease;
}

.pb-progress-text {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.pb-step {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    min-height: 300px;
}

.pb-step h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #222;
}

.pb-step-hint {
    color: #666;
    margin-bottom: 1.5rem;
}

.pb-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.pb-btn {
    background: #f26b1f;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.pb-btn:hover {
    background: #d85a13;
    transform: translateY(-1px);
}

.pb-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.pb-btn-secondary {
    background: #fff;
    color: #444;
    border: 1px solid #ddd;
}

.pb-btn-secondary:hover {
    background: #f7f7f7;
    color: #222;
}

[x-cloak] { display: none !important; }


/* ============================================
   Tile grid
   ============================================ */

.pb-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .pb-tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pb-tile-grid {
        grid-template-columns: 1fr;
    }
}

.pb-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.25rem;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    width: 100%;
}

.pb-tile:hover {
    border-color: #f26b1f;
    background: #fff8f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.pb-tile.is-selected {
    border-color: #f26b1f;
    background: #fff4ec;
    box-shadow: 0 0 0 1px #f26b1f inset;
}

.pb-tile-icon {
    width: 32px;
    height: 32px;
    color: #f26b1f;
    margin-bottom: 0.75rem;
    stroke-width: 1.75;
}

.pb-tile-label {
    font-weight: 600;
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.25rem;
}

.pb-tile-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.pb-tile-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 22px;
    height: 22px;
    background: #f26b1f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pb-tile.is-selected .pb-tile-check {
    opacity: 1;
    transform: scale(1);
}

.pb-tile-check svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}


/* ============================================
   Form fields
   ============================================ */

.pb-field {
    margin-bottom: 1.5rem;
}

.pb-field-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 0.4rem;
}

.pb-field-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.4rem;
    line-height: 1.4;
}

.pb-input,
.pb-textarea,
.pb-select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
    color: #222;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.pb-input:focus,
.pb-textarea:focus,
.pb-select:focus {
    border-color: #f26b1f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 107, 31, 0.15);
}

.pb-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.pb-input-narrow {
    max-width: 240px;
}

.pb-note {
    background: #fff8f3;
    border-left: 3px solid #f26b1f;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
    margin: 1rem 0 1.5rem;
    line-height: 1.5;
}

.pb-note strong {
    color: #222;
}

.pb-conditional {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #e5e5e5;
}


/* ============================================
   File upload
   ============================================ */

.pb-file-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pb-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pb-file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 6px;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    width: fit-content;
}

.pb-file-label:hover {
    border-color: #f26b1f;
    background: #fff8f3;
    color: #f26b1f;
}

.pb-file-label svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.pb-file-selected {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f7faf3;
    border: 1px solid #c8e0a8;
    border-radius: 6px;
    color: #2d5016;
    font-size: 0.9rem;
}

.pb-file-selected svg {
    color: #5a8c2a;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.pb-file-selected-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.pb-file-selected-size {
    color: #6b8e3d;
    font-size: 0.85rem;
    white-space: nowrap;
}

.pb-file-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.pb-file-remove:hover {
    color: #c33;
    background: #fff;
}

.pb-file-remove svg {
    width: 16px;
    height: 16px;
}

.pb-file-error {
    color: #c33;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
/* ============================================
   Contact form — two-column layout & checkbox
   ============================================ */

.pb-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .pb-field-row {
        grid-template-columns: 1fr;
    }
}

.pb-field-row .pb-field {
    margin-bottom: 1rem;
}

.pb-checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff8f3;
    border: 1px solid #f5d5b8;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pb-checkbox-field:hover {
    background: #fff4ec;
    border-color: #f26b1f;
}

.pb-checkbox-field input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 18px;
    height: 18px;
    accent-color: #f26b1f;
    flex-shrink: 0;
    cursor: pointer;
}

.pb-checkbox-label {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #444;
}

.pb-checkbox-label strong {
    color: #222;
    display: block;
    margin-bottom: 0.15rem;
}

.pb-required {
    color: #c33;
    margin-left: 2px;
}
/* ============================================
   Summary step — recap, outline, submit
   ============================================ */

.pb-summary-section {
    margin-bottom: 2rem;
}

.pb-summary-section:last-child {
    margin-bottom: 0;
}

.pb-summary-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f26b1f;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pb-summary-heading svg {
    width: 16px;
    height: 16px;
}

.pb-recap {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.pb-recap-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.92rem;
}

.pb-recap-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pb-recap-row:first-child {
    padding-top: 0;
}

.pb-recap-label {
    color: #888;
    font-weight: 500;
}

.pb-recap-value {
    color: #222;
    font-weight: 500;
}

@media (max-width: 600px) {
    .pb-recap-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

/* Outline phases */
.pb-outline {
    background: #fff;
    border: 2px solid #fff4ec;
    border-radius: 8px;
    padding: 1.5rem;
}

.pb-phase {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f5f5f5;
}

.pb-phase:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.pb-phase-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #f26b1f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.pb-phase-content {
    flex: 1;
}

.pb-phase-title {
    font-weight: 600;
    color: #222;
    margin-bottom: 0.2rem;
}

.pb-phase-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Bullet lists */
.pb-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pb-bullets li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.4rem 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #444;
}

.pb-bullets li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 0.55rem;
    background: #f26b1f;
    border-radius: 50%;
}

.pb-considerations li::before {
    background: #d9a017;
}

/* Submit button area */
.pb-submit-wrap {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.pb-btn-large {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.pb-submit-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #888;
}
/* Tighten top spacing of the builder */
.pb-wrap {
    margin-top: 0.5rem;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .pb-wrap {
        padding: 0rem;
        margin-top: 0;
    }
}