/**
 * NDC Flight Booking - Frontend Styles
 * 
 * @package NDC_Flight_Booking
 */

/* =================================================================
   Variables & Reset
   ================================================================= */
:root {
    --ndc-primary: #0073aa;
    --ndc-primary-dark: #005a87;
    --ndc-secondary: #46b450;
    --ndc-success: #46b450;
    --ndc-warning: #f0ad4e;
    --ndc-danger: #dc3545;
    --ndc-info: #17a2b8;
    --ndc-light: #f8f9fa;
    --ndc-dark: #343a40;
    --ndc-gray: #6c757d;
    --ndc-border: #dee2e6;
    --ndc-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --ndc-radius: 8px;
    --ndc-transition: all 0.3s ease;
}

/* =================================================================
   Base Styles
   ================================================================= */
.ndc-search-form-wrapper,
.ndc-booking-flow-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.ndc-search-form-wrapper *,
.ndc-booking-flow-wrapper * {
    box-sizing: border-box;
}

/* =================================================================
   Progress Steps
   ================================================================= */
.ndc-booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.ndc-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.ndc-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ndc-border);
    color: var(--ndc-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: var(--ndc-transition);
}

.ndc-progress-step.active .ndc-step-number {
    background: var(--ndc-primary);
    color: #fff;
}

.ndc-progress-step.completed .ndc-step-number {
    background: var(--ndc-success);
    color: #fff;
}

.ndc-step-label {
    font-size: 14px;
    color: var(--ndc-gray);
}

.ndc-progress-step.active .ndc-step-label,
.ndc-progress-step.completed .ndc-step-label {
    color: var(--ndc-dark);
    font-weight: 500;
}

.ndc-progress-line {
    flex: 1;
    height: 3px;
    background: var(--ndc-border);
    margin: 0 15px;
    margin-bottom: 30px;
    max-width: 100px;
}

/* =================================================================
   Search Form
   ================================================================= */
.ndc-search-form {
    background: #fff;
    border-radius: var(--ndc-radius);
    padding: 30px;
    box-shadow: var(--ndc-shadow);
}

.ndc-trip-type {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.ndc-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ndc-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ndc-primary);
}

.ndc-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ndc-form-group {
    display: flex;
    flex-direction: column;
}

.ndc-form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--ndc-dark);
}

.ndc-form-group label .required {
    color: var(--ndc-danger);
}

.ndc-form-group input,
.ndc-form-group select {
    padding: 12px 15px;
    border: 1px solid var(--ndc-border);
    border-radius: 6px;
    font-size: 16px;
    transition: var(--ndc-transition);
}

.ndc-form-group input:focus,
.ndc-form-group select:focus {
    outline: none;
    border-color: var(--ndc-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}


/* Invalid airport code styling */
.ndc-form-group input.ndc-invalid-code {
    border-color: var(--ndc-danger);
}

.ndc-form-group input.ndc-invalid-code:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.ndc-form-group small {
    font-size: 12px;
    color: var(--ndc-gray);
    margin-top: 5px;
}

.ndc-form-group-small {
    max-width: 120px;
}

.ndc-swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 28px;
}

.ndc-swap-btn button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ndc-border);
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: var(--ndc-transition);
}

.ndc-swap-btn button:hover {
    background: var(--ndc-light);
    border-color: var(--ndc-primary);
}

.ndc-passengers-row {
    grid-template-columns: repeat(3, 1fr);
    max-width: 500px;
}

.ndc-form-group-passengers select {
    max-width: 100px;
}

.ndc-form-actions {
    margin-top: 30px;
    text-align: center;
}
/* =================================================================
   Airport Autocomplete Styling
   ================================================================= */
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--ndc-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #fff;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.ui-autocomplete .ui-menu-item {
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--ndc-border);
}
.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}
.ui-autocomplete .ui-menu-item-wrapper {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-state-active {
    background-color: #f0f7ff;
    border-color: var(--ndc-primary);
}
.ndc-airport-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ndc-airport-main {
    font-size: 15px;
    color: var(--ndc-dark);
}
.ndc-airport-main strong {
    font-weight: 600;
    color: #000;
}
.ndc-airport-code {
    color: var(--ndc-primary);
    font-weight: 600;
    font-size: 14px;
}
.ndc-airport-details {
    font-size: 12px;
    color: var(--ndc-gray);
    line-height: 1.3;
}
/* Loading state for autocomplete */
.ui-autocomplete-loading {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" fill="none" stroke="%230073aa" stroke-width="2" stroke-dasharray="10 5" transform-origin="center"><animateTransform attributeName="transform" type="rotate" from="0 8 8" to="360 8 8" dur="1s" repeatCount="indefinite"/></circle></svg>') no-repeat right 12px center;
    background-size: 16px 16px;
}

/* =================================================================
   Buttons
   ================================================================= */
.ndc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ndc-transition);
    text-decoration: none;
}

.ndc-btn-primary {
    background: var(--ndc-primary);
    color: #fff;
}

.ndc-btn-primary:hover {
    background: var(--ndc-primary-dark);
    color: #fff;
}

.ndc-btn-secondary {
    background: var(--ndc-secondary);
    color: #fff;
}

.ndc-btn-secondary:hover {
    background: #3d9b46;
}

.ndc-btn-outline {
    background: transparent;
    border: 2px solid var(--ndc-primary);
    color: var(--ndc-primary);
}

.ndc-btn-outline:hover {
    background: var(--ndc-primary);
    color: #fff;
}

.ndc-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.ndc-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =================================================================
   Spinner / Loading
   ================================================================= */
.ndc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: ndc-spin 0.8s linear infinite;
}

.ndc-spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid var(--ndc-border);
    border-radius: 50%;
    border-top-color: var(--ndc-primary);
    animation: ndc-spin 0.8s linear infinite;
}

@keyframes ndc-spin {
    to { transform: rotate(360deg); }
}

.ndc-loading {
    text-align: center;
    padding: 60px 20px;
}

.ndc-loading p {
    margin-top: 20px;
    color: var(--ndc-gray);
}

.ndc-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ndc-loading-content {
    text-align: center;
}

/* =================================================================
   Error Messages
   ================================================================= */
.ndc-error,
.ndc-notice-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: var(--ndc-radius);
    margin: 20px 0;
    border-left: 4px solid var(--ndc-danger);
}

.ndc-notice-warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    border-radius: var(--ndc-radius);
    margin: 20px 0;
    border-left: 4px solid var(--ndc-warning);
}

.ndc-notice-success {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: var(--ndc-radius);
    margin: 20px 0;
    border-left: 4px solid var(--ndc-success);
}

/* =================================================================
   Search Results
   ================================================================= */
.ndc-search-results {
    margin-top: 40px;
}

.ndc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ndc-results-header h2 {
    margin: 0;
    font-size: 24px;
}

.ndc-results-count {
    color: var(--ndc-gray);
}

.ndc-results-sort {
    margin-bottom: 20px;
}

.ndc-results-sort label {
    margin-right: 10px;
}

.ndc-results-sort select {
    padding: 8px 15px;
    border: 1px solid var(--ndc-border);
    border-radius: 4px;
}

.ndc-offers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ndc-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--ndc-gray);
    background: var(--ndc-light);
    border-radius: var(--ndc-radius);
}

/* =================================================================
   Offer Cards
   ================================================================= */
.ndc-offer-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--ndc-border);
    border-radius: var(--ndc-radius);
    padding: 20px;
    transition: var(--ndc-transition);
}

.ndc-offer-card:hover {
    box-shadow: var(--ndc-shadow);
    border-color: var(--ndc-primary);
}

.ndc-offer-airline {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.ndc-airline-code {
    font-size: 16px;
    font-weight: bold;
    color: var(--ndc-primary);
}

.ndc-flight-number {
    font-size: 12px;
    color: var(--ndc-gray);
}

.ndc-offer-details {
    flex: 1;
}

.ndc-flight-route {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ndc-departure,
.ndc-arrival {
    text-align: center;
}

.ndc-time {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.ndc-airport {
    font-size: 14px;
    color: var(--ndc-gray);
}

.ndc-flight-duration {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.ndc-duration-time {
    font-size: 12px;
    color: var(--ndc-gray);
    display: block;
    margin-bottom: 5px;
}

.ndc-duration-line {
    height: 2px;
    background: var(--ndc-border);
    position: relative;
}

.ndc-duration-line::before,
.ndc-duration-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ndc-border);
}

.ndc-duration-line::before {
    left: 0;
}

.ndc-duration-line::after {
    right: 0;
}

.ndc-stops,
.ndc-direct {
    font-size: 11px;
    color: var(--ndc-gray);
    margin-top: 5px;
}

.ndc-direct {
    color: var(--ndc-success);
}

.ndc-offer-info {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ndc-offer-info span {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--ndc-light);
    border-radius: 20px;
}

.ndc-refundable {
    background: #d4edda !important;
    color: #155724;
}

.ndc-has-bundles {
    background: #e3f2fd !important;
    color: #0d47a1;
}

.ndc-offer-price {
    text-align: right;
    min-width: 150px;
}

.ndc-price-amount {
    font-size: 28px;
    font-weight: bold;
    color: var(--ndc-primary);
    display: block;
}

.ndc-price-per {
    font-size: 12px;
    color: var(--ndc-gray);
    display: block;
    margin-bottom: 10px;
}

/* =================================================================
   Booking Steps
   ================================================================= */
.ndc-booking-step {
    min-height: 300px;
}

.ndc-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ndc-step-header h2 {
    margin: 0;
}

.ndc-step-actions {
    margin-top: 30px;
    text-align: center;
}

/* =================================================================
   Selected Flight Summary
   ================================================================= */
.ndc-selection-summary {
    background: var(--ndc-light);
    border-radius: var(--ndc-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.ndc-selected-flight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ndc-route {
    font-size: 24px;
    font-weight: bold;
}

.ndc-arrow {
    color: var(--ndc-primary);
    margin: 0 10px;
}

.ndc-confirmed-price .ndc-amount {
    font-size: 28px;
    font-weight: bold;
    color: var(--ndc-primary);
}

/* =================================================================
   Bundles Section
   ================================================================= */
.ndc-bundles-section {
    margin-bottom: 30px;
}

.ndc-bundles-list {
    display: grid;
    gap: 15px;
}

.ndc-bundle-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--ndc-border);
    border-radius: var(--ndc-radius);
    cursor: pointer;
    transition: var(--ndc-transition);
}

.ndc-bundle-option:hover {
    border-color: var(--ndc-primary);
}

.ndc-bundle-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.ndc-bundle-name {
    font-weight: 500;
    flex: 1;
}

.ndc-bundle-price {
    color: var(--ndc-primary);
    font-weight: bold;
}

.ndc-bundle-services {
    margin: 10px 0 0 35px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--ndc-gray);
}

.ndc-bundle-services li::before {
    content: '✓ ';
    color: var(--ndc-success);
}

/* =================================================================
   Passenger Form
   ================================================================= */
.ndc-passenger-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.ndc-passengers-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ndc-passenger-card {
    background: #fff;
    border: 1px solid var(--ndc-border);
    border-radius: var(--ndc-radius);
    overflow: hidden;
}

.ndc-passenger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--ndc-light);
    border-bottom: 1px solid var(--ndc-border);
}

.ndc-passenger-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ndc-pax-type-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.ndc-pax-ADT,
.ndc-pax-adt {
    background: #e3f2fd;
    color: #1565c0;
}

.ndc-pax-CHD,
.ndc-pax-chd {
    background: #fff3e0;
    color: #e65100;
}

.ndc-pax-INF,
.ndc-pax-inf {
    background: #fce4ec;
    color: #c2185b;
}

.ndc-lead-badge {
    font-size: 11px;
    color: var(--ndc-success);
    font-weight: normal;
}

.ndc-collapse-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.ndc-passenger-body {
    padding: 20px;
}

.ndc-form-section {
    margin-bottom: 25px;
}

.ndc-form-section h4 {
    font-size: 16px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ndc-border);
}

.ndc-phone-input {
    display: flex;
    gap: 10px;
}

.ndc-phone-input select {
    width: 100px;
    flex-shrink: 0;
}

.ndc-phone-input input {
    flex: 1;
}

/* =================================================================
   Booking Summary Sidebar
   ================================================================= */
.ndc-booking-summary-sidebar {
    position: sticky;
    top: 20px;
}

.ndc-summary-card {
    background: #fff;
    border: 1px solid var(--ndc-border);
    border-radius: var(--ndc-radius);
    padding: 20px;
}

.ndc-summary-card h3 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ndc-primary);
}

.ndc-summary-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ndc-border);
}

.ndc-summary-section h4 {
    font-size: 14px;
    color: var(--ndc-gray);
    margin: 0 0 10px;
}

.ndc-summary-price {
    border-bottom: none;
}

.ndc-total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid var(--ndc-dark);
    font-size: 18px;
    font-weight: bold;
}

.ndc-total-price .ndc-amount {
    color: var(--ndc-primary);
    font-size: 24px;
}

/* =================================================================
   Contact & Terms Sections
   ================================================================= */
.ndc-contact-section,
.ndc-terms-section {
    margin-top: 30px;
    padding: 20px;
    background: var(--ndc-light);
    border-radius: var(--ndc-radius);
}

.ndc-contact-section h3 {
    margin: 0 0 10px;
}

.ndc-section-desc {
    color: var(--ndc-gray);
    margin-bottom: 20px;
}

.ndc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.ndc-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.ndc-passenger-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =================================================================
   Confirmation Page
   ================================================================= */
.ndc-confirmation-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.ndc-confirmation-header {
    text-align: center;
    margin-bottom: 40px;
}

.ndc-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--ndc-success);
    color: #fff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ndc-warning-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--ndc-warning);
    color: #fff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ndc-reference-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.ndc-reference-card {
    background: var(--ndc-light);
    padding: 20px 30px;
    border-radius: var(--ndc-radius);
    text-align: center;
    min-width: 180px;
}

.ndc-ref-label {
    display: block;
    font-size: 12px;
    color: var(--ndc-gray);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ndc-ref-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--ndc-primary);
}

.ndc-confirmation-section {
    background: #fff;
    border: 1px solid var(--ndc-border);
    border-radius: var(--ndc-radius);
    padding: 25px;
    margin-bottom: 25px;
}

.ndc-confirmation-section h2 {
    margin: 0 0 20px;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ndc-primary);
}

.ndc-journey-card {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ndc-border);
}

.ndc-journey-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ndc-journey-route {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.ndc-journey-route .ndc-airport {
    text-align: center;
}

.ndc-journey-route .ndc-airport strong {
    font-size: 24px;
    display: block;
}

.ndc-route-arrow {
    font-size: 24px;
    color: var(--ndc-primary);
}

.ndc-segment-details {
    background: var(--ndc-light);
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.ndc-segment-flight {
    font-weight: bold;
    margin-bottom: 10px;
}

.ndc-segment-times {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ndc-time-block {
    text-align: center;
}

.ndc-segment-times .ndc-time {
    font-size: 20px;
    font-weight: bold;
}

.ndc-segment-times .ndc-date {
    font-size: 12px;
    color: var(--ndc-gray);
    display: block;
}

.ndc-duration {
    flex: 1;
    text-align: center;
}

.ndc-passengers-list {
    display: grid;
    gap: 15px;
}

.ndc-passenger-info {
    padding: 15px;
    background: var(--ndc-light);
    border-radius: 6px;
}

.ndc-pax-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.ndc-pax-passport,
.ndc-pax-contact {
    font-size: 13px;
    color: var(--ndc-gray);
}

.ndc-price-summary .ndc-price-details {
    font-size: 16px;
}

.ndc-price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.ndc-price-row.ndc-total {
    font-size: 20px;
    font-weight: bold;
    border-top: 2px solid var(--ndc-dark);
    padding-top: 15px;
    margin-top: 10px;
}

.ndc-important-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ndc-important-info li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.ndc-important-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--ndc-primary);
    font-size: 20px;
}

.ndc-confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.ndc-support-info {
    text-align: center;
    color: var(--ndc-gray);
    font-size: 14px;
}

/* =================================================================
   My Bookings
   ================================================================= */
.ndc-my-bookings h2 {
    margin-bottom: 25px;
}

.ndc-bookings-list {
    display: grid;
    gap: 20px;
}

.ndc-booking-card {
    background: #fff;
    border: 1px solid var(--ndc-border);
    border-radius: var(--ndc-radius);
    padding: 20px;
}

.ndc-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ndc-booking-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-completed .ndc-booking-status {
    background: #d4edda;
    color: #155724;
}

.status-held .ndc-booking-status {
    background: #fff3cd;
    color: #856404;
}

.status-cancelled .ndc-booking-status {
    background: #f8d7da;
    color: #721c24;
}

.ndc-booking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.ndc-detail {
    display: flex;
    flex-direction: column;
}

.ndc-label {
    font-size: 12px;
    color: var(--ndc-gray);
}

.ndc-value {
    font-weight: 500;
}

.ndc-price {
    color: var(--ndc-primary);
    font-size: 18px;
}

.ndc-hold-warning {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ndc-booking-actions {
    display: flex;
    gap: 10px;
}

/* =================================================================
   Booking Lookup
   ================================================================= */
.ndc-booking-lookup {
    max-width: 500px;
    margin: 0 auto;
}

.ndc-booking-lookup h2 {
    text-align: center;
    margin-bottom: 30px;
}

.ndc-lookup-result {
    margin-top: 30px;
}

.ndc-booking-found {
    background: #d4edda;
    padding: 20px;
    border-radius: var(--ndc-radius);
}

.ndc-booking-found h3 {
    margin: 0 0 15px;
    color: #155724;
}

/* =================================================================
   Responsive Styles
   ================================================================= */
@media (max-width: 992px) {
    .ndc-passenger-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ndc-booking-summary-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .ndc-offer-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ndc-offer-airline {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .ndc-flight-route {
        flex-direction: column;
        gap: 10px;
    }
    
    .ndc-flight-duration {
        order: 2;
        padding: 10px 0;
    }
    
    .ndc-offer-price {
        text-align: center;
        padding-top: 15px;
        border-top: 1px solid var(--ndc-border);
    }
    
    .ndc-form-row {
        grid-template-columns: 1fr;
    }
    
    .ndc-swap-btn {
        display: none;
    }
    
    .ndc-booking-progress {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .ndc-progress-line {
        display: none;
    }
    
    .ndc-reference-cards {
        flex-direction: column;
    }
    
    .ndc-reference-card {
        min-width: 100%;
    }
    
    .ndc-step-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ndc-journey-route {
        flex-direction: column;
        text-align: center;
    }
    
    .ndc-segment-times {
        flex-direction: column;
    }
}

/* =================================================================
   Stripe Payment Section
   Styles for the payment form injected by booking-flow.js after
   a booking is confirmed. Must live here (not in confirmation.php)
   because the booking flow never loads that template.
   ================================================================= */

/* ── Wrapper ─────────────────────────────────────────────────── */
.ndc-payment-section {
    background:    #fff;
    border:        2px solid #e2e8f0;
    border-radius: 12px;
    padding:       28px 32px 24px;
    margin:        24px 0;
}

/* ── Header ──────────────────────────────────────────────────── */
.ndc-payment-header {
    text-align:     center;
    margin-bottom:  20px;
}

.ndc-payment-lock-icon {
    font-size:      1.8rem;
    margin-bottom:  6px;
}

.ndc-payment-header h2,
.ndc-payment-header h3 {
    margin: 0 0 8px;
    color:  #1a202c;
}

.ndc-payment-subtitle {
    color:     #4a5568;
    margin:    0;
    font-size: 0.95rem;
}

/* ── Test-mode notice ────────────────────────────────────────── */
.ndc-stripe-test-notice {
    background:    #fffbeb;
    border:        1px solid #f6e05e;
    border-radius: 6px;
    padding:       10px 14px;
    margin:        14px 0;
    font-size:     0.85rem;
    color:         #744210;
}

/* ── "Select payment method" label ──────────────────────────── */
.ndc-payment-methods-label {
    font-size:      0.8rem;
    font-weight:    600;
    color:          #718096;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom:  8px;
}

/* ── Payment Element container (Stripe mounts here) ─────────── */
#ndc-payment-element-wrapper {
    margin-bottom: 20px;
}

#ndc-payment-element {
    min-height: 60px;
}

/* ── Loading indicator while Stripe element initialises ─────── */
.ndc-stripe-loading {
    display:     flex;
    align-items: center;
    gap:         8px;
    padding:     20px 0;
    color:       #718096;
    font-size:   0.9rem;
}

/* ── Dark spinner (for loading state on white background) ────── */
.ndc-spinner-dark {
    border-color:     rgba(27, 108, 168, 0.25);
    border-top-color: #1b6ca8;
}

/* White spinner used inside the Pay button */
.ndc-spinner-white {
    border-color:     rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
}

/* Override base spinner size & colour for stripe loading spinner */
.ndc-stripe-loading .ndc-spinner {
    width:            18px;
    height:           18px;
    border:           3px solid rgba(27, 108, 168, 0.25);
    border-top-color: #1b6ca8;
    flex-shrink:      0;
}

/* ── Message box (error / info) ──────────────────────────────── */
.ndc-payment-message {
    padding:       12px 16px;
    border-radius: 6px;
    margin-top:    12px;
    font-size:     0.9rem;
    font-weight:   500;
}

.ndc-msg-error {
    background: #fff5f5;
    border:     1px solid #fed7d7;
    color:      #c53030;
}

.ndc-msg-info {
    background: #ebf8ff;
    border:     1px solid #bee3f8;
    color:      #2b6cb0;
}

/* ── Pay button ──────────────────────────────────────────────── */
.ndc-btn-pay {
    display:          flex;
    align-items:      center;
    justify-content:  center;
    gap:              8px;
    width:            100%;
    padding:          15px 24px;
    background:       linear-gradient(135deg, #1b6ca8 0%, #0f4c7a 100%);
    color:            #fff;
    border:           none;
    border-radius:    8px;
    font-size:        1rem;
    font-weight:      700;
    cursor:           pointer;
    transition:       opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing:   0.025em;
    margin-top:       4px;
}

.ndc-btn-pay:hover:not(:disabled) {
    opacity:    0.92;
    transform:  translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 108, 168, 0.35);
}

.ndc-btn-pay:disabled {
    opacity: 0.55;
    cursor:  not-allowed;
}

/* ── Footer row (Stripe badge) ───────────────────────────────── */
.ndc-payment-footer {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    margin-top:      16px;
    flex-wrap:       wrap;
    gap:             8px;
}

.ndc-stripe-badge {
    display:     inline-flex;
    align-items: center;
    font-size:   0.78rem;
    color:       #718096;
    font-weight: 500;
}

.ndc-method-icons {
    display:     inline-flex;
    align-items: center;
    gap:         4px;
    font-size:   1.1rem;
}

/* ── Paid / Success banner ───────────────────────────────────── */
.ndc-payment-success-banner {
    text-align:   center;
    border-color: #48bb78 !important;
    background:   linear-gradient(to bottom, #f0fff4 0%, #fff 100%) !important;
}

.ndc-payment-paid-icon {
    width:         56px;
    height:        56px;
    line-height:   56px;
    border-radius: 50%;
    background:    #48bb78;
    color:         #fff;
    font-size:     1.6rem;
    margin:        0 auto 16px;
    text-align:    center;
}

/* ── "Contact us to pay" fallback ────────────────────────────── */
.ndc-payment-contact {
    text-align: center;
}

/* ── Secondary button (used in confirmation actions) ─────────── */
.ndc-btn-secondary {
    background: #e2e8f0;
    color:      #2d3748;
}

.ndc-btn-secondary:hover {
    background: #cbd5e0;
    color:      #2d3748;
    text-decoration: none;
}

.ndc-btn-outline {
    background:     transparent;
    border:         2px solid #cbd5e0;
    color:          #4a5568;
}

.ndc-btn-outline:hover {
    border-color:   #1b6ca8;
    color:          #1b6ca8;
}

/* ── Confirmation wrapper (step 4 in booking flow) ───────────── */
.ndc-confirmation-success {
    animation: ndc-fade-in 0.4s ease;
}

@keyframes ndc-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.ndc-confirmation-actions {
    display:    flex;
    flex-wrap:  wrap;
    gap:        12px;
    margin-top: 20px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ndc-payment-section {
        padding: 20px 16px;
    }

    .ndc-confirmation-actions {
        flex-direction: column;
    }

    .ndc-btn-pay,
    .ndc-confirmation-actions .ndc-btn {
        width: 100%;
    }
}

/* ── Print: hide payment form ────────────────────────────────── */
@media print {
    .ndc-payment-section,
    .ndc-confirmation-actions { display: none !important; }
}
