/* Booking Form Specific Styles */

.booking-section {
    padding: 1rem 2rem;
}

/* Thank You Page */
.thank-you-box {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2.5rem 2rem;
}
.thank-you-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.thank-you-box h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}
.thank-you-box .next-steps {
    text-align: left;
    background: #fff;
    border-left: 4px solid #c8a84b;
    border-radius: 4px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
}
.thank-you-box .next-steps h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}
.thank-you-box .next-steps ol {
    padding-left: 1.2rem;
    margin: 0;
}
.thank-you-box .next-steps li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.thank-you-note {
    color: #666;
    font-size: 0.9rem;
    margin: 1rem 0 1.5rem;
}

.booking-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.booking-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.booking-intro p {
    color: #666;
    line-height: 1.8;
}

/* Form Styling */
.booking-form {
    max-width: 700px;
    margin: 0 auto;
}
    .booking-form {
        max-width: 1000px;
        margin: 0 auto;
    }

.form-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
    .form-section {
        background-color: #f8f9fa;
        padding: 2rem;
        border-radius: 8px;
        margin-bottom: 2rem;
    }

    /* Ensure the service selector grid is constrained and centered inside the form */
    .service-selector {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

.form-section h3 {
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
}

.section-info {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    background-color: #fff8e5;
    padding: 1rem;
    border-left: 4px solid #d4af37;
    border-radius: 4px;
}

:root {
    --gold-1: #d4af37;
    --gold-2: #b8860b;
    --gold-tint: #fff8e5;
    --gold-shadow: rgba(212, 175, 55, 0.12);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    padding: 0;
    border: none;
    box-shadow: none;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.form-group textarea {
    resize: vertical;
}

/* Recommendation Guide */
.recommendation-guide {
    margin-bottom: 2rem;
}

.recommendation-guide h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.option-selector {
    display: grid;
    gap: 1.5rem;
}

.option-choice {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-choice:hover {
    border-color: #d4af37;
    background-color: #f8f9fa;
}

.hidden-initially {
    display: none !important;
}

.service-step {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 1.5rem;
}

.service-selector {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 1rem;
}

.service-step-header {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

.service-step-header h4 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.service-step-header .section-info {
    margin: 0;
}

.service-card {
    width: 100%;
    position: relative;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.service-checkbox-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.4rem 1.6rem;
    position: relative;
    cursor: pointer;
    min-height: 140px;
    text-decoration: none;
}

.service-card:hover {
    border-color: #10b981;
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.16);
    transform: translateY(-1px);
}

.service-card.selected:hover {
    box-shadow: 0 28px 72px rgba(16, 185, 129, 0.22);
}

.service-card input[type="checkbox"],
.service-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.6);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    pointer-events: none;
}

.service-card.selected::after {
    border-color: #10b981;
    background-color: #10b981;
    color: #fff;
    content: '✓';
    pointer-events: none;
}

.service-card.selected {
    border-color: #10b981;
    background-color: #ecfdf5;
    box-shadow: 0 26px 64px rgba(16, 185, 129, 0.22);
}

/* Wrapper behavior for the new .service-card div */
.service-card {
    display: block;
    margin: 0;
}

.service-card .service-checkbox-card {
    width: 100%;
    box-sizing: border-box;
}

/* When a card is selected, style the outer wrapper and the inner label */
.service-card.selected {
    border-color: #10b981;
    background-color: #ecfdf5;
}

.service-card.selected .service-checkbox-card {
    transform: translateY(-1px);
}

/* Disabled state when max reached */


/* Ensure the checkbox indicator positions relative to the wrapper */
.service-card::after {
    /* already defined, keep it visible by ensuring the wrapper is positioned */
}

.service-card.disabled {
    /* No longer used. Left intentionally blank for future style hooks. */
}

.service-selection-status {
    margin-top: 0.75rem;
    font-size: 1.1rem;
    color: #2563eb;
    font-weight: 700;
}

.service-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.service-card-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a1a1a;
    display: block;
}

.service-card-desc {
    color: #575757;
    font-size: 0.98rem;
    line-height: 1.7;
}

.service-card.selected .service-card-title,
.service-card.selected .service-card-desc {
    color: #2563eb;
}

.service-card input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.service-card--note {
    background-color: #fbf5e2;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
}

/* override .form-group label { display: block } */
.form-group .checkbox-inline {
    display: inline-flex;
}

/* Privacy consent */
.privacy-consent {
    margin-bottom: 1.25rem;
}

.privacy-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    font-weight: normal;
}

.privacy-consent-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.15rem;
    width: 1rem;
    height: 1rem;
    accent-color: #d4af37;
    cursor: pointer;
}

.privacy-policy-link {
    color: #c8a84b;
    text-decoration: underline;
}

.privacy-policy-link:hover {
    color: #b8940d;
}

/* Honeypot */
.form-honeypot {
    display: none;
}

.service-group .form-hint {
    display: block;
    margin-top: 0.5rem;
    color: #666;
}

.step-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 1rem 1.6rem;
    border-radius: 999px;
    border: 2px solid #d4af37;
    background-color: #fff;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.step-button:hover {
    background-color: #f8f0d7;
}

.step-button--secondary {
    border-color: #aaa;
    color: #444;
}

.step-button--secondary:hover {
    background-color: #f4f4f4;
}

/* Make the primary submit button match the pill styling of step buttons */
.btn.btn-primary.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 1rem 1.6rem;
    border-radius: 999px;
    border: 2px solid #d4af37;
    background-color: #fff;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn.btn-primary.btn-large:hover {
    background-color: #f8f0d7;
}

.service-group .error-message {
    margin-top: 0.75rem;
    color: #b00020;
}

.service-card .service-checkbox-card {
    display: flex;
}

/* Summary box shown before moving to contact details */
.summary-box {
    border: 1px solid #e6e6e6;
    background: #ffffff;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}

.summary-box h4 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.summary-content {
    padding: 0.5rem 0;
    color: #333;
}

.summary-content .row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.summary-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* Small pill for service names in the summary */
.pill {
    display: inline-block;
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-right: 0.35rem;
}

/* Visual error indicator for missing required fields */
.field-error {
    outline: none;
}
.field-error input,
.field-error select,
.field-error textarea {
    border-color: #b00020 !important;
    box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.08);
}

/* Error styling for service selector */
.service-selector.field-error {
    /* Don't change layout when showing an error. Keep container visually intact. */
    border-radius: 12px;
    box-shadow: none; /* remove group-level shadow that created a drop around the whole selector */
}

/* When the service selector has an error, indicate it on each card visually without changing layout */
.service-selector.field-error .service-card {
    border-color: #b00020 !important;
    /* keep per-card highlight subtle so the whole group doesn't look like one lifted block */
    box-shadow: 0 4px 10px rgba(176,0,32,0.04);
}

/* Stronger visual for the first card when error present so the required top card appears clearly */
.service-selector.field-error .service-card:first-child {
    border-color: #b00020 !important;
}

/* Ensure the global error-message is clearly red and visible above the selector */
.error-message {
    color: #b00020;
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
}


.option-choice input[type="radio"] {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option-choice label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    margin-right: 2rem;
}

.option-label {
    margin-bottom: 0 !important;
}

.option-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    display: block;
}

    .option-subtitle {
    font-weight: 400;
    font-size: 1.1rem;
    color: #666;
    display: block;
    margin-top: 0.25rem;
}

.option-choice input[type="radio"]:checked + label {
    color: #d4af37;
}

.option-choice input[type="radio"]:checked + label .option-title {
    color: #d4af37;
}

.option-details {
    display: none;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.option-choice input[type="radio"]:checked ~ .option-details {
    display: block;
}

.option-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.detail-list {
    list-style: none;
    margin-bottom: 1rem;
}

.detail-list li {
    padding: 0.35rem 0;
    color: #555;
    font-size: 1.1rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

.option-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Conditional Sections */
.conditional-section {
    display: none;
}

.conditional-section.show {
    display: block;
}

.option-selector-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.option-choice-inline {
    display: flex;
    align-items: center;
}

.option-choice-inline input[type="radio"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    position: static;
}

.option-choice-inline label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Success Message (for later) */
.form-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: none;
}

.form-success.show {
    display: block;
}

/* Date + Time side by side */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Time spinner */
.time-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.time-input-group input[type="time"] {
    flex: 1;
    text-align: center;
}
.time-spinner-btn {
    background: #c8a84b;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}
.time-spinner-btn:hover {
    background: #b8940d;
    transform: scale(1.05);
}
.time-spinner-btn:active {
    transform: scale(0.95);
}
/* Responsive */
@media (max-width: 768px) {
    .booking-section {
        padding: 2rem 1rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .option-choice {
        padding: 1rem;
    }

    .option-choice input[type="radio"] {
        top: 1rem;
        right: 1rem;
    }

    .option-choice label {
        margin-right: 1.5rem;
    }

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

    .btn-large {
        width: 100%;
    }

    .service-selector {
        grid-template-columns: 1fr !important;
    }

    .step-button {
        width: 100%;
    }

    .form-actions--stage {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Legal / platform notice at bottom of booking page */
.booking-legal {
    max-width: 720px;
    margin: 1.5rem auto 2.5rem;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}
