/* quote-styles.css - Enhanced with buy-pmt.html style */

/* ========================================
   TRUST BADGES & TOP SECTION
   ======================================== */
.quote-trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1.5rem auto;
    padding: 1rem;
    max-width: 800px;
}

.quote-trust-badges span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray);
    gap: 0.5rem;
}

/* ========================================
   PROGRESS BAR
   ======================================== */
.progress-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.5s ease;
}

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

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.step.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--darker);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
    transform: scale(1.1);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* ========================================
   SECTION HEADERS WITH NUMBERS (like buy-pmt)
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--darker);
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
}

/* ========================================
   QUESTION SECTIONS (Card Style)
   ======================================== */
.question-section {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.03) 0%, rgba(124, 77, 255, 0.02) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 229, 255, 0.25);
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
}

.question-section:hover {
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.08);
}

.question-section h3 {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   FORM CONTAINER
   ======================================== */
.quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-tagline {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.6;
}

.quote-form {
    padding: 1rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* ========================================
   STEP HEADERS
   ======================================== */
.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-header h2 {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.step-header p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* ========================================
   FORM ELEMENTS (ENHANCED)
   ======================================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* BOLD LABELS WITH ICONS */
.form-group label {
    color: var(--light);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label .icon {
    font-size: 1.2rem;
}

.form-group input,
.form-group select {
    padding: 1rem;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group select option {
    background: var(--darker);
    color: var(--light);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
    background: rgba(10, 14, 23, 0.8);
}

.form-group input::placeholder {
    color: var(--gray);
}

/* SUCCESS STATE WITH CHECKMARK */
.form-group.validated::after {
    content: '✓';
    position: absolute;
    right: 1rem;
    top: 3rem;
    color: #10B981;
    font-weight: bold;
    font-size: 1.3rem;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.form-hint {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ========================================
   SMART DOB SELECTOR
   ======================================== */
.dob-smart-selector {
    display: grid;
    grid-template-columns: 100px 1fr 120px;
    gap: 0.75rem;
}

.dob-smart-selector input[type="number"],
.dob-smart-selector select {
    padding: 1rem;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dob-smart-selector input[type="number"]:focus,
.dob-smart-selector select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.dob-smart-selector input[type="number"] {
    text-align: center;
    font-weight: 600;
}

/* Remove spinner buttons from number inputs */
.dob-smart-selector input[type="number"]::-webkit-inner-spin-button,
.dob-smart-selector input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dob-smart-selector input[type="number"] {
    -moz-appearance: textfield;
}

.dob-hint {
    grid-column: 1 / -1;
    color: var(--primary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-style: italic;
}

/* FALLBACK: Traditional Date Selector */
.date-selector {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 0.5rem;
}

.date-selector select {
    padding: 1rem;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 0; /* Prevent overflow */
}

/* Add spacing after DOB field before marital status */
.form-group:has(.date-selector) {
    margin-bottom: 0.5rem;
}

.date-selector select option {
    background: var(--darker);
    color: var(--light);
}

.date-selector select:hover {
    background: rgba(255, 255, 255, 0.08);
}

.date-selector select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

/* ========================================
   ADDRESS LOOKUP SECTION
   ======================================== */
.address-lookup-container {
    margin: 1rem 0;
    padding: 1.5rem;
    background: rgba(0, 229, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.selected-address {
    margin: 1rem 0;
    animation: fadeIn 0.3s ease;
}

.address-display {
    background: rgba(10, 14, 23, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.25);
    backdrop-filter: blur(10px);
}

.address-display h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

#addressDetails {
    color: var(--light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.change-address-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.change-address-btn:hover {
    background: rgba(0, 229, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

#addressSelect {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

#addressSelect option {
    background: var(--darker);
    color: var(--light);
    padding: 0.5rem;
}

.address-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ========================================
   ADDITIONAL QUESTIONS
   ======================================== */
.additional-questions {
    margin-top: 2.5rem;
}

.additional-driver-questions {
    margin-top: 2.5rem;
}

.mileage-section {
    margin-top: 3rem !important;
}

/* ========================================
   RADIO AND CHECKBOX OPTIONS
   ======================================== */
.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.9rem 1.4rem;
    background: rgba(10, 14, 23, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.radio-option:hover {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.25);
}

.radio-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

.radio-option input[type="radio"]:checked {
    accent-color: var(--primary);
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-option span {
    color: var(--gray);
    line-height: 1.6;
}

.checkbox-option:hover span {
    color: var(--light);
}

.checkbox-option input[type="checkbox"]:checked + span {
    color: var(--light);
    font-weight: 500;
}

/* ========================================
   BUTTON GROUPS
   ======================================== */
.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.option-button {
    flex: 1;
    min-width: 120px;
    padding: 0.9rem 1.4rem;
    background: rgba(10, 14, 23, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.option-button:hover {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.25);
}

.option-button.selected {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

/* ========================================
   ENHANCED MILEAGE SLIDER
   ======================================== */
.mileage-display {
    font-size: 1.5rem;
    color: var(--gray);
    margin: 1rem 0;
    text-align: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(124, 77, 255, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(10px);
}

.mileage-display #mileageValue {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.mileage-slider {
    margin-top: 1.5rem;
}

.mileage-slider input[type="range"] {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.mileage-slider input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    box-shadow: 0 2px 10px rgba(0, 229, 255, 0.5);
    transition: all 0.3s ease;
}

.mileage-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.7);
}

.mileage-slider input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 229, 255, 0.5);
    transition: all 0.3s ease;
}

.mileage-slider input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.7);
}

/* ENHANCED SLIDER LABELS WITH UK AVERAGE MARKER */
.slider-labels {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    font-weight: 500;
}

.slider-labels .avg-marker {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    text-align: center;
}

.slider-labels .avg-marker::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 12px;
    background: var(--primary);
    opacity: 0.6;
    margin-bottom: 4px;
}

.slider-labels span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.slider-labels small {
    font-size: 0.75rem;
    color: var(--gray);
}

.mileage-estimation {
    color: var(--primary);
    font-size: 0.9rem;
    font-style: italic;
    display: block;
    margin-top: 0.75rem;
    text-align: center;
}

/* ========================================
   LICENCE SECTION WITH SECURITY STYLING
   ======================================== */
.licence-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 152, 0, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 193, 7, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
}

.licence-section::before {
    content: '🔒';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.licence-input-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.licence-generated,
.licence-manual {
    display: flex;
    flex-direction: column;
}

.licence-readonly {
    background: rgba(10, 14, 23, 0.8) !important;
    color: var(--primary) !important;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: 600;
}

#licenceEnd {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.licence-details {
    margin-top: 2rem;
}

.licence-summary {
    background: rgba(10, 14, 23, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.licence-summary h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.info-section {
    margin-bottom: 1.5rem;
}

.info-section h4 {
    color: var(--light);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.info-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.info-value {
    color: var(--light);
    font-weight: 500;
}

.endorsements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.endorsements-list li {
    color: var(--gray);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.endorsements-list li:last-child {
    border-bottom: none;
}

.clean-licence {
    color: #10B981;
    font-weight: 600;
}

/* ========================================
   VEHICLE DETAILS WITH SUCCESS BADGE
   ======================================== */
.vehicle-details {
    margin-top: 1.5rem;
}

.vehicle-info-display {
    background: rgba(10, 14, 23, 0.6);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(10px);
}

.vehicle-info-display h4 {
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* SUCCESS BADGE */
.success-badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* ========================================
   CLAIMS DETAILS
   ======================================== */
.claims-details-container {
    margin-top: 1rem;
}

.claim-detail-group {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(10, 14, 23, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.claim-detail-group h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ========================================
   COVERAGE OPTIONS
   ======================================== */
.usage-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.usage-option {
    display: flex;
    align-items: center;
    padding: 1.75rem;
    background: rgba(10, 14, 23, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.usage-option:hover {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
}

.usage-option input[type="radio"] {
    margin-right: 1.25rem;
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
}

.usage-content {
    display: flex;
    flex-direction: column;
}

.usage-title {
    color: var(--light);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.usage-option small {
    color: var(--gray);
    font-size: 0.9rem;
}

.usage-option input[type="radio"]:checked ~ .usage-content .usage-title {
    color: var(--primary);
}

/* ========================================
   START DATE OPTIONS
   ======================================== */
.start-date-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.date-option {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.4rem;
    background: rgba(10, 14, 23, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.date-option:hover {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.25);
}

.date-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.date-option input[type="radio"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   BUTTONS
   ======================================== */
.button, .secondary-button, .lookup-button, .chat-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
}

.lookup-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--darker);
    padding: 0.9rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.lookup-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.lookup-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.lookup-button:hover:not(:disabled)::before {
    left: 100%;
}

.lookup-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#vehicleContinueBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

/* ========================================
   ERROR MESSAGES
   ======================================== */
.error-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.status-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.status-text strong {
    color: var(--light);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.status-text p {
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   SECTION DIVIDERS
   ======================================== */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
}

.divider-icon {
    font-size: 1.5rem;
    opacity: 0.5;
}

/* ========================================
   CONFIRMATIONS SECTION
   ======================================== */
.confirmations-section {
    margin-top: 2.5rem;
}

/* ========================================
   STEP ACTIONS
   ======================================== */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

.step-actions .button {
    flex: 1;
    max-width: 200px;
}

/* ========================================
   CHAT WIDGET
   ======================================== */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chat-toggle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--darker);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.chat-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.5);
}

.chat-content {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 1rem;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 250px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

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

.chat-header h3 {
    color: var(--light);
    margin: 0;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.chat-close:hover {
    color: var(--light);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-option {
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--light);
    padding: 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.chat-option:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--primary);
    transform: translateX(4px);
}

/* ========================================
   ADDITIONAL DRIVERS SECTION
   ======================================== */
#additionalDriverSectionsContainer {
    margin-top: 0;
}

/* Additional driver sections - styled as question-sections */
.additional-driver-section {
    margin-bottom: 2rem;
}

.additional-driver-section .section-header {
    margin-bottom: 1.5rem;
}

.additional-driver-section .section-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* Smaller section number for additional drivers */
.additional-driver-number {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #5c3db8 100%);
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.4);
}

/* Form groups inside additional driver sections */
.additional-driver-section .form-group {
    margin-bottom: 1rem;
}

/* Licence input group in additional driver sections */
.additional-driver-section .licence-input-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.additional-driver-section .licence-generated,
.additional-driver-section .licence-manual {
    display: flex;
    flex-direction: column;
}

.additional-driver-section .lookup-button {
    width: 100%;
}

/* ========================================
   SUCCESS MESSAGE
   ======================================== */
.success-message {
    color: #10B981;
    font-size: 1rem;
    margin-top: 0.75rem;
    font-weight: 500;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 2rem auto;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   MOBILE RESPONSIVE (ENHANCED)
   ======================================== */
@media (max-width: 768px) {
    /* PHASE 5: Reduce side padding on container */
    .quote-form-container {
        padding: 0;
        max-width: 100%;
    }

    .form-tagline {
        font-size: 1rem;
        padding: 0 0.75rem;
    }

    .quote-form {
        padding: 0;
    }

    /* PHASE 1: Reduce step header spacing */
    .step-header {
        margin-bottom: 1rem;
        padding: 0 0.75rem;
    }

    .step-header h2 {
        font-size: 1.4rem;
    }

    .step-header p {
        font-size: 0.9rem;
    }

    /* PHASE 3: Tighter form grid */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* LARGER TAP TARGETS FOR MOBILE - text inputs */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .driver-detail-group input[type="text"] {
        padding: 0.75rem;
        font-size: 16px !important; /* Prevents iOS zoom */
        min-height: 44px;
    }

    /* PHASE 2 & 3: More compact select dropdowns */
    .form-group select,
    .driver-detail-group select {
        padding: 0.75rem;
        font-size: 16px !important; /* Prevents iOS zoom */
        min-height: 44px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300E5FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.5rem center;
        background-size: 1rem;
        padding-right: 2rem;
    }

    /* PHASE 2: Date selector with better proportions for month names */
    .date-selector select {
        padding: 0.625rem 0.5rem;
        font-size: 15px !important;
        min-height: 44px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300E5FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.375rem center;
        background-size: 0.875rem;
        padding-right: 1.5rem;
    }

    /* Keep native appearance for radio and checkbox inputs */
    .form-group input[type="radio"],
    .form-group input[type="checkbox"],
    .radio-option input[type="radio"],
    .checkbox-option input[type="checkbox"] {
        -webkit-appearance: radio;
        -moz-appearance: radio;
        appearance: auto;
        min-height: auto;
        padding: 0;
        background-image: none;
        width: 20px;
        height: 20px;
    }

    .form-group input[type="checkbox"],
    .checkbox-option input[type="checkbox"] {
        -webkit-appearance: checkbox;
        -moz-appearance: checkbox;
    }

    /* PHASE 4: Tighter labels */
    .form-group label {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    /* PHASE 1 & 5: Compact question sections with less side padding */
    .question-section {
        margin-bottom: 1.25rem;
        padding: 1rem 0.75rem;
        border-radius: 12px;
    }

    /* PHASE 4: Tighter sticky section headers */
    .question-section h3 {
        position: sticky;
        top: 60px;
        background: var(--dark);
        z-index: 10;
        padding: 0.625rem 0;
        margin-bottom: 0.75rem;
        margin-top: -1rem;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        border-radius: 12px 12px 0 0;
        font-size: 1.05rem;
    }

    .dob-smart-selector {
        grid-template-columns: 70px 1fr 85px;
    }

    /* PHASE 2: Better date selector proportions */
    .date-selector {
        grid-template-columns: 65px 1fr 80px;
        gap: 0.375rem;
    }

    .licence-input-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .vehicle-info-display {
        padding: 1rem;
    }

    .vehicle-info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* PHASE 3: More compact mileage display */
    .mileage-display {
        font-size: 1.1rem;
        padding: 0.75rem;
    }

    .mileage-display #mileageValue {
        font-size: 1.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .radio-option {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .button-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .option-button {
        width: 100%;
        min-width: unset;
        padding: 0.75rem 1rem;
    }

    .usage-options {
        gap: 0.5rem;
    }

    .usage-option {
        padding: 1rem;
    }

    .start-date-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .date-option {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .step-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .step-actions .button {
        width: 100%;
        max-width: none;
    }

    .chat-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .chat-content {
        right: 0;
        left: 0;
        margin: 0 0.5rem 1rem;
        min-width: auto;
    }

    /* PHASE 5: Tighter progress container */
    .progress-container {
        padding: 0 0.75rem;
        margin: 0.75rem auto;
    }

    .quote-trust-badges {
        flex-direction: column;
        gap: 0.5rem;
    }

    .wheel-picker-container {
        gap: 0.375rem;
    }

    .wheel-picker-wheel {
        min-width: 80px;
    }

    /* PHASE 1: Tighter section header */
    .section-header {
        margin-bottom: 1rem;
        gap: 0.75rem;
    }

    .section-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    /* ADDITIONAL DRIVER SECTIONS - Mobile fixes */
    .additional-driver-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .additional-driver-section .section-header {
        margin-bottom: 0.75rem;
    }

    .additional-driver-section .section-header h3 {
        font-size: 0.95rem;
    }

    .additional-driver-number {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .additional-driver-section .form-group {
        margin-bottom: 0.5rem;
    }

    .additional-driver-section .licence-input-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .additional-driver-section .lookup-button {
        font-size: 0.85rem;
        padding: 0.625rem;
    }

    .additional-driver-section .licence-generated small,
    .additional-driver-section .licence-manual small {
        font-size: 0.7rem;
    }

    /* PHASE 3: Tighter confirmations section */
    .confirmations-section {
        margin-top: 1.5rem;
    }

    /* PHASE 3: Compact address display */
    .address-display {
        padding: 1rem;
    }

    .address-lookup-container {
        padding: 1rem;
        margin: 0.75rem 0;
    }

    /* PHASE 3: Compact licence section */
    .licence-section {
        margin-top: 1.5rem;
        padding: 1rem;
    }
}

/* ========================================
   iOS-STYLE WHEEL PICKER
   ======================================== */
.wheel-picker-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(10, 14, 23, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(10px);
}

.wheel-picker-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 60px;
}

.wheel-picker-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 0.25rem;
    text-align: center;
}

.wheel-picker-wheel {
    position: relative;
    height: 150px;
    width: 100%;
    overflow: hidden;
}

.wheel-picker-scroll {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wheel-picker-scroll::-webkit-scrollbar {
    display: none;
}

.wheel-picker-item {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    scroll-snap-align: center;
}

.wheel-picker-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 38px;
    transform: translateY(-50%);
    background: rgba(0, 229, 255, 0.25);
    border-top: 2px solid rgba(0, 229, 255, 0.4);
    border-bottom: 2px solid rgba(0, 229, 255, 0.4);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.wheel-picker-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.95) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.wheel-picker-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(to top, rgba(10, 14, 23, 0.95) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Wheel picker in form groups */
.form-group .wheel-picker-container {
    margin-top: 0.5rem;
}

/* ========================================
   XML DEBUG SCREEN
   ======================================== */
.debug-screen {
    padding: 1.5rem;
}

.debug-issues {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.debug-issues h4 {
    color: #FFC107;
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.debug-issues ul {
    margin: 0;
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.debug-issues li {
    margin-bottom: 0.25rem;
}

.debug-issues.success {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.debug-issues.success h4 {
    color: #4CAF50;
    margin-bottom: 0;
}

.debug-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.debug-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0a0a0a;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.debug-actions .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.debug-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.debug-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.debug-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.debug-actions .btn-secondary.copied {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
}

.debug-xml-container,
.debug-response-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.debug-xml-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
}

.debug-xml-size {
    color: var(--gray);
    font-weight: normal;
    font-size: 0.8rem;
}

.debug-xml-content {
    margin: 0;
    padding: 1rem;
    max-height: 500px;
    overflow: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
}

.debug-xml-content.loading {
    color: #FFC107;
    text-align: center;
    padding: 2rem;
}

.debug-xml-content.error {
    color: #f44336;
}

/* XML Syntax Highlighting */
.xml-tag {
    color: #00E5FF;
}

.xml-attr {
    color: #7C4DFF;
}

.xml-value {
    color: #4CAF50;
}

.xml-cdata {
    color: #FF9800;
}

/* Status indicators */
.status-success {
    color: #4CAF50;
    font-weight: 600;
}

.status-error {
    color: #f44336;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .debug-actions {
        flex-direction: column;
    }

    .debug-actions button {
        width: 100%;
    }

    .debug-xml-content {
        font-size: 0.7rem;
        max-height: 300px;
    }
}
