/* --- GoDetail Booking Form Styles (Themed) --- */
/* This file uses CSS variables from your main theme's style.css */

#gdb-booking-form-wrapper {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 700px;
    margin: 2rem auto;
    box-shadow: var(--shadow-card-hover); /* Using theme shadow */
    border: 1px solid var(--color-border-light);
}

/* --- NEW: Form Choice Toggle Switch (User Style) --- */
.gdb-choice-field {
    margin-bottom: 2.5rem; 
    text-align: center; 
}
.gdb-choice-field > label { 
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}
.gdb-choice-toggle {
    position: relative;
    display: inline-flex;
    background: var(--color-brand-primary); /* Using theme gradient */
    border-radius: 50px;
    padding: 6px;
    box-shadow: var(--shadow-brand-tabs); /* Using theme shadow */
    box-sizing: border-box;
}

.gdb-choice-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#gdb-booking-form-wrapper .gdb-choice-toggle label {
    padding: 0.75rem 1.75rem;
    color: var(--color-text-inverted) !important; /* Using theme variable */
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 2;
    text-align: center; 
}

/* This is the moving white background */
.gdb-choice-toggle .gdb-toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: var(--color-white); /* Using theme variable */
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(var(--rgb-black), 0.1); /* Using theme RGB */
    transition: all 0.3s ease;
    z-index: 1;
    
    width: calc(50% - 6px); 
    height: calc(100% - 12px);
}

#gdb-booking-form-wrapper #gdb-choice-quote:checked ~ label[for="gdb-choice-quote"] {
    color: var(--color-brand-primary-start) !important; /* Using theme variable */
}
#gdb-booking-form-wrapper #gdb-choice-booking:checked ~ label[for="gdb-choice-booking"] {
    color: var(--color-brand-primary-start) !important; /* Using theme variable */
}

/* --- UPDATED Media query for smaller screens --- */
@media (max-width: 480px) {
    #gdb-booking-form-wrapper {
        padding: 1.5rem;
    }
    
    .gdb-choice-toggle {
        display: flex;
        width: 100%;
    }

    #gdb-booking-form-wrapper .gdb-choice-toggle label {
        flex: 1; 
        padding: 0.75rem 0.5rem; 
        font-size: 0.9rem; 
        white-space: normal; 
        line-height: 1.3; 
    }
}


.gdb-form-field {
    margin-bottom: 1.5rem;
}

.gdb-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-body-dark); /* Using theme variable */
}

.gdb-form-field input[type="text"],
.gdb-form-field input[type="email"],
.gdb-form-field input[type="tel"],
.gdb-form-field select,
.gdb-form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border-medium); /* Using theme variable */
    border-radius: 8px;
    box-sizing: border-box; 
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gdb-form-field input:focus,
.gdb-form-field select:focus,
.gdb-form-field textarea:focus {
    border-color: var(--color-border-brand); /* Using theme variable */
    box-shadow: 0 0 0 3px rgba(var(--rgb-brand-primary), 0.2); /* Using theme RGB */
    outline: none;
}

.gdb-form-field textarea {
    min-height: 120px;
}

/* --- NEW: Prettier Calendar Styles --- */
#gdb-datepicker {
    border-radius: 8px;
    padding: 0;
    border: none;
}

.ui-datepicker {
    font-size: 1rem !important;
    width: 100% !important;
    max-width: 100%;
    padding: 10px !important;
    border: 1px solid var(--color-border-medium) !important; /* Using theme variable */
    border-radius: 12px;
    box-shadow: var(--shadow-card); /* Using theme shadow */
    background: var(--color-white) !important; /* Using theme variable */
}
.ui-datepicker-header {
    background: transparent !important;
    color: var(--color-text-body-dark) !important; /* Using theme variable */
    border: none !important;
    padding: 10px 0;
}
.ui-datepicker-prev, .ui-datepicker-next {
    top: 15px !important;
    border: none !important;
    background: var(--color-bg-light) !important; /* Using theme variable */
    border-radius: 8px;
    cursor: pointer;
}
.ui-datepicker-prev:hover, .ui-datepicker-next:hover {
    background: var(--color-bg-white-hover) !important; /* Using theme variable */
}
.ui-datepicker-prev .ui-icon {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iY3VycmVudENvbG9yIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi43MDcgNCAxMCAxMC43MDcgNy4yOTMgOCAyIDExLjI5MyAxMCAxOS4yOTMgMTIuNzA3IDE2LjU4NiA3LjQxNCAxMiAxMi43MDcgNHoiIGNsaXBhLXJ1bGU9ImV2ZW5vZGQiPjwvcGF0aD48L3N2Zz4=') !important;
    transform: rotate(90deg);
}
.ui-datepicker-next .ui-icon {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iY3VycmVudENvbG9yIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi43MDcgNCAxMCAxMC43MDcgNy4yOTMgOCAyIDExLjI5MyAxMCAxOS4yOTMgMTIuNzA3IDE2LjU4NiA3LjQxNCAxMiAxMi43MDcgNHoiIGNsaXBhLXJ1bGU9ImV2ZW5vZGQiPjwvcGF0aD48L3N2Zz4=') !important;
    transform: rotate(-90deg);
}

.ui-datepicker-title {
    font-size: 1.1rem;
    font-weight: 600;
}
.ui-datepicker-calendar {
    width: 100%;
}
.ui-datepicker-calendar th {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted); /* Using theme variable */
}
.ui-datepicker .ui-state-default {
    background: transparent !important;
    border: none !important;
    text-align: center !important;
    padding: 0.6em 0 !important;
    font-weight: 600 !important;
    border-radius: 8px;
    color: var(--color-text-body-dark) !important; /* Using theme variable */
}
.ui-datepicker .ui-state-hover {
    background: var(--color-bg-brand-light) !important; /* Using theme variable */
}
.ui-datepicker .ui-state-active,
.ui-datepicker .ui-state-highlight {
    background: var(--color-brand-primary-mid) !important; /* Using theme variable */
    color: var(--color-text-inverted) !important; /* Using theme variable */
}

/* --- NEW: Highlight Today's Date --- */
.ui-datepicker .ui-datepicker-today .ui-state-default {
    background: var(--color-bg-brand-light) !important; /* Using theme variable */
    border: 1px solid var(--color-border-brand) !important; /* Using theme variable */
    color: var(--color-brand-primary-mid) !important; /* Using theme variable */
}
.ui-datepicker .ui-datepicker-today .ui-state-default.ui-state-hover {
    background: var(--color-bg-brand-light) !important; /* Using theme variable */
    /* You could add a slightly darker variable for this if you want */
}

/* Style for disabled, booked days */
.ui-datepicker .gdb-datepicker-full .ui-state-default {
    opacity: 0.6 !important;
    background: #f9f9f9 !important; /* Keeping this neutral grey */
    color: #aaa !important; /* Keeping this neutral grey */
    text-decoration: line-through;
    cursor: not-allowed;
}


/* --- Message / Response Styles --- */
/* Kept semantic colors for success/error */
.gdb-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    display: none; 
    font-weight: 500;
}
.gdb-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
.gdb-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* --- Timezone Notice --- */
.gdb-timezone-notice {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted, #6b7280);
    display: flex;
    align-items: center;
    gap: 5px;
}
.gdb-timezone-notice strong {
    color: var(--color-text-body-dark, #374151);
}