:root {
    --color-background    : #F0F4F8;
    --color-card          : #FFFFFF;
    --color-primary-text  : #2C3E50;
    --color-secondary-text: #7F8C8D;
    --color-brand-blue    : #4A90E2;
    --color-accent-green  : #2ECC71;
    --color-accent-teal   : #16A085;
    --color-shadow        : rgba(0, 0, 0, 0.08);
    --color-divider       : #ECF0F1;
    --color-info-box      : #E6F3FF;
    --color-info-border   : #99CCFF;
}

.flightpay {
    font-family    : 'Poppins', sans-serif;
    background     : var(--color-background);
    margin         : 0;
    padding        : 40px 20px;
    display        : flex;
    justify-content: center;
    color          : var(--color-primary-text);
    width          : 100%;
    max-width      : 1320px;
    display        : flex;
    flex-direction : column;
    gap            : 30px;
}

/* --- Progress Bar --- */
.progress-container {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    padding        : 30px;
    background     : var(--color-card);
    border-radius  : 16px;
    box-shadow     : 0 8px 24px var(--color-shadow);
}

.step {
    position      : relative;
    flex          : 1;
    text-align    : center;
    font-size     : 14px;
    font-weight   : 500;
    color         : var(--color-secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step::before {
    content        : attr(data-step);
    position       : absolute;
    top            : -40px;
    left           : 50%;
    transform      : translateX(-50%);
    width          : 35px;
    height         : 35px;
    border-radius  : 50%;
    background     : var(--color-divider);
    display        : flex;
    align-items    : center;
    justify-content: center;
    color          : var(--color-secondary-text);
    font-size      : 14px;
    font-weight    : 600;
    z-index        : 1;
}

.step.completed::before {
    background: var(--color-accent-green);
    color     : #fff;
}

.step.active::before {
    background: var(--color-brand-blue);
    color     : #fff;
}

.step.active {
    color      : var(--color-brand-blue);
    font-weight: 600;
}

.step.completed {
    color: var(--color-accent-green);
}

.step:not(:last-child)::after {
    content   : "";
    position  : absolute;
    top       : -22px;
    right     : -50%;
    width     : 100%;
    height    : 3px;
    background: var(--color-divider);
    z-index   : 0;
}

.step.completed:not(:last-child)::after {
    background: var(--color-accent-green);
}

.step.active:not(:last-child)::after {
    background: var(--color-brand-blue);
}

/* --- Main Content Grid --- */
.content-grid {
    display              : grid;
    grid-template-columns: 2fr 1fr;
    gap                  : 30px;
}

.main-section,
.price-section {
    background   : var(--color-card);
    padding      : 24px;
    border-radius: 16px;
    box-shadow   : 0 8px 24px var(--color-shadow);
}

.price-section {
    height  : fit-content;
    position: sticky;
    top     : 40px;
}

.section-title {
    font-size     : 20px;
    font-weight   : 600;
    margin-bottom : 18px;
    color         : var(--color-primary-text);
    border-bottom : 2px solid var(--color-divider);
    padding-bottom: 12px;
}

/* --- Passenger Details Form --- */
.passenger-details-section {
    background   : var(--color-card);
    padding      : 24px;
    border-radius: 16px;
    box-shadow   : 0 8px 24px var(--color-shadow);
    margin-bottom: 30px;
}

.passenger-details-section h3 {
    font-size    : 20px;
    font-weight  : 600;
    margin-bottom: 20px;
    color        : var(--color-brand-blue);
}

.form-row {
    display      : flex;
    gap          : 20px;
    margin-bottom: 20px;
}

.form-field {
    flex          : 1;
    display       : flex;
    flex-direction: column;
}

.form-field label {
    font-size    : 14px;
    font-weight  : 500;
    margin-bottom: 8px;
    color        : var(--color-primary-text);
    white-space  : nowrap;
}

.form-field input,
.form-field select {
    width        : 100%;
    padding      : 12px 15px;
    border       : 1px solid var(--color-divider);
    border-radius: 8px;
    font-size    : 16px;
    color        : var(--color-primary-text);
    background   : #FAFBFC;
    box-sizing   : border-box;
    padding      : 8px 10px;
    font-size    : 14px;
    height       : 40px;
}

.form-field input:focus,
.form-field select:focus {
    outline     : none;
    border-color: var(--color-brand-blue);
    box-shadow  : 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.note {
    font-size    : 13px;
    color        : #E74C3C;
    margin-top   : -10px;
    margin-bottom: 20px;
}

.contact-details {
    margin-top : 30px;
    padding-top: 20px;
    border-top : 2px solid var(--color-divider);
}

.contact-details p {
    font-size    : 14px;
    color        : var(--color-secondary-text);
    margin-bottom: 15px;
}

/* --- Refund Protection --- */
.refund-box {
    background         : var(--color-info-box);
    border             : 1px solid var(--color-info-border);
    /* border          : 1px solid #ff6800; */
    border-radius      : 12px;
    padding            : 25px;
    margin-bottom      : 30px;
}

.refund-box h3 {
    font-size    : 20px;
    font-weight  : 600;
    color        : var(--color-brand-blue);
    margin-top   : 0;
    margin-bottom: 10px;
}

.refund-box p {
    font-size    : 15px;
    color        : var(--color-secondary-text);
    margin-bottom: 20px;
}

.refund-box ul {
    list-style           : none;
    padding              : 0;
    margin               : 0;
    display              : grid;
    grid-template-columns: repeat(2, 1fr);
    gap                  : 10px;
}

.refund-box li {
    font-size  : 14px;
    color      : var(--color-primary-text);
    display    : flex;
    align-items: center;
    gap        : 8px;
}

.refund-box li::before {
    content: '✔️';
    color  : var(--color-accent-green);
}

.refund-options {
    display       : flex;
    flex-direction: column;
    gap           : 15px;
    margin-top    : 25px;
}

.refund-option-card {
    display      : flex;
    align-items  : center;
    gap          : 15px;
    padding      : 15px;
    border       : 2px solid var(--color-divider);
    border-radius: 10px;
    cursor       : pointer;
    transition   : all 0.2s;
}

.refund-option-card.selected {
    border-color   : #ffaa5e;
    box-shadow     : 0 0 0 2px #ffaa5e;
    /* border-color: var(--color-brand-blue); */
    /* box-shadow  : 0 0 0 2px var(--color-brand-blue); */
}

.refund-option-card:hover {
    transform : translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.refund-option-card input[type="radio"] {
    /* -webkit-appearance: none;
    -moz-appearance   : none;
    appearance        : none; */
    width        : 20px;
    height       : 20px;
    border-radius: 50%;
    border       : 2px solid var(--color-secondary-text);
    outline      : none;
    cursor       : pointer;
    position     : relative;
}

.refund-option-card input[type="radio"]:checked {
    border-color: var(--color-brand-blue);
}

.refund-option-card input[type="radio"]:checked::after {
    content      : '';
    position     : absolute;
    top          : 50%;
    left         : 50%;
    transform    : translate(-50%, -50%);
    width        : 10px;
    height       : 10px;
    border-radius: 50%;
    background   : var(--color-brand-blue);
}

.refund-option-card .label-content {
    flex-grow: 1;
}

.refund-option-card h4 {
    margin     : 0 !important;
    font-size  : 18px !important;
    font-weight: 600 !important;
    color      : var(--color-brand-blue) !important;
}

.refund-option-card p {
    margin   : 0 !important;
    font-size: 13px;
    color    : var(--color-secondary-text);
}

.refund-option-card .price {
    font-size  : 18px;
    font-weight: 700;
    color      : var(--color-brand-blue);
}

/* --- Flight Details Card --- */
.flight-card {
    border       : 1px solid var(--color-divider);
    border-radius: 12px;
    padding      : 24px;
    margin-bottom: 25px;
    background   : var(--color-card);
    transition   : transform 0.3s, box-shadow 0.3s;
}

.flight-card:hover {
    /* transform : translateY(-5px); */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.flight-card h3 {
    margin     : 0 0 15px;
    font-size  : 18px;
    font-weight: 600;
    color      : var(--color-primary-text);
}

.airline-header {
    display      : flex;
    align-items  : center;
    gap          : 12px;
    margin-bottom: 10px;
}

.airline-header img {
    height    : 32px;
    /* filter : grayscale(100%); */
    /* opacity: 0.8; */
}

.flight-details-line {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    font-size      : 15px;
    color          : var(--color-secondary-text);
    border-bottom  : 1px solid var(--color-divider);
    padding-bottom : 15px;
    margin-bottom  : 15px;
}

.amenities-icons {
    display    : flex;
    gap        : 12px;
    align-items: center;
}

.amenities-icons svg {
    height         : 20px;
    width          : 20px;
    fill           : none;
    stroke         : var(--color-accent-teal);
    stroke-width   : 2;
    stroke-linecap : round;
    stroke-linejoin: round;
}

.flight-timeline {
    position    : relative;
    margin      : 25px 0;
    padding-left: 50px;
}

.flight-timeline::before {
    content   : "";
    position  : absolute;
    top       : 0;
    left      : 28px;
    width     : 2px;
    height    : 100%;
    background: var(--color-brand-blue);
}

.timeline-point {
    position     : relative;
    margin-bottom: 18px;
}

.timeline-point:last-child {
    margin-bottom: 0;
}

.timeline-point::before {
    content    : "•";
    position   : absolute;
    left       : -32px;
    top        : -2px;
    font-size  : 30px;
    line-height: 1;
    color      : var(--color-brand-blue);
    background : var(--color-card);
    padding    : 0 5px;
}

.timeline-point strong {
    display    : block;
    font-size  : 16px;
    font-weight: 600;
    color      : var(--color-brand-blue);
}

.timeline-point small {
    font-size: 14px;
    color    : var(--color-secondary-text);
}

/* --- Price Summary --- */
.price-row {
    display        : flex;
    justify-content: space-between;
    margin-bottom  : 15px;
    font-size      : 16px;
}

.total {
    font-size  : 18px;
    font-weight: 700;
    border-top : 2px dashed var(--color-divider);
    padding-top: 15px;
    margin-top : 16px;
}

/* --- T&C Section --- */
.terms-section {
    background   : var(--color-card);
    padding      : 24px;
    border-radius: 16px;
    box-shadow   : 0 8px 24px var(--color-shadow);
}

.terms-section h2 {
    font-size    : 24px;
    font-weight  : 600;
    margin-bottom: 24px;
    color        : var(--color-primary-text);
}

.terms-check {
    display      : flex;
    align-items  : center;
    margin-bottom: 15px;
}

.terms-check input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance   : none;
    appearance        : none;
    width             : 22px;
    height            : 22px;
    border            : 2px solid var(--color-secondary-text);
    border-radius     : 6px;
    margin-right      : 12px;
    cursor            : pointer;
    position          : relative;
}

.terms-check input[type="checkbox"]:checked {
    background  : var(--color-brand-blue);
    border-color: var(--color-brand-blue);
}

.terms-check input[type="checkbox"]:checked::after {
    content  : '✓';
    color    : white;
    font-size: 14px;
    position : absolute;
    top      : 50%;
    left     : 50%;
    transform: translate(-50%, -50%);
}

.terms-check label {
    font-size  : 14px;
    color      : var(--color-secondary-text);
    line-height: 1.5;
}

.terms-check a {
    color          : var(--color-brand-blue);
    text-decoration: none;
    font-weight    : 500;
}

.terms-check a:hover {
    text-decoration: underline;
}

.btn-booking {
    display         : block;
    width           : 100%;
    padding         : 16px;
    margin-top      : 25px;
    background      : var(--color-brand-blue);
    color           : white;
    font-size       : 18px;
    font-weight     : 600;
    border          : none;
    border-radius   : 10px;
    cursor          : pointer;
    text-align      : center;
    transition      : background 0.3s, transform 0.2s, box-shadow 0.2s;
    box-shadow      : 0 5px 15px rgba(0, 0, 0, 0.2);
    background-image: linear-gradient(to right, #4A90E2, #7B68EE);
}

.btn-booking:hover {
    transform       : translateY(-2px);
    box-shadow      : 0 8px 20px rgba(0, 0, 0, 0.25);
    background-image: linear-gradient(to right, #3A80D2, #6B58DE);
    color: white !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .price-section {
        position: static;
    }

    .form-row {
        flex-direction: column;
        gap           : 8px;
    }

    label.label-content h4 {
        font-size    : 16px !important;
        margin-bottom: 4px;
    }

    .refund-option-card {
        padding: 8px;
    }

    .form-field input,
    .form-field select {
        padding  : 6px 8px !important;
        font-size: 13px;
        height   : 36px;
    }
}