/* Booking Page Styles */
.booking-section {
    padding: 120px 20px 80px;
    background: #f5f5f5;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    display: block !important;
    visibility: visible !important;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Ensure service header is visible when displayed */
#selectedServiceHeader[style*="display: block"],
#selectedServiceHeader[style*="display:block"] {
    display: block !important;
    visibility: visible !important;
}

/* Ensure service type fields are visible when displayed */
#serviceType[style*="display: block"],
#serviceType[style*="display:block"] {
    display: block !important;
    visibility: visible !important;
}

#serviceTypeText[style*="display: block"],
#serviceTypeText[style*="display:block"] {
    display: block !important;
    visibility: visible !important;
}

.booking-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.booking-subtitle {
    font-size: 1.1rem;
    color: #4a4a4a;
}

.booking-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    display: block;
    visibility: visible;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    display: block !important;
    visibility: visible !important;
}

/* Force visibility for all form sections except serviceSelectionSection */
.form-section:not(#serviceSelectionSection) {
    display: block !important;
    visibility: visible !important;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Payment Section Styles */
.payment-section {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    margin-top: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow-x: hidden !important;
    overflow-y: visible;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-left: 0;
    margin-right: 0;
}

/* Ensure payment section is visible when displayed */
.payment-section[style*="display: block"],
.payment-section[style*="display:block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.payment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700 0%, #f59e0b 100%);
}

.payment-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.payment-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFD700 0%, #f59e0b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.payment-icon {
    color: #ffffff;
    width: 24px;
    height: 24px;
}

.payment-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.payment-summary-card {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.payment-summary-row:last-of-type {
    margin-bottom: 0;
}

.payment-label {
    color: #6a6a6a;
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    padding-right: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.payment-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.payment-summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.payment-deposit-divider {
    height: 2px;
    background: linear-gradient(90deg, #FFD700 0%, #f59e0b 100%);
    margin: 20px 0;
}

.payment-total-row {
    margin-top: 4px;
}

.payment-total-label {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
}

.payment-total-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000000;
}

.payment-deposit-row {
    margin-top: 4px;
}

.payment-deposit-label {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.1rem;
}

.payment-deposit-value {
    font-weight: 700;
    font-size: 1.3rem;
    color: #000000;
}

.payment-note {
    margin: 16px 0 0 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Payment form fields styling */
.payment-section .form-group {
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.payment-section .form-group > label:not(.payment-checkbox-label) {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.payment-section .form-group input {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.payment-section .form-group input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.payment-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Payment checkbox container */
.payment-checkbox-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    flex-wrap: wrap;
}

.payment-checkbox {
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    cursor: pointer;
    appearance: checkbox;
    -webkit-appearance: checkbox;
}

.payment-checkbox-label {
    font-size: 0.9rem;
    color: #6a6a6a;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
    line-height: 1.5;
    margin: 0;
    font-weight: normal;
    padding: 0;
    text-align: left;
    white-space: normal;
    display: inline;
    width: auto;
    max-width: calc(100% - 32px);
}

/* Security badge */
.payment-security-badge {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #166534;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.payment-security-badge::before {
    content: '🔒';
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-security-badge span {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .payment-section {
        padding: 24px 16px;
        margin-top: 32px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .payment-section * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .payment-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .payment-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .payment-icon {
        width: 20px;
        height: 20px;
    }
    
    .payment-title {
        font-size: 1.3rem;
    }
    
    .payment-summary-card {
        padding: 20px 16px;
    }
    
    .payment-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .payment-value {
        align-self: flex-end;
    }
    
    .payment-section .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-note {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    .payment-checkbox-container {
        gap: 10px;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .payment-checkbox {
        flex-shrink: 0;
        flex-grow: 0;
        width: 20px;
        height: 20px;
        min-width: 20px;
        margin: 0;
    }
    
    .payment-checkbox-label {
        font-size: 0.85rem;
        max-width: calc(100% - 32px);
        width: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.4;
        flex: 1;
        min-width: 0;
        overflow: visible;
        display: inline;
    }
    
    .payment-section .form-group {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .payment-security-badge {
        flex-direction: row;
        align-items: flex-start;
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .payment-security-badge::before {
        margin-top: 0;
    }
    
    .payment-security-badge span {
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .payment-section .form-group {
        margin-bottom: 20px;
    }
    
    .payment-section input[type="text"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.form-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

/* Service Selection Page */
.service-selection-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-option-card {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-option-card:hover {
    border-color: #FFD700;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
}

.service-option-card .service-logo {
    width: 100%;
    padding: 32px 24px 24px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border-bottom: 1px solid #e5e5e5;
}

.service-option-card .service-logo img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.service-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.service-card-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.service-card-content .service-duration {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #000000;
    font-weight: 600;
}

.service-card-content .service-description {
    font-size: 0.95rem;
    color: #4a4a4a;
    margin-bottom: 20px;
    line-height: 1.5;
    flex: 1;
}

.service-card-content .service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-top: auto;
}

/* Service Options */
.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.service-option {
    cursor: pointer;
}

.service-option input[type="radio"] {
    display: none;
}

.service-card {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-option input[type="radio"]:checked + .service-card {
    background: #fffef5;
    border-color: #FFD700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.service-card:hover {
    border-color: #FFD700;
    transform: translateY(-2px);
}

.service-option-link {
    text-decoration: none;
    display: block;
}

.service-option-link .service-card {
    transition: all 0.3s ease;
}

.service-option-link:hover .service-card {
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.service-logo {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e5e5e5;
}

.logo-image {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Show fallback icon when image fails */
.service-logo .service-icon {
    font-size: 3rem;
    color: #FFD700;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.85rem;
    color: #4a4a4a;
    margin-bottom: 12px;
}

.service-price {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
}

/* Form Groups */
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Custom Vehicle Select Dropdown */
.custom-vehicle-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    min-height: 48px;
}

.custom-select-trigger span {
    text-decoration: none;
}

.custom-select-trigger:hover {
    border-color: #FFD700;
}

.custom-select-trigger.active {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.custom-select-arrow {
    font-size: 0.8rem;
    color: #6a6a6a;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000 !important; /* High z-index to appear above other elements */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none; /* Hidden by default */
}

/* Ensure dropdown is visible when active */
.custom-select-options[style*="block"],
.custom-vehicle-select.active .custom-select-options {
    display: block !important;
}

.custom-select-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background-color: #f9f9f9;
}

.custom-select-option.selected {
    background-color: #fff9e6;
}

.vehicle-option-photo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.vehicle-option-icon {
    width: 40px;
    height: 40px;
    background: #e5e5e5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.vehicle-option-text {
    flex: 1;
    font-size: 1rem;
    color: #1a1a1a;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1a1a1a;
}

.location-btn {
    background: #FFD700;
    color: #000000;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.location-btn:hover {
    background: #FFC700;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.location-btn:active {
    transform: translateY(0);
}

.location-btn:disabled {
    background: rgba(255, 215, 0, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

.choose-for-me-btn {
    background: transparent;
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choose-for-me-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a;
    transition: background 0.2s ease;
}

.autocomplete-item:hover {
    background: #fffef5;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item .main-text {
    font-weight: 500;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.autocomplete-item .secondary-text {
    font-size: 0.85rem;
    color: #6a6a6a;
}

.distance-warning {
    display: none;
    background: #fff8e1;
    border: 1px solid #FFD700;
    color: #856404;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9a9a9a;
}

.form-group textarea {
    resize: vertical;
}

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

.submit-button {
    background: #FFD700;
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.form-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Header Links */
.header-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-link:hover {
    color: #FFD700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Ensure no horizontal overflow */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    html, body {
        width: 100%;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Header improvements - make it thinner */
    .main-header {
        padding: 8px 0;
        width: 100%;
        max-width: 100vw;
    }

    .header-container {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
    }

    .header-logo {
        width: 28px;
        height: 28px;
    }

    .logo-link {
        font-size: 0.85rem;
        gap: 8px;
    }

    .logo-link span {
        display: none;
    }

    .header-links {
        gap: 6px;
        flex-wrap: wrap;
    }

    .header-link {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-height: 36px;
    }

    /* Section improvements - adjust top padding for thinner header */
    .booking-section {
        padding: 60px 12px 40px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 100vh !important;
        height: auto !important;
    }

    .booking-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        display: block !important;
        visibility: visible !important;
        min-height: 200px !important;
    }
    
    .booking-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        display: block !important;
        visibility: visible !important;
        padding: 24px 16px !important;
        min-height: 400px !important;
        background: #ffffff !important;
    }
    
    .form-section {
        display: block;
        visibility: visible;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-section[id="serviceSelectionSection"] {
        display: none !important;
        visibility: hidden !important;
    }

    /* Booking header */
    .booking-header {
        margin-bottom: 24px;
    }

    .booking-title {
        font-size: 1.75rem;
    }

    .booking-subtitle {
        font-size: 0.95rem;
    }

    /* Booking form */
    .booking-form {
        padding: 24px 16px;
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .form-section {
        margin-bottom: 32px;
        padding-bottom: 32px;
        display: block;
        visibility: visible;
        width: 100%;
        max-width: 100%;
    }

    .form-section-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    /* Form inputs - prevent zoom on iOS */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        min-height: 44px;
        padding: 12px 14px;
    }

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

    /* Buttons */
    .submit-btn,
    .cta-button {
        width: 100%;
        min-height: 44px;
        padding: 14px;
        font-size: 1rem;
    }

    /* Service selection */
    .service-selection-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-option-card {
        min-height: auto;
    }

    .service-option-card .service-logo {
        min-height: 150px;
        padding: 24px 16px;
    }

    /* Modals */
    .modal-overlay {
        padding: 10px;
    }

    .modal-content {
        max-width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        margin: 0;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .close-modal {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.5rem;
    }

    /* Mileage policy modal */
    #mileagePolicyModal {
        padding: 20px;
    }

    #mileagePolicyModal .modal-content {
        padding: 24px 20px;
    }

    #mileagePolicyModal h2 {
        font-size: 1.25rem;
    }

    #mileagePolicyModal button {
        min-height: 44px;
        padding: 14px;
        font-size: 1rem;
    }

    /* Ensure all interactive elements have adequate touch targets */
    button,
    a.button,
    input[type="submit"],
    input[type="button"],
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevent text size adjustment on iOS */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Better tap highlighting */
    a, button {
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.2);
    }
}

/* Mileage Policy Modal */
.mileage-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.mileage-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.mileage-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mileage-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
}

.mileage-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6a6a6a;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mileage-modal-close:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.mileage-modal-body {
    padding: 24px;
}

.mileage-modal-body p {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.6;
}

.mileage-modal-body p:last-child {
    margin-bottom: 0;
}

.mileage-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
}

.mileage-modal-btn {
    background: #FFD700;
    color: #141414;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mileage-modal-btn:hover {
    background: #FFC700;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

    .service-selection-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-option-card {
        padding: 24px 20px;
    }
}

