/* ============================================================
   Onboarding Form Styles
   ============================================================ */

.onboarding-header {
    background: var(--brand-navy);
    padding: 3rem 0 2rem;
    text-align: center; 
}

.onboarding-header h1 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.onboarding-subtitle {
    color: var(--text-light-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Progress Bar */
.progress-bar {
    max-width: 600px;
    margin: 0 auto;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 1;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.step-dot {
    display: none;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    padding: 0.35rem 0;
}

.progress-step.active {
    border-bottom-color: #4a6275;
}

.progress-step.active .step-label {
    color: var(--text-heading);
}

.progress-step.completed .step-label {
    color: #4a6275;
}

.progress-track {
    height: 4px;
    background: var(--surface-border-dark);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--brand-accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Form Container */
.onboarding-container {
    max-width: 800px;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-step > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.required {
    color: var(--brand-accent);
}

.form-help {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--surface-border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--surface-white);
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-accent-focus);
}

.input-error {
    border-color: var(--brand-red) !important;
}

.field-error {
    display: block;
    color: var(--brand-red);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Section Blocks */
.section-block {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.section-block h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    margin-top: 0;
}

.page-content-block {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: 0.75rem;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.page-content-block h3 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--surface-border);
}

/* Upload Zones */
.upload-zone {
    border: 2px dashed var(--surface-border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    margin-bottom: 1.25rem;
}

.upload-zone:hover {
    border-color: var(--brand-accent);
    background: rgba(255, 107, 74, 0.02);
}

.upload-zone.drag-over {
    border-color: var(--brand-accent);
    background: rgba(255, 107, 74, 0.05);
}

.upload-zone.has-files .upload-zone-content {
    display: none;
}

.upload-zone input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.upload-zone-content svg {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.upload-zone-content p {
    margin: 0 0 0.25rem;
    color: var(--text-dark);
}

.upload-formats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mini-upload {
    padding: 1rem;
}

.mini-upload .upload-zone-content svg {
    display: none;
}

/* Upload Preview */
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.upload-preview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface-white);
    border: 1px solid var(--surface-border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    max-width: 220px;
}

.upload-preview-item.preview-error {
    border-color: var(--brand-red);
    background: #fef2f2;
}

.preview-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.375rem;
}

.preview-file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.preview-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.preview-name {
    font-size: 0.8rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.preview-size {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.preview-error-msg {
    display: block;
    font-size: 0.7rem;
    color: var(--brand-red);
    font-weight: 500;
}

/* Page Selector */
.page-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.page-option {
    cursor: pointer;
}

.page-option input {
    display: none;
}

.page-option-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--surface-border);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.page-option-content:hover {
    border-color: var(--brand-accent);
}

.page-option input:checked + .page-option-content {
    border-color: var(--brand-accent);
    background: rgba(74, 98, 117, 0.06);
}

.page-option-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--surface-border-dark);
    border-radius: 0.375rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.page-option-check svg {
    opacity: 0;
    transition: opacity 0.2s;
}

.page-option input:checked + .page-option-content .page-option-check {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
}

.page-option input:checked + .page-option-content .page-option-check svg {
    opacity: 1;
    color: white;
}

.page-option-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Pricing Summary */
.pricing-summary {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.pricing-total {
    border-top: 2px solid var(--surface-border);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.pricing-deposit {
    color: var(--brand-accent);
    font-weight: 600;
}

/* Calendar */
.build-calendar {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.calendar-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-month {
    font-size: 1.15rem;
    margin: 0;
}

.calendar-nav-btn {
    background: none;
    border: 1px solid var(--surface-border);
    border-radius: 0.375rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.5rem;
}

.calendar-day {
    text-align: center;
    padding: 0.6rem 0.25rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--surface-light);
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.past,
.calendar-day.weekend {
    color: #cbd5e1;
    background: transparent;
}

.calendar-day.available {
    background: #ecfdf5;
    color: var(--brand-green);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day.available:hover {
    background: var(--brand-accent);
    color: white;
}

.calendar-day.selected {
    background: var(--brand-accent) !important;
    color: white !important;
    font-weight: 700;
}

.calendar-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.available {
    background: #ecfdf5;
    border: 1px solid var(--brand-green);
}

.legend-dot.selected {
    background: var(--brand-accent);
}

.legend-dot.unavailable {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
}

.calendar-notice {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}

.calendar-notice svg {
    color: var(--brand-amber);
    flex-shrink: 0;
    margin-top: 2px;
}

.calendar-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #92400e;
}

.selected-date-display {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 107, 74, 0.05);
    border: 1px solid var(--brand-accent);
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.selected-date-display p {
    margin: 0;
    font-size: 1.05rem;
}

/* Review Section */
.review-section {
    margin-bottom: 2rem;
}

.review-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--surface-border);
}

.review-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.review-label {
    color: var(--text-muted);
}

.review-value {
    font-weight: 500;
}

.review-row-total {
    border-top: 2px solid var(--surface-border);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.review-row-deposit {
    color: var(--brand-accent);
    font-weight: 600;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-tag {
    padding: 0.35rem 0.85rem;
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.review-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-accent);
}

/* Terms Checkbox */
.terms-check {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-border);
}

/* Domain Search */
.domain-toggle {
    margin-bottom: 1.25rem;
}

.domain-search-section {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.domain-search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.domain-search-bar input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--surface-border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--surface-white);
    color: var(--text-dark);
}

.domain-search-bar input:focus {
    border-color: var(--brand-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-accent-focus);
}

.domain-search-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.domain-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--surface-white);
    border: 1px solid var(--surface-border);
    border-radius: 0.5rem;
    transition: border-color 0.2s;
}

.domain-result.selected {
    border-color: var(--brand-accent);
    background: rgba(74, 98, 117, 0.03);
}

.domain-result.unavailable {
    opacity: 0.5;
}

.domain-result-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.domain-result-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.domain-result-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 2rem;
}

.domain-result-status.available {
    background: #ecfdf5;
    color: #059669;
}

.domain-result-status.taken {
    background: var(--surface-light);
    color: var(--text-muted);
}

.domain-result-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.domain-result-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.domain-search-hint,
.domain-search-loading,
.domain-search-error {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.domain-search-error {
    color: var(--brand-red);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    background: var(--surface-light);
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .page-selector {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        gap: 0;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-dot {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }

    .onboarding-header h1 {
        font-size: 1.5rem;
    }
}

/* ============================================================
   Repeatable Items (Testimonials, Team, Products, etc.)
   ============================================================ */

.repeatable-section,
.faq-repeatable-section {
    margin-top: 1rem;
}

.repeatable-item {
    background: var(--surface-white);
    border: 1px solid var(--surface-border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.repeatable-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.repeatable-item-header h4 {
    font-size: 0.95rem;
    color: var(--brand-accent);
    margin: 0;
}

.btn-remove-item,
.btn-remove-faq {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 0.25rem;
    transition: color 0.2s;
}

.btn-remove-item:hover,
.btn-remove-faq:hover {
    color: #c0392b;
}

.add-item-btn,
.add-faq-btn {
    margin-top: 0.5rem;
}

.form-help-inline {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    margin-top: -0.2rem;
}

.mini-upload {
    padding: 1rem;
}

.mini-upload .upload-zone-content p {
    font-size: 0.85rem;
    margin: 0;
}
