/* Nexus FlightRequest page: professional redesign reusing --nexus-* tokens & hero cover style */

.nexus-request-hero {
    position: relative;
    min-height: 260px;
    padding: 68px 0 64px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 18, 40, .94) 0%, rgba(7, 27, 60, .80) 45%, rgba(7, 27, 60, .40) 100%),
        linear-gradient(180deg, rgba(7, 27, 60, .10) 55%, rgba(7, 27, 60, .70) 100%),
        url('/styles/images/nexus-cover.jpg') center 38% / cover no-repeat;
}
.nexus-request-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 82% 20%, rgba(213, 161, 58, .18), transparent 32%);
}
.nexus-request-hero .container {
    position: relative;
    z-index: 2;
}
.nexus-request-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 14px;
}
.nexus-request-hero .breadcrumb-item,
.nexus-request-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, .68);
    font-size: 12.5px;
}
.nexus-request-hero .breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
}
.nexus-request-hero .nexus-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border: 1px solid rgba(213, 161, 58, .48);
    border-radius: 999px;
    background: rgba(7, 27, 60, .45);
    color: #F2D18D;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    margin-bottom: 16px;
}
.nexus-request-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -.02em;
}
.nexus-request-hero p {
    margin: 10px 0 0;
    max-width: 560px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.6;
}

/* Form card sits overlapping the hero bottom edge, matching the homepage search card treatment */
.nexus-request-page .nexus-request-card {
    position: relative;
    z-index: 3;
    margin-top: -46px;
    margin-bottom: 40px;
    padding: 32px 34px 30px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 22px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 26px 64px rgba(7, 27, 60, .18);
}

.nexus-request-page .form-title {
    text-align: left;
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 700;
    color: var(--nexus-ink, #132238);
}

.nexus-request-page .nexus-request-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(7, 27, 60, .09);
    font-size: 16px;
    font-weight: 700;
    color: var(--nexus-navy, #071B3C);
}
.nexus-request-page .nexus-request-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--nexus-gold, #D5A13A), var(--nexus-navy, #071B3C));
}

.nexus-request-page .write_review_inner_boxed {
    padding: 20px 20px 6px;
    border: 1px solid rgba(7, 27, 60, .08);
    border-radius: 16px;
    background: #FAFBFD;
}

.nexus-request-page .form-froup label {
    color: var(--nexus-ink, #132238);
    font-size: 13px;
    font-weight: 600;
}

.nexus-request-page .div-select2.content-border,
.nexus-request-page md-datepicker,
.nexus-request-page .form-person-count {
    border: 1px solid rgba(7, 27, 60, .14) !important;
    border-radius: 10px !important;
    background: #fff !important;
    transition: border-color .18s ease, box-shadow .18s ease;
    overflow: hidden;
    width: 100%;
    border: 1px solid #e3e3e3;
    padding: 7px 14px;
    text-align: left;
    height: 45px;
}

.nexus-request-page .form-control,
.nexus-request-page select.dashed {
    border: 1px solid rgba(7, 27, 60, .14) !important;
    border-radius: 10px !important;
    background: #fff !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

/* Control "Hãng bay" tự viết: nút bấm hiện chip đã chọn + dropdown checkbox, gọn nhẹ,
   không phụ thuộc select2 nên không còn lo xung đột layout/click-target của thư viện. */
.nexus-request-page .nexus-airline-picker {
    position: relative;
}
.nexus-request-page .nexus-airline-picker__trigger {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    min-height: 45px;
    padding: 6px 30px 6px 10px;
    border: 1px solid rgba(7, 27, 60, .14);
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.nexus-request-page .nexus-airline-picker.is-open .nexus-airline-picker__trigger,
.nexus-request-page .nexus-airline-picker__trigger:focus {
    outline: none;
    border-color: rgba(213, 161, 58, .6);
    box-shadow: 0 0 0 3px rgba(213, 161, 58, .14);
}
.nexus-request-page .nexus-airline-picker__placeholder {
    color: #94a0b3;
    font-size: 13.5px;
}
.nexus-request-page .nexus-airline-picker__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.nexus-request-page .nexus-airline-picker__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #F1F4F9;
    color: var(--nexus-navy, #071B3C);
    font-size: 12.5px;
    font-weight: 600;
}
.nexus-request-page .nexus-airline-picker__chip i {
    color: #9AA3B2;
    font-size: 11px;
    cursor: pointer;
}
.nexus-request-page .nexus-airline-picker__chip i:hover {
    color: #C04646;
}
.nexus-request-page .nexus-airline-picker__arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #647187;
    font-size: 12px;
    pointer-events: none;
}
.nexus-request-page .nexus-airline-picker__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(7, 27, 60, .12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(7, 27, 60, .16);
}
.nexus-request-page .nexus-airline-picker__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    margin: 0;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #314056;
    cursor: pointer;
}
.nexus-request-page .nexus-airline-picker__item:hover {
    background: #F5F8FC;
}
.nexus-request-page .nexus-airline-picker__item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--nexus-gold, #D5A13A);
}
.nexus-request-page .nexus-airline-picker__empty {
    padding: 10px;
    color: #94a0b3;
    font-size: 13px;
    text-align: center;
}

/* Select2 renders its own inner widget box + the stepper has +/- buttons;
   strip their own border/background so only the outer wrapper shows a border
   (fixes a "nested border" look). */
.nexus-request-page .div-select2.content-border .select2-container--default .select2-selection--single,
.nexus-request-page .div-select2.content-border .select2-selection__rendered,
.nexus-request-page .div-select2.content-border .select2-selection__arrow,
.nexus-request-page .form-person-count select,
.nexus-request-page .form-person-count button {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.nexus-request-page .form-control:focus,
.nexus-request-page select.dashed:focus,
.nexus-request-page .div-select2.content-border:focus-within,
.nexus-request-page md-datepicker:focus-within,
.nexus-request-page .form-person-count:focus-within {
    border-color: rgba(213, 161, 58, .6) !important;
    box-shadow: 0 0 0 3px rgba(213, 161, 58, .14) !important;
}

/* Submit / cancel buttons: reuse the same gold / navy language as the homepage search actions */
.nexus-request-page .comment_form_submit {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.nexus-request-page .btn-send {
    min-width: 168px;
    min-height: 46px;
    padding: 10px 24px !important;
    border: 1px solid rgba(181, 125, 26, .72) !important;
    border-radius: 11px !important;
    background-color: var(--nexus-gold, #D5A13A) !important;
    background-image: linear-gradient(135deg, #e6b94f 0%, #f8dba1 52%, #f8cf87 100%) !important;
    color: #071b3c !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 22px rgba(181, 125, 26, .22), inset 0 1px 0 rgba(255, 255, 255, .38) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
    .nexus-request-page .btn-send:hover:not(:disabled) {
        background-image: linear-gradient(135deg, #e6b94f 0%, #f8dba1 52%, #f8cf87 100%) !important;
        box-shadow: 0 14px 28px rgba(181, 125, 26, .30), inset 0 1px 0 rgba(255, 255, 255, .46) !important;
        filter: saturate(1.04);
        transform: translateY(-2px);
    }
.nexus-request-page .btn-send:disabled {
    background: #E7EAF0 !important;
    background-image: none !important;
    border-color: #E7EAF0 !important;
    color: #9AA3B2 !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.nexus-request-page .btn-cancel-nexus {
    min-width: 130px;
    min-height: 46px;
    padding: 10px 22px !important;
    border: 1px solid rgba(7, 27, 60, .18) !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: var(--nexus-navy, #071B3C) !important;
    font-weight: 700 !important;
    transition: background .18s ease, border-color .18s ease;
}
.nexus-request-page .btn-cancel-nexus:hover {
    background: #F5F8FC !important;
    border-color: rgba(7, 27, 60, .3) !important;
}

@media (max-width: 767px) {
    .nexus-request-hero { padding: 46px 0 56px; min-height: 200px; }
    .nexus-request-page .nexus-request-card { margin-top: -30px; padding: 22px 18px 20px; border-radius: 18px; }
}

/* =========================================================
   Nexus request processing + success states
   ========================================================= */
.nexus-state-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1090 !important;
    opacity: 1 !important;
    filter: none !important;
}
.nexus-state-modal.show { opacity: 1 !important; }
.nexus-state-modal .modal-dialog {
    position: relative;
    z-index: 1091;
    max-width: 520px;
    padding: 16px;
    opacity: 1 !important;
    filter: none !important;
}
.nexus-state-modal .modal-content {
    border: 1px solid rgba(213, 161, 58, .22);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(7, 27, 60, .28);
    overflow: hidden;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
}
.nexus-state-modal .modal-content::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #071B3C 0%, #D5A13A 52%, #F6D997 100%);
}
.modal-backdrop {
    z-index: 1080 !important;
    background: #071B3C !important;
}
.modal-backdrop.show {
    opacity: .58 !important;
}
body.modal-open .nexus-state-modal {
    opacity: 1 !important;
    filter: none !important;
}
.nexus-loading-card,
.nexus-success-card { padding: 42px 42px 38px; text-align: center; }
.nexus-state-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: #B27B16;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.nexus-loading-card h3,
.nexus-success-card h2 { margin: 0 0 10px; color: #071B3C; font-weight: 800; }
.nexus-loading-card h3 { font-size: 24px; }
.nexus-success-card h2 { font-size: 28px; }
.nexus-loading-card > p,
.nexus-success-lead { max-width: 410px; margin: 0 auto 22px; color: #667085; line-height: 1.65; }
.nexus-loading-orbit {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(145deg, #F8FAFD, #FFF9EC);
    box-shadow: inset 0 0 0 1px rgba(213, 161, 58, .18), 0 14px 30px rgba(7, 27, 60, .10);
}
.nexus-loading-orbit::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 2px solid rgba(7, 27, 60, .10);
    border-top-color: #D5A13A;
    border-right-color: #071B3C;
    border-radius: 50%;
    animation: nexusSpin 1.15s linear infinite;
}
.nexus-loading-orbit i {
    position: absolute;
    top: 39%; left: 50%;
    color: #071B3C;
    font-size: 23px;
    transform: translate(-50%, -50%) rotate(-18deg);
}
.nexus-loading-orbit span {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #D5A13A;
    animation: nexusPulse 1.6s ease-in-out infinite;
}
.nexus-loading-orbit span:nth-child(1) { top: 9px; left: 20px; }
.nexus-loading-orbit span:nth-child(2) { right: 8px; top: 38px; animation-delay: .25s; }
.nexus-loading-orbit span:nth-child(3) { bottom: 10px; left: 28px; animation-delay: .5s; }
.nexus-loading-progress {
    height: 5px;
    margin: 0 0 24px;
    border-radius: 999px;
    background: #EDF1F6;
    overflow: hidden;
}
.nexus-loading-progress span {
    display: block;
    width: 48%; height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #071B3C, #D5A13A, #F6D997);
    animation: nexusProgress 1.55s ease-in-out infinite;
}
.nexus-loading-steps { display: grid; gap: 10px; margin-bottom: 20px; text-align: left; }
.nexus-loading-steps > div {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px;
    border: 1px solid #EDF0F4;
    border-radius: 12px;
    color: #8A94A5;
    font-size: 13.5px;
}
.nexus-loading-steps > div i { width: 18px; text-align: center; }
.nexus-loading-steps .is-done { color: #2C7A58; background: #F3FAF6; border-color: #D9EEE2; }
.nexus-loading-steps .is-active { color: #071B3C; background: #FFF9ED; border-color: rgba(213,161,58,.28); font-weight: 700; }
.nexus-loading-card small { color: #8A94A5; }
.nexus-loading-card small i { margin-right: 5px; color: #B27B16; }
.nexus-success-dialog { max-width: 640px !important; }
.nexus-success-icon {
    display: flex; align-items: center; justify-content: center;
    width: 78px; height: 78px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFF5D9, #F5D28C);
    color: #071B3C;
    font-size: 31px;
    box-shadow: 0 15px 32px rgba(181,125,26,.22), inset 0 0 0 7px rgba(255,255,255,.55);
    animation: nexusSuccessPop .45s cubic-bezier(.2,.9,.25,1.2) both;
}
.nexus-success-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 24px 0 16px;
    text-align: left;
}
.nexus-success-summary > div {
    min-height: 92px;
    padding: 15px;
    border: 1px solid #E8ECF2;
    border-radius: 14px;
    background: linear-gradient(180deg, #FFFFFF, #FAFBFD);
}
.nexus-success-summary span { display: block; margin-bottom: 7px; color: #8A94A5; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nexus-success-summary strong { display: block; color: #071B3C; font-size: 14px; line-height: 1.45; word-break: break-word; }
.nexus-success-summary strong i { margin: 0 5px; color: #D5A13A; }
.nexus-success-status { color: #9A680F !important; }
.nexus-success-note {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 14px 16px;
    border-radius: 13px;
    background: #F5F8FC;
    color: #566176;
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}
.nexus-success-note i { margin-top: 3px; color: #D5A13A; }
.nexus-success-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.nexus-success-actions .btn {
    min-height: 46px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    border-radius: 11px;
    font-weight: 800;
}
.nexus-success-btn-primary {
    border: 1px solid #B57D1A;
    background: linear-gradient(135deg, #E6B94F, #F8DBA1 52%, #F8CF87);
    color: #071B3C !important;
    box-shadow: 0 10px 22px rgba(181,125,26,.22);
}
.nexus-success-btn-secondary { border: 1px solid rgba(7,27,60,.16); background: #fff; color: #071B3C !important; }
.nexus-success-actions .btn:hover { transform: translateY(-1px); }
@keyframes nexusSpin { to { transform: rotate(360deg); } }
@keyframes nexusPulse { 50% { transform: scale(1.65); opacity: .45; } }
@keyframes nexusProgress { 0% { transform: translateX(-110%); } 100% { transform: translateX(220%); } }
@keyframes nexusSuccessPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 767px) {
    .nexus-loading-card, .nexus-success-card { padding: 32px 20px 26px; }
    .nexus-success-card h2 { font-size: 23px; }
    .nexus-success-summary { grid-template-columns: 1fr; }
    .nexus-success-summary > div { min-height: auto; }
    .nexus-success-actions { flex-direction: column-reverse; }
    .nexus-success-actions .btn { width: 100%; }
}

/* ==========================================================
   Progressive validation — Flight Request
   Errors stay hidden on first load and appear only after the
   user touches a field or attempts to submit the request.
   ========================================================== */
.nexus-request-page .nexus-validation-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px solid rgba(211, 71, 71, .18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 247, 247, .98), rgba(255, 252, 249, .98));
    box-shadow: 0 8px 24px rgba(7, 27, 60, .05);
    color: #071b3c;
}

.nexus-request-page .nexus-validation-summary__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(211, 71, 71, .1);
    color: #c53f3f;
    font-size: 14px;
}

.nexus-request-page .nexus-validation-summary strong,
.nexus-request-page .nexus-validation-summary span {
    display: block;
}

.nexus-request-page .nexus-validation-summary strong {
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 700;
}

.nexus-request-page .nexus-validation-summary div > span {
    color: #6c7890;
    font-size: 12.5px;
}

.nexus-request-page .nexus-inline-error {
    display: flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin: 7px 0 0 2px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(211, 71, 71, .07);
    color: #c53f3f !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    animation: nexusValidationIn .18s ease-out;
}

.nexus-request-page .nexus-inline-error i {
    flex: 0 0 auto;
    font-size: 11px;
}

.nexus-request-page .nexus-field-invalid > input.form-control,
.nexus-request-page .nexus-field-invalid > select,
.nexus-request-page .nexus-field-invalid .div-select2,
.nexus-request-page .nexus-field-invalid .select2-selection,
.nexus-request-page .nexus-field-invalid md-datepicker .md-datepicker-input-container {
    border-color: rgba(211, 71, 71, .55) !important;
    box-shadow: 0 0 0 3px rgba(211, 71, 71, .07) !important;
}

.nexus-request-page .nexus-field-invalid label {
    color: #071b3c;
}

@keyframes nexusValidationIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .nexus-request-page .nexus-validation-summary {
        align-items: flex-start;
        padding: 12px 13px;
    }

    .nexus-request-page .nexus-inline-error {
        width: 100%;
    }
}
