/* mobile-step6.css - Enhanced mobile styling for Step 6 travelers form */

/* Mobile-specific Step 6 optimizations */
@media (max-width: 768px) {
    
    /* Step 6 Container */
    .booking-step.step-6 {
        padding: 0;
    }
    
    /* Section headers with better mobile spacing */
    .booking-step.step-6 .step-title {
        margin: 15px 0 10px 0;
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    /* Travelers Info Container - Mobile optimized */
    .travelers-info-container {
        background: transparent;
        padding: 0;
        margin: 0;
    }
    
    /* Individual Traveler Cards */
    .traveler-card {
        background: #ffffff;
        border-radius: 12px;
        margin-bottom: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .traveler-card.collapsed {
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    
    /* Traveler Card Header */
    .traveler-card-header {
        background: linear-gradient(135deg, #08605F 0%, #0a706f 100%);
        color: #ffffff;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }
    
    .traveler-card-header:active {
        background: linear-gradient(135deg, #065755 0%, #08605F 100%);
    }
    
    .traveler-card-title {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
    }
    
    .traveler-number {
        background: rgba(255,255,255,0.2);
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 14px;
    }
    
    .traveler-label {
        font-size: 16px;
        font-weight: 600;
    }
    
    .traveler-summary {
        font-size: 12px;
        opacity: 0.9;
        margin-top: 2px;
        font-weight: 400;
    }
    
    /* Expand/Collapse Icon */
    .traveler-expand-icon {
        width: 24px;
        height: 24px;
        transition: transform 0.3s ease;
    }
    
    .traveler-expand-icon svg {
        width: 100%;
        height: 100%;
        stroke: #ffffff;
        stroke-width: 2;
    }
    
    .traveler-card.collapsed .traveler-expand-icon {
        transform: rotate(180deg);
    }
    
    /* Traveler Card Body */
    .traveler-card-body {
        padding: 20px 15px;
        background: #ffffff;
        max-height: 500px;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .traveler-card.collapsed .traveler-card-body {
        max-height: 0;
        padding: 0 15px;
    }
    
    /* Form Field Mobile Styling */
    .mobile-form-field {
        margin-bottom: 20px;
    }
    
    .mobile-form-label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        font-family: 'Barlow';
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-form-label .required-star {
        color: #dc3545;
        margin-left: 3px;
    }
    
    .mobile-form-label .optional-text {
        font-weight: 400;
        opacity: 0.7;
        text-transform: none;
        letter-spacing: normal;
        font-size: 12px;
    }
    
    /* Enhanced Mobile Input Fields */
    .mobile-input {
        width: 100%;
        height: 52px;
        padding: 14px 16px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
        font-family: 'Barlow';
        background: #ffffff;
        transition: all 0.2s ease;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        box-shadow: none;
    }
    
    .mobile-input:focus {
        border-color: #08605F;
        outline: none;
        box-shadow: 0 0 0 3px rgba(8, 96, 95, 0.1);
        background: #ffffff;
    }
    
    .mobile-input:disabled {
        background: #f5f5f5;
        opacity: 0.7;
    }
    
    .mobile-input.error {
        border-color: #dc3545;
        background: rgba(220, 53, 69, 0.03);
    }
    
    .mobile-input.error:focus {
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    }
    
    /* Birthday Date Picker Container */
    .birthday-date-container {
        position: relative;
    }
    
    /* Native Date Input for Mobile */
    .mobile-date-input {
        width: 100%;
        height: 52px;
        padding: 14px 16px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 16px;
        font-family: 'Barlow';
        background: #ffffff;
        transition: all 0.2s ease;
        -webkit-appearance: none;
    }
    
    /* Date input icon */
    .mobile-date-input::-webkit-calendar-picker-indicator {
        background: transparent;
        cursor: pointer;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        opacity: 0.6;
    }
    
    /* Better Select Dropdowns for Birthday (fallback) */
    .mobile-birthday-selects {
        display: grid;
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 8px;
    }
    
    .mobile-select {
        height: 52px;
        padding: 14px 12px;
        padding-right: 35px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 15px;
        font-family: 'Barlow';
        background: #ffffff;
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        transition: all 0.2s ease;
        color:black;
    }
    
    .mobile-select:focus {
        border-color: #08605F;
        outline: none;
        box-shadow: 0 0 0 3px rgba(8, 96, 95, 0.1);
    }
    
    .mobile-select.error {
        border-color: #dc3545;
        background-color: rgba(220, 53, 69, 0.03);
    }
    
    /* Validation Feedback */
    .field-error-message {
        color: #dc3545;
        font-size: 12px;
        margin-top: 6px;
        display: flex;
        align-items: center;
        gap: 4px;
        animation: slideIn 0.2s ease;
    }
    
    .field-error-message svg {
        width: 14px;
        height: 14px;
    }
    
    .field-success-message {
        color: #28a745;
        font-size: 12px;
        margin-top: 6px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .field-success-message svg {
        width: 14px;
        height: 14px;
    }
    
    /* Completion Status Indicator */
    .traveler-status {
        display:none;
    }
    
    .status-complete {
        background: #28a745;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: scaleIn 0.3s ease;
    }
    
    .status-complete svg {
        width: 12px;
        height: 12px;
        stroke: #ffffff;
        stroke-width: 3;
    }
    
    .status-incomplete {
        background: #ffc107;
        border-radius: 50%;
        width: 8px;
        height: 8px;
        margin: 6px;
    }
    
    /* Notice Section Mobile */
    .traveler-notice-section {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: none;
        border-radius: 12px;
        padding: 15px;
        margin: 20px 0;
        margin-bottom: 100px;
    }
    
    .traveler-notice-section p {
        font-size: 13px;
        line-height: 1.6;
        margin: 0;
    }
    
    /* Seat Selection Mobile Optimization */
    .seat-selection-section,
    .guarantee-selection-section,
    .payment-selection-section {
        margin: 15px 0;
    }
    
    .seat-options,
    .guarantee-options,
    .payment-options {
        background: #ffffff;
        border-radius: 12px;
        padding: 0;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .seat-option,
    .guarantee-option,
    .payment-option {
        padding: 20px 15px;
        border-bottom: 1px solid #f0f0f0;
        min-height: auto;
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }
    
    .seat-option:last-child,
    .guarantee-option:last-child,
    .payment-option:last-child {
        border-bottom: none;
    }
    
    .seat-checkbox,
    .guarantee-checkbox,
    .payment-checkbox {
        margin-top: 2px;
    }
    
    .seat-label,
    .guarantee-label,
    .payment-label {
        flex: 1;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .seat-price,
    .guarantee-price,
    .payment-price {
        font-size: 13px;
        white-space: nowrap;
        color: #08605F;
        font-weight: 600;
    }
    
    /* Info text sections */
    .info-text-light {
        font-size: 13px;
        line-height: 1.6;
        color: #666;
        margin: 15px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    /* Animations */
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes scaleIn {
        from {
            transform: scale(0);
        }
        to {
            transform: scale(1);
        }
    }
    
    /* Progress indicator for multiple travelers */
    .travelers-progress {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .progress-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #e0e0e0;
        transition: all 0.3s ease;
    }
    
    .progress-dot.active {
        background: #08605F;
        transform: scale(1.3);
    }
    
    .progress-dot.complete {
        background: #28a745;
    }
    
    /* Quick fill button for testing */
    .quick-fill-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        background: #f0f0f0;
        border: none;
        border-radius: 4px;
        font-size: 11px;
        color: #666;
        cursor: pointer;
        opacity: 0.7;
    }
    
    .quick-fill-btn:hover {
        opacity: 1;
        background: #e0e0e0;
    }
    
    /* Input help text */
    .input-help-text {
        font-size: 11px;
        color: #999;
        margin-top: 4px;
        font-style: italic;
    }
    
    /* Floating labels effect (optional enhancement) */
    .mobile-form-field.has-value .mobile-form-label,
    .mobile-form-field.focused .mobile-form-label {
        font-size: 11px;
        color: #08605F;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .mobile-input,
    .mobile-select,
    .mobile-date-input {
        font-size: 16px !important; /* Prevent zoom on focus */
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .traveler-card,
    .traveler-card-body,
    .traveler-expand-icon,
    .mobile-input,
    .mobile-select {
        transition: none !important;
        animation: none !important;
    }
}