* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #e6f0fa 0%, #b8c6db 100%);
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 70vw;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1.5rem;
    box-shadow: 0 0.9375rem 2.5rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: row-reverse;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.map-wrapper {
    width: 50%;
    border-right: 0.1875rem solid #f0f0f0;
}

h2 {
    background: linear-gradient(90deg, #0066cc, #00aaff);
    color: white;
    padding: 1.5625rem;
    margin: 0;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: 0.09375rem;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0.625rem;
    left: 50%;
    width: 7.5rem;
    height: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
    border-radius: 0.125rem;
}

#map {
    height: 100%;
    width: 100%;
    background: #f8f9fa;
    min-height: 20rem;
}

form {
    padding: 2.5rem;
    background: #fdfdfd;
    border-top: 1px solid #eee;
    flex: 1;
}

.form-group {
    margin: 1.5625rem 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(245, 245, 245, 0.5);
    border-radius: 0.625rem;
}

label {
    width: 10rem;
    font-weight: 600;
    color: #1e2a44;
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.05);
}

input, select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.625rem;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    background: white;
}

input:focus, select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0.625rem rgba(0, 123, 255, 0.4);
}

input[type="submit"] {
    background: linear-gradient(90deg, #a2a9a4, #c4cfc7);
    color: white;
    border: none;
    padding: 1.125rem;
    cursor: pointer;
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 600;
    border-radius: 1.875rem;
    width: 100%;
    box-shadow: 0 0.375rem 1.25rem rgba(135, 142, 137, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
}

input[type="submit"]:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

#result {
    padding: 0;
    background: linear-gradient(135deg, #ffffff, #f1f3f5);
    border-radius: 0.9375rem;
    margin: 1.5625rem;
    box-shadow: 0 0.375rem 1.25rem rgba(0,0,0,0.06);
}

.route-card {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 0.5625rem;
    box-shadow: 0 0.25rem 0.9375rem rgba(0,0,0,0.06);
    cursor: pointer;
    position: relative;
    padding-right: 2.5rem;
    border: 1px solid gray;
}

.route-card.selected {
    background: linear-gradient(135deg, #f0f8ff, #e6f0fa);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 123, 255, 0.2);
    border: 3px solid green;
}

.route-card.disabled {
    background: #f0f0f0;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.route-card input[type="radio"] {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.route-card h3 {
    color: #1e2a44;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    margin-bottom: 0.5rem;
}

.route-card p {
    color: #2d3748;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    margin: 0.25rem 0;
}

.route-card p strong {
    color: #0066cc;
}

.error {
    color: #c0392b;
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    margin-top: 0.9375rem;
    padding: 0.9375rem;
    background: rgba(192, 57, 43, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(192, 57, 43, 0.2);
    text-align: right;
    font-family: Noto Sans Hebrew, Arial, sans-serif;
    font-weight: 500;
    line-height: 1.6;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error::before {
    content: '⚠️';
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1;
}

.passenger-warning {
    color: #c0392b;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: bold;
    margin-top: 0.625rem;
    padding: 0.625rem;
    background: rgba(192, 57, 43, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(192, 57, 43, 0.2);
    text-align: center;
}

.phone-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.03125rem;
    border-bottom: 0.125rem solid transparent;
    padding: 0.125rem 0.25rem;
    background: linear-gradient(0deg, rgba(26, 115, 232, 0.1), rgba(26, 115, 232, 0.1));
    border-radius: 0.25rem;
    display: inline-block;
}

.loading {
    text-align: center;
    padding: 1.875rem;
    color: #636e72;
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 500;
}

#currentTime {
    text-align: center;
    padding: 1.25rem;
    color: #2d3748;
    font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 0.125rem solid #f0f0f0;
    font-weight: 500;
    letter-spacing: 0.03125rem;
}

.input-group {
    display: flex;
    flex: 1;
    gap: 0.625rem;
    position: relative;
}

.flight-group {
    flex-direction: column;
    align-items: stretch;
}

.name-group, .contact-group {
    display: flex;
    gap: 1.25rem;
}

.name-group .input-group, .contact-group .input-group {
    flex: 1;
}

.social-buttons-container, .warning-social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-button, .small-social-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-button {
    padding: 0.75rem 1.5rem;
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
}

.small-social-button {
    padding: 0.5rem 1rem;
    font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
}

.social-button:disabled, .small-social-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

.whatsapp-button {
    background: linear-gradient(45deg, #25D366, #20B058);
}

.telegram-button {
    background: linear-gradient(45deg, #0088cc, #00aacc);
}

.email-button {
    background: linear-gradient(45deg, #6b48ff, #8c52ff);
}

.social-button svg, .small-social-button svg {
    fill: white;
}

.social-button svg {
    width: 1.5rem;
    height: 1.5rem;
}

.small-social-button svg {
    width: 1.2rem;
    height: 1.2rem;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .map-wrapper {
        width: 100%;
        border-right: none;
        border-bottom: 0.1875rem solid #f0f0f0;
    }
    .content-wrapper {
        width: 100%;
    }
    #map {
        min-height: 15rem;
    }
    form {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    .container {
        max-width: 95vw;
        border-radius: 1rem;
    }
    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    label {
        width: 100%;
        font-size: clamp(0.875rem, 2.5vw, 1rem);
    }
    input, select {
        width: 100%;
        font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
    }
    .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    .name-group, .contact-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    .flight-group {
        align-items: flex-start;
    }
    .dropdown-content {
        width: 100%;
    }
    input[type="submit"] {
        padding: 0.75rem;
        font-size: clamp(0.9375rem, 3vw, 1.125rem);
    }
    #result {
        margin: 1rem;
    }
    .route-card {
        padding: 0.75rem;
    }
    h2 {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
        padding: 1rem;
    }
    .social-buttons-container, .warning-social-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    .container {
        max-width: 100vw;
        border-radius: 0.75rem;
    }
    form {
        padding: 1rem;
    }
    .form-group {
        margin: 1rem 0;
    }
    input[type="submit"] {
        padding: 0.625rem;
        font-size: clamp(0.875rem, 3vw, 1rem);
    }
    #map {
        min-height: 12rem;
    }
    #currentTime {
        font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
        padding: 0.75rem;
    }
    .error, .passenger-warning {
        font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
        padding: 0.5rem;
    }
    .phone-link {
        font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
    }
    .social-button {
        padding: 0.625rem 1rem;
        font-size: clamp(0.875rem, 2.5vw, 1rem);
    }
    .small-social-button {
        padding: 0.375rem 0.75rem;
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    }
    .small-social-button svg {
        width: 1rem;
        height: 1rem;
    }
}

.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    padding: clamp(12px, 2.5vw, 16px) clamp(16px, 3vw, 20px);
    margin: clamp(8px, 2vw, 12px) 0;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: right;
    font-family: Noto Sans Hebrew, Arial, sans-serif;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 500;
    line-height: 1.6;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error::before {
    content: '⚠️';
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1;
}

.error:focus {
    outline: 2px solid #721c24;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(114, 28, 36, 0.2);
}

@media (max-width: 600px) {
    .error {
        padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 14px);
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
        gap: 8px;
    }
    .error::before {
        font-size: clamp(0.875rem, 2.5vw, 1rem);
    }
}

@media (prefers-contrast: high) {
    .error {
        background: #d00000;
        color: #ffffff;
        border-color: #ffffff;
    }
    .error::before {
        content: '!';
        font-weight: bold;
    }
}

.flight-info-group {
    display: none;
}

.flight-info-group.show {
    display: block;
}

textarea {
    width: 200px;
    min-width: 100px;
    max-width: 400px;
    height: 30px;
    min-height: 100px;
    max-height: 130px;
    resize: both;
    overflow: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    font-size: 14px;
    box-sizing: border-box;
    vertical-align: middle;
    line-height: 20px;
}

textarea[readonly] {
    background-color: #f5f5f5;
    cursor: default;
}

textarea {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

label {
    margin-left: 10px;
    font-weight: bold;
}


.waypoint-input {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.waypoint-input input {
    flex: 1;
    padding: 0.5rem;
    margin-right: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.waypoint-input button {
    padding: 0.5rem 1rem;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-destination {
    margin: 1.5625rem 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(245, 245, 245, 0.5);
    border-radius: 0.625rem;
}

.luggage-warning {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.luggage-warning.show {
    display: block;
}

#showMoreRoutes {
    padding: 0.5rem 1rem;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.tolltoggle-switch {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 15px;
}

.tolltoggle-switch.show {
    display: flex;
}

.toll-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toll-option {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.toll-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 15px;
    transition: background 0.3s;
    cursor: pointer;
}

#tollToggle {
    display: none;
}

#tollToggle:checked + .toll-slider {
    background: #059669;
}

.toll-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

#tollToggle:checked + .toll-slider::before {
    transform: translateX(30px);
}

.return-toll-option {
    margin-top: 1rem;
    display: none;
}

.return-toll-option.show {
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #059669;
    border-color: #059669;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}


#meetWithSignContainer {
    display: none;
}
#meetWithSignContainer[style*="block"] {
    background-color: #f0f8ff; /* Light blue background for debugging */
    padding: 10px;
}


#babyChairContainer {
    display: none;
}
#babyChairContainer[style*="block"] {
    background-color: #f0f8ff; /* Light blue background for debugging */
    padding: 10px;
}


#kindBabyContainer {
    display: none;
}
#kindBabyContainer.visible {
    display: block !important;
}

.additional-fees {
    margin: 1.5625rem 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(245, 245, 245, 0.5);
    border-radius: 0.625rem;
}

.comment-section {
  margin: 20px 0;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

#comment-field {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}


/* Add these CSS rules to your style.css file to remove bottom white space */

/* 1. Remove default margins and ensure proper box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Ensure html and body don't have extra space */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 3. Fix the main container to prevent extra space */
.taxi-booking-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem; 
    direction: rtl;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh; /* Changed from min-height to ensure it fills viewport */
    padding: 0;
    margin-bottom: 0; /* Explicitly remove bottom margin */
}

/* 4. Fix the main container grid */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 100vh;
    background: white;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    margin-bottom: 0; /* Remove any bottom margin */
}

/* 5. Fix form section overflow and padding */
.form-section {
    background: white;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    padding-bottom: 0; /* Remove bottom padding that might cause space */
}

/* 6. Fix booking form padding */
.booking-form {
    padding: 2rem 2rem 0 2rem; /* Remove bottom padding */
    margin-bottom: 0; /* Ensure no bottom margin */
}

/* 7. Fix action buttons container */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 0; /* Remove bottom margin */
    padding-top: 2rem;
    padding-bottom: 0; /* Remove bottom padding */
    border-top: 2px solid #e2e8f0;
}

/* 8. Fix form section wrappers */
.form-section-wrapper:last-child {
    margin-bottom: 0; /* Ensure last wrapper has no bottom margin */
}

/* 9. Fix results container */
.results-container {
    margin-top: 2rem;
    margin-bottom: 0; /* Remove bottom margin */
    padding-bottom: 0; /* Remove bottom padding */
}

/* 10. Fix any potential WordPress theme conflicts */
.taxi-booking-container .entry-content,
.taxi-booking-container .post-content,
.taxi-booking-container .page-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 11. Remove space from the last elements */
.taxi-booking-container *:last-child {
    margin-bottom: 0 !important;
}

/* 12. Fix mobile responsive issues */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
        min-height: 100vh; /* Maintain full height */
    }
}

@media (max-width: 768px) {
    .booking-form {
        padding: 1rem 1rem 0 1rem; /* Remove bottom padding on mobile */
    }
    
    .taxi-booking-container {
        padding: 0; /* Remove any padding on mobile */
    }
}

@media (max-width: 480px) {
    .form-section-wrapper {
        margin-bottom: 1rem; /* Reduce spacing on mobile */
    }
    
    .form-section-wrapper:last-child {
        margin-bottom: 0; /* Ensure last wrapper has no bottom margin */
    }
}

.toll-label {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.toll-label:hover {
    color: #059669;
}

/* Enhanced Return Waypoints - Desktop Fix */
.enhanced-return-waypoints {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    animation: slideIn 0.3s ease-out;
    display: none; /* Hidden by default */
    visibility: hidden;
}

.enhanced-return-waypoints.show {
    display: block !important; /* Only show when explicitly shown */
    visibility: visible !important;
}

.enhanced-return-waypoints.has-waypoints {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #22c55e;
}

.waypoint-instruction {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    font-size: 1rem;
    color: #374151;
    border: 1px solid rgba(59, 130, 246, 0.2);
    line-height: 1.4;
}

.waypoint-instruction i {
    color: #3b82f6;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Return Waypoints Multi-Select */
#returnWaypoints {
    width: 100%;
    min-height: 120px; /* Increase minimum height */
    max-height: 200px; /* Set maximum height */
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    overflow-y: auto; /* Enable vertical scrolling */
    resize: vertical; /* Allow user to resize vertically */
}

#returnWaypoints:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#returnWaypoints option {
    padding: 0.75rem;
    margin: 0.25rem 0;
    background: white;
    color: #374151;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
    line-height: 1.3;
}

#returnWaypoints option:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

#returnWaypoints option:checked {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
    font-weight: 600;
    border-color: #3b82f6 !important;
}

#returnWaypoints option:checked::before {
    content: '✓ ';
    font-weight: bold;
}

#returnWaypoints option[disabled] {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    font-weight: 600;
    font-style: italic;
    cursor: not-allowed;
}

/* Exclude Waypoints Checkbox */
.excludeWaypointsCheckbox {
    margin-bottom: 1rem;
    display: none; /* Hidden by default */
}

.excludeWaypointsCheckbox.show {
    display: block !important; /* Only show when explicitly shown */
}

.excludeWaypointsCheckbox .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
    line-height: 1.4;
}

.excludeWaypointsCheckbox .checkbox-label:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
}

.excludeWaypointsCheckbox input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
}

.excludeWaypointsCheckbox .checkmark {
    width: 24px;
    height: 24px;
    border: 3px solid #d1d5db;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
}

.excludeWaypointsCheckbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.excludeWaypointsCheckbox input[type="checkbox"] {
    display: none;
}

/* Return Waypoints Container */
#excludeWaypointsContainer {
    display: none; /* Hidden by default */
    margin-top: 1rem;
}

#excludeWaypointsContainer.show {
    display: block !important; /* Only show when explicitly shown */
}

#excludeWaypointsContainer.return-waypoints {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

#excludeWaypointsContainer label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1rem;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Visibility Control */
.waypoint-options {
    display: none !important;
}

.waypoint-options.show {
    display: block !important;
}

.return-waypoints {
    display: none !important;
}

.return-waypoints.show {
    display: block !important;
}

/* Desktop Specific Fixes */
@media (min-width: 769px) {
    .enhanced-return-waypoints {
        padding: 2rem;
    }
    
    .waypoint-instruction {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
    
    #returnWaypoints {
        min-height: 140px;
        font-size: 1.1rem;
    }
    
    #returnWaypoints option {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .excludeWaypointsCheckbox .checkbox-label {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .enhanced-return-waypoints {
        padding: 1rem;
        margin-top: 0.75rem;
    }
    
    .waypoint-instruction {
        flex-direction: row;
        text-align: right;
        gap: 0.5rem;
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .waypoint-instruction i {
        font-size: 1.1rem;
    }
    
    #returnWaypoints {
        min-height: 100px;
        font-size: 0.95rem;
        padding: 0.6rem;
    }
    
    #returnWaypoints option {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .excludeWaypointsCheckbox .checkbox-label {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .excludeWaypointsCheckbox .checkmark {
        width: 20px;
        height: 20px;
    }
}

/* Force Show When Active */
.trip-type-section .waypoint-options[style*="display: block"],
.trip-type-section .return-waypoints[style*="display: block"],
.trip-type-section #excludeWaypointsContainer[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
}

/* Ensure proper spacing in trip type section */
.trip-type-section {
    margin-top: 1.5rem;
}

.trip-type-section > * {
    margin-bottom: 1rem;
}

.trip-type-section > *:last-child {
    margin-bottom: 0;
}