/*src/static/css/passengerV2.css*/

/* Import duerming theme */
@import url('./duerming-theme.css');

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.iti__country-list {
  max-height: 250px;  /* makes it scrollable */
  overflow-y: auto;
  z-index: 9999;      /* ensure it shows above modals */
}

.language-selector .btn {
    border-radius: 50px;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-selector .dropdown-menu {
    min-width: 150px;
    right: 0;
    left: auto;
}
/* Main Container */
.wizard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
}

/* Navigation buttons */
#next-btn.btn-primary,
#submit-btn.btn-success {
  background: #a5d6a7;   /* light/dim green */
  border-color: #a5d6a7;
  color: #0f3d19;
  opacity: 0.85;
  pointer-events: none;
  transition: all 0.3s ease;
}

#next-btn.btn-primary.active,
#submit-btn.btn-success.active {
  background: #28a745;   /* strong green */
  border-color: #28a745;
  color: #fff;
  opacity: 1;
  pointer-events: auto;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #f8f9fa;
}

.form-section:hover {
    border-color: #0386a2;
}

.section-title {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Room Header Row */
.room-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.room-header-row .section-title {
    margin-bottom: 0;
    flex-shrink: 0;
}

.room-selection-inline {
    flex: 1;
    max-width: 400px;
}

/* Passenger Cards */
.passenger-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.passenger-card:hover {
    border-color: #0386a2;
    box-shadow: 0 2px 10px rgba(3, 134, 162, 0.2);
}

.passenger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.passenger-number {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.passenger-number i {
    margin-right: 8px;
    color: #0386a2;
}

.remove-passenger {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: #dc3545;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-passenger:hover {
    background: #c82333;
    transform: scale(1.1);
}

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

.form-label.required::after {
    content: ' *';
    color: #dc3545;
}

/* Passenger Controls */
.passenger-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 20px;
}

.passenger-info {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.passenger-count {
    color: #333;
}

.passenger-limit {
    color: #6c757d;
}

/* Room Selection */
.room-selection {
    max-width: 500px;
    margin: 0 auto;
}

.room-select {
    font-size: 1.1rem;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 0;
    transition: border-color 0.3s ease;
    width: 100%;
}

.room-select:focus {
    border-color: #0386a2;
    box-shadow: 0 0 0 0.2rem rgba(3, 134, 162, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .room-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .room-header-row .section-title {
        justify-content: flex-start;
    }
    
    .room-selection-inline {
        max-width: none;
    }
    .wizard-container {
        padding-top: 70px;
    }
    .language-selector {
        top: 10px;
        right: 10px;
        z-index: 1055;
    }
}

.room-info {
    background: rgba(220, 53, 69, 0.1); /* light red background */
    border: 1px solid rgba(220, 53, 69, 0.3); /* red border */
    border-radius: 8px;
    padding: 12px;
    color: #dc3545; /* red text */
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #025f77;
}

.info-item i {
    margin-right: 8px;
    color: #0386a2;
}

/* Header */
.wizard-header {

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    text-align: center;
    margin-bottom: 20px;
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-container {
    /*margin-bottom: 20px;*/
}

.airline-logo {
    max-height: 80px;
    width: auto;
}

.wizard-title {
    color: var(--duerming-black);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-transform: capitalize;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    background: white;
    border-radius: 15px;
    padding:  15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-x: auto;
    min-height: 120px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    z-index: 1;
    transform: translateY(-50%);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-step.active .step-circle {
    background: var(--duerming-blue);
    color: var(--duerming-white);
    transform: scale(1.15);
    border-color: #1e7e34;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.progress-step.completed .step-circle {
    background: #28a745;
    color: white;
    border-color: #1e7e34;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.step-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.3;
    max-width: 100px;
    word-wrap: break-word;
}

.progress-step.active .step-label {
    color: var(--duerming-black);
    font-weight: 700;
    font-size: 1rem;
}

.progress-step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

/* Alert Container */
.alert-container {
    margin-bottom: 20px;
}

.alert {
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    flex: 1;
}

.wizard-step.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-content {
    max-width: 800px;
    margin: 0 auto;
}

.step-title {
    color: var(--duerming-black);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: var(--duerming-black);
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: var(--duerming-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(3, 134, 162, 0.1);
}

.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* Booking Type Selector */
.booking-type-selector {
    margin-bottom: 30px;
}

.booking-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .booking-options {
        grid-template-columns: 1fr;
    }
}

.booking-option {
    display: flex;
    align-items: center;
    padding: 25px;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
}

.booking-option:hover {
    border-color: var(--duerming-blue);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.booking-option.selected {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);  /* green tint */
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

.option-icon {
    font-size: 2.5rem;
    color: var(--duerming-blue);
    margin-right: 20px;
}

.option-content h4 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: var(--duerming-black);
}

.option-content p {
    margin: 0;
    color: #6c757d;
}

.booking-option input[type="radio"] {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

/* Passenger Counter */
.passenger-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.counter-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--duerming-blue);
    color: var(--duerming-black);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.counter-btn:hover {
    background: var(--duerming-dark-blue);
    transform: scale(1.1);
}

.counter-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

#passenger-count {
    width: 80px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--duerming-blue);
    background: white;
}

/* Passenger Cards */
.passengers-container {
    margin-bottom: 15px;
}

.passengers-section-compact {
    margin-bottom: 20px;
}

.passenger-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.passenger-limit {
    font-size: 0.85rem;
    color: #6c757d;
}

.form-group-compact {
    margin-bottom: 15px;
}

.passenger-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.passenger-header {
    flex-shrink: 0;
    min-width: 100px;
}

.passenger-header h4 {
    color: #333;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-grid {
    display: flex;
    gap: 15px;
    flex: 1;
}

.form-grid .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-grid .form-label {
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: block;
}

.form-grid .form-control {
    height: 36px;
    font-size: 0.9rem;
}

.remove-passenger {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-passenger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Add Passenger Button */
#add-passenger-btn {
  background: linear-gradient(135deg, #28a745, #34d058);
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: 15px;
  width: 100%;
}

#add-passenger-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838, #28a745);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#add-passenger-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}


.passenger-card.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Room Configuration */
.room-info {
    background: rgba(220, 53, 69, 0.1); /* light red background */
    border: 1px solid rgba(220, 53, 69, 0.3); /* red border */
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 10px;
    color: #dc3545; /* red text */
    font-size: 0.9rem;
}



.room-info i {
    margin-right: 8px;
}

/* Group Form */
.booking-form {
    display: none;
}

.booking-form.active {
    display: block;
}

.room-distribution {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.room-distribution h4 {
    color: var(--duerming-black);
    margin-bottom: 20px;
}

.room-input {
    text-align: center;
}

.room-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.room-total, .room-expected {
    font-weight: 600;
}

.room-total span, .room-expected span {
    color: var(--duerming-blue);
    font-size: 1.2rem;
}

/* Return Flight Section */
.return-flight-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.optional {
    color: #6c757d;
    font-weight: normal;
    font-size: 0.9rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

/* Default service card */
.service-option {
  display: flex;
  align-items: center;
  padding: 25px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Hover state */
.service-option:hover {
  border-color: var(--duerming-blue);
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Keep switch green */
input[type="checkbox"]:checked + .slider {
  background: #28a745;
}
input[type="checkbox"]:checked + .slider:before {
  background: white;
  transform: translateX(26px);
}

/* Make the whole card green when selected */
.service-option:has(input[type="checkbox"]:checked) {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.service-icon {
    font-size: 2rem;
    color: var(--duerming-blue);
    margin-right: 20px;
    min-width: 60px;
}

.service-content {
    flex: 1;
}

.service-content h4 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: var(--duerming-black);
}

.service-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--duerming-blue);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Flying Blue Section */
.flyingblue-section {
    background: white;
    border: 2px solid #1e3c72;
    border-radius: 15px;
    padding: 25px;
    color: #1e3c72;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.flyingblue-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.flyingblue-logo {
    height: 35px;
}

.flyingblue-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3c72;
}

.flyingblue-details .form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 12px 15px;
}
.flyingblue-details .form-control:focus {
    border-color: #1e3c72;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.flyingblue-section .service-toggle {
    margin-left: auto;
}

.validation-message {
    margin-top: 8px;
    font-size: 0.9rem;
}

.validation-message.success {
    color: #28a745;
}

.validation-message.error {
    color: #dc3545;
}

/* Photo Upload */
.photo-upload {
    text-align: center;
}

.photo-btn {
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
}

.photo-preview {
    margin-top: 15px;
    max-width: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: auto;
}

/* Review Sections */
.review-sections {
    margin-bottom: 30px;
}

.review-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.review-section h4 {
    color: var(--duerming-black);
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--duerming-blue);
    padding-bottom: 10px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.review-item .label {
    font-weight: 600;
    color: var(--duerming-black);
}

.review-item .value {
    color: #6c757d;
}

.review-sections-compact {
    margin-bottom: 20px;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
}

.review-card {
    background: rgba(40, 167, 69, 0.08); /* soft green */
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 15px;
}

.review-card h5 {
    color: var(--duerming-black);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--duerming-blue);
    padding-bottom: 6px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.9rem;
}

.review-item .label {
    font-weight: 600;
    color: var(--duerming-black);
}

.review-item .value {
    color: #6c757d;
}

.terms-section-compact {
    background: rgba(220, 53, 69, 0.1); /* light red */
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.terms-section-compact .form-check-label {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Return Flight Section */
.return-flight-section {
    background: rgba(3, 134, 162, 0.05);
    border: 1px solid rgba(3, 134, 162, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.return-flight-section.compact {
    padding: 15px;
    margin-top: 10px;
}

.form-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

@media (max-width: 1024px) {
    .form-grid-compact {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .return-flight-section.compact {
        padding: 12px;
    }
}

/* Terms Section */
.terms-section {
    background: rgba(3, 134, 162, 0.05);
    border: 2px solid rgba(3, 134, 162, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--duerming-black);
}

/* Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--duerming-blue);
    color: var(--duerming-black);
}

.btn-primary:hover {
    background: var(--duerming-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design for iPad */

/* iPad Portrait (768px x 1024px) */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .wizard-container {
        padding: 15px;
    }
    
    .wizard-title {
        font-size: 1.6rem;
    }
    
    .airline-logo {
        max-height: 60px;
    }
    
    .progress-container {
        padding: 0 5px;
    }
    
    .progress-bar {
        padding: 15px 8px;
        min-height: 90px;
        overflow-x: auto;
    }
    
    .progress-bar::before {
        top: 40px;
        left: 30px;
        right: 30px;
        height: 3px;
    }
    
    .progress-step {
        min-width: 80px;
        flex-shrink: 0;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .step-label {
        font-size: 0.75rem;
        max-width: 70px;
        line-height: 1.2;
    }
    
    .step-title {
        font-size: 1.8rem;
    }
}

/* iPad Portrait (768px x 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .wizard-container {
        padding: 20px 40px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .booking-options {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-option {
        padding: 20px;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* iPad Landscape (1024px x 768px) */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .wizard-container {
        padding: 20px 40px;
    }
    
    .progress-bar {
        padding: 20px 10px;
        min-height: 100px;
    }
    
    .progress-bar::before {
        top: 45px;
        left: 40px;
        right: 40px;
    }
    
    .progress-step {
        min-width: 100px;
    }
    
    .step-circle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .step-label {
        font-size: 0.85rem;
        max-width: 90px;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large tablets and small desktops */
@media screen and (min-width: 1025px) {
    .wizard-container {
        padding: 30px;
    }
    
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .form-control {
        padding: 10px 20px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 18px 35px;
        font-size: 1.2rem;
    }
    
    .counter-btn {
        width: 55px;
        height: 55px;
    }
    
    .step-circle {
        width: 55px;
        height: 55px;
    }
    
    .switch {
        width: 70px;
        height: 40px;
    }
    
    .slider:before {
        height: 32px;
        width: 32px;
    }
    
    input:checked + .slider:before {
        transform: translateX(30px);
    }
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: white;
    }
    
    .wizard-header,
    .wizard-step,
    .progress-bar {
        background: #34495e;
        color: white;
    }
    
    .form-control {
        background: #2c3e50;
        border-color: #4a5568;
        color: white;
    }
    
    .form-control:focus {
        background: #34495e;
    }
    
    .booking-option,
    .service-option {
        background: #2c3e50;
        border-color: #4a5568;
    }
    
    .passenger-card,
    .room-distribution,
    .return-flight-section,
    .review-section {
        background: #2c3e50;
    }
}*/

/* iPhone optimization (small screens < 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .wizard-header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .airline-logo {
        max-height: 50px;
        margin-bottom: 8px;
    }

    .wizard-title {
        font-size: 1.4rem;
    }

    .flight-form-container {
        padding: 20px 15px;
        margin: 10px;
        border-width: 2px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .form-control {
        font-size: 1rem;
        padding: 12px;
    }

    .consent-section {
        padding: 15px;
    }

    .consent-item {
        padding: 10px;
        font-size: 0.9rem;
    }

    .examples-grid {
        grid-template-columns: 1fr; /* stack vertically */
        gap: 10px;
    }

    .example-card {
        padding: 12px;
    }

    .form-actions {
        margin-top: 20px;
    }

    .btn-large {
        width: 100%;
        padding: 14px;
        font-size: 1.1rem;
    }

    .btn-link {
        display: block;
        margin-top: 10px;
        font-size: 0.9rem;
    }

    /* Remove horizontal padding for wizard-step on mobile */
    .wizard-step {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .progress-bar::before {
        display: none;
    }

    /* Passenger card and header mobile layout */
    .passenger-card {
        display: block;
        padding: 12px;
    }
    .passenger-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    .passenger-form {
        display: block;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .passenger-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .passenger-info {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .passenger-number {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    .passenger-limit, .passenger-count {
        font-size: 0.9rem;
    }
    .wizard-step .form-grid {
      grid-template-columns: 1fr !important; /* stack vertically */
      gap: 12px;
    }
    /* Only stack the email fields vertically in step 3 */
    .wizard-step[data-step="3"] .form-grid {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 15px !important;
    }
}

@media (max-width: 768px) {
  /* Only stack the email fields vertically in step 3 on tablet/mobile */
  .wizard-step[data-step="3"] .form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Select2 custom styling */
.select2-container .select2-selection--single {
  height: 45px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--duerming-black);
  background: #f8f9fa;
}

.select2-container--default .select2-results__option {
  font-size: 0.9rem;
  padding: 8px 12px;
}

.select2-container--default .select2-results__option--highlighted {
  background-color: var(--duerming-blue);
  color: white;
  font-weight: bold;
}