/* booking.css - Nnamo Booking Page Styles */

:root {
    --primary-blue: #2B61FF;
    --primary-hover: #1a4bd6;
    --dark-text: #1a1a1a;
    --light-text: #666666;
    --bg-grey: #f5f5f5;
    --border-color: #e0e0e0;
    --success-green: #4CAF50;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-grey);
    color: var(--dark-text);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; 
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    color: black;
    font-family: Calibri, sans-serif;
    font-style: italic;
    text-decoration: none;
}

.logo-n {
    font-size: 50px;
}

.logo-namo {
    font-size: 40px;
}

/* Container */
.booking-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Option Selector */
.option-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.option-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-card:hover {
    border-color: var(--primary-blue);
    background-color: #f0f5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.option-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.option-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.4;
}

/* Calendar & Availability */
.calendar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.date-input {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #f9f9f9;
    text-align: center;
}

.date-help {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 5px;
}

.availability-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.availability-result.available {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.availability-result.unavailable {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.availability-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.slots-info {
    font-size: 1rem;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search input for external garage */
.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Greyed out job type boxes */
.job-type-box.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.job-type-box.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #ddd;
}

/* Sections */
.section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.section.hidden {
    display: none !important;
}

.section-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.section-subtitle {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Garage List */
.garage-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.garage-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.garage-card:hover {
    border-color: var(--primary-blue);
    background-color: #f0f5ff;
}

.garage-card.selected {
    border-color: var(--primary-blue);
    background-color: #e6efff;
    border-width: 2px;
}

.garage-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

/* Price Card */
.price-card {
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #f8fbff;
}

.price-header {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.price-breakdown {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Job Type Selection Boxes */
.job-type-selection {
    margin-bottom: 25px;
}

.section-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1rem;
}

.job-type-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.job-type-box {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.job-type-box:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 97, 255, 0.15);
}

.job-type-box.selected {
    border-color: var(--primary-blue);
    background: #f0f4ff;
    box-shadow: 0 4px 12px rgba(43, 97, 255, 0.2);
}

.job-type-title {
    font-size: 0.95rem;
    color: var(--dark-text);
    margin-bottom: 10px;
    font-weight: 500;
    min-height: 36px; /* Fixed height to accommodate two-line titles */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.job-type-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Disclaimer */
.disclaimer-content {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.disclaimer-content p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.disclaimer-content p:last-child {
    margin-bottom: 0;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Fix width issue */
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(43, 97, 255, 0.1);
}

/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: flex-start; /* Align top if text wraps */
    gap: 10px;
    margin-top: 10px;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 3px; /* Align with text line-height */
    cursor: pointer;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary-blue);
}

#callback-time-text-container {
    margin-top: 10px;
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--dark-text);
    cursor: pointer;
    line-height: 1.4;
    position: relative;
    top: 1px; /* Slight adjustment to align with checkbox */
}

/* Buttons */
.proceed-btn, .submit-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.proceed-btn:hover, .submit-btn:hover {
    background-color: var(--primary-hover);
}

/* Submit stays full colour — validation is shown in-page (see .booking-validation-msg). */

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-top: 0;
    color: var(--dark-text);
}

.success-intro {
    color: var(--light-text);
    line-height: 1.5;
    margin-bottom: 25px;
}

.booking-recap {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 25px;
}

.booking-recap h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-blue);
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.recap-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.recap-row.hidden {
    display: none;
}

.recap-label {
    font-weight: 600;
    color: #555;
    width: 40%; /* Fixed width for alignment */
}

.recap-value {
    color: var(--dark-text);
    width: 60%;
    text-align: right;
}

.modal-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.modal-btn:hover {
    background-color: black;
}

.loading-spinner {
    padding: 20px;
    text-align: center;
    color: var(--light-text);
}

/* Integrale booking.html: textarea + placeholders */
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 88px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(43, 97, 255, 0.1);
}

.booking-flow input::placeholder,
.booking-flow textarea::placeholder {
    color: #999;
    opacity: 1;
}

.booking-flow .booking-summary-card {
    margin-bottom: 24px;
}
.booking-flow .booking-summary-card .booking-summary-body {
    text-align: left;
    font-size: 0.95rem;
}
.booking-flow .booking-summary-card .booking-summary-body dl {
    margin: 0;
}
.booking-flow .booking-summary-card .booking-summary-body dt {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--light-text);
    margin-top: 12px;
}
.booking-flow .booking-summary-card .booking-summary-body dt:first-child {
    margin-top: 0;
}
.booking-flow .booking-summary-card .booking-summary-body dd {
    margin: 4px 0 0;
    font-weight: 600;
    color: var(--dark-text);
}

.booking-flow .important-info-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
}
.booking-flow .important-info-content {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
}
.booking-flow .important-info-content p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-text);
    text-align: justify;
}
.booking-flow .important-info-content p:last-child {
    margin-bottom: 0;
}
.booking-flow .agree-label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    width: 100%;
    max-width: 100%;
    text-align: left;
}
.booking-flow .agree-label + .agree-label {
    margin-top: 10px;
}
.booking-flow .agree-label input {
    width: auto;
    margin-top: 3px;
    accent-color: var(--primary-blue);
    flex-shrink: 0;
}
.booking-flow .agree-label.has-field-error {
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.45);
    border-radius: 8px;
    padding: 6px 8px;
}

.booking-flow .form-actions {
    margin-top: 8px;
}

.booking-flow .form-actions .submit-btn {
    margin-top: 8px;
}

.booking-flow .booking-validation-msg {
    color: #b71c1c;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    text-align: center;
}

.booking-flow .form-group.has-field-error input,
.booking-flow .form-group.has-field-error textarea {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.18);
}

.booking-flow .address-split-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.booking-flow .address-house-input {
    flex: 0 0 7rem;
    width: 7rem;
    min-width: 7rem;
}

.booking-flow .address-street-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.booking-flow .important-info-section.has-field-error {
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.45);
    border-radius: 8px;
}
.booking-flow .specialist-info-section.has-field-error {
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.45);
    border-radius: 8px;
}

.enquiry-page .booking-container {
    margin-top: 16px;
}
.enquiry-page .section {
    padding-top: 18px;
}
.enquiry-page .enquiry-title {
    font-size: clamp(1.55rem, 4.2vw, 2.15rem);
    line-height: 1.12;
    font-weight: 800;
    color: var(--dark-text);
    margin: 0 0 6px;
    text-align: left;
}
.enquiry-page .enquiry-lead {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0 0 16px;
    text-align: justify;
}
.enquiry-page .enquiry-address-group {
    position: relative;
}
.enquiry-page .enquiry-mot-label {
    justify-content: flex-start;
    width: 100%;
    margin: 0 0 4px;
    font-weight: 500;
}
.enquiry-page .enquiry-mot-label input {
    width: 22px;
    height: 22px;
    margin-top: 0;
}
.enquiry-page .enquiry-work-group {
    margin-top: 18px;
}
.enquiry-page .enquiry-blurb {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 10px;
    text-align: justify;
}
.enquiry-page .enquiry-blurb:last-of-type {
    margin-bottom: 16px;
}
.enquiry-page .enquiry-date-group,
.enquiry-page .enquiry-date-group .enquiry-date-wrap,
.enquiry-page .enquiry-date-group #jobDateDisplay {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.enquiry-page .enquiry-date-wrap {
    position: relative;
    overflow: hidden;
}
.enquiry-page .enquiry-date-group #jobDateMsg {
    margin: 6px 0 0;
}
.enquiry-page .enquiry-date-native {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    opacity: 0;
    border: 0;
    padding: 0;
    margin: 0;
}

/* Shared checkout (form + link modes) */
body.booking-flow.has-pay-bar {
    padding-bottom: 24px;
}

.booking-link-shell.hidden {
    display: none !important;
}

body.booking-link-mode #booking-form-shell {
    display: none;
}

body.booking-link-mode .booking-link-shell {
    display: block !important;
}

.booking-link-container,
.booking-checkout-block {
    max-width: 440px;
}

body.booking-flow:not(.booking-link-mode).has-pay-bar .booking-container:not(.booking-checkout-block) {
    margin-bottom: 8px;
}

body.booking-flow:not(.booking-link-mode) .booking-checkout-block {
    margin-top: 0;
    max-width: 600px;
}

body.booking-link-mode .booking-checkout-block {
    margin-top: 0;
}

.booking-link-title {
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.services-on-form {
    margin-top: 8px;
    margin-bottom: 4px;
}

.services-on-form .section-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

/* Path B enquiry thank-you — match mock */
.enquiry-thanks .enquiry-thanks-wrap {
    text-align: center;
    max-width: 440px;
}
.enquiry-thanks .enquiry-thanks-title {
    color: var(--dark-text);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 8px;
}
.enquiry-thanks .enquiry-thanks-lead {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0 0 20px;
}
.enquiry-thanks .enquiry-thanks-card {
    text-align: left;
    border-radius: 12px;
    background: #f8fbff;
    margin-bottom: 20px;
}
.enquiry-thanks .enquiry-thanks-card .booking-summary-body dt {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    margin-top: 8px;
}
.enquiry-thanks .enquiry-thanks-done {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 14px 30px;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    background: #fff;
    color: var(--dark-text);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}
