/* =====================================================================
   MultiAirlines - Glass theme: home page (Index.aspx)
   Overrides 2408UI/bundle.css + widget-theme.css. Keeps every ID/class
   the widget scripts rely on - only appearance and layout change.
   ===================================================================== */

/* Legacy wrappers -> transparent so the orb background shows */
body.ma-home > .container-fluid { padding-left: 16px; padding-right: 16px; }
body.ma-home > .container-fluid > form > .row { margin: 0; }

/* ---------- Hero ---------- */
body.ma-home .widget-wrapper {
    position: relative;
    height: auto;
    min-height: 600px;
    max-width: 1240px;
    margin: 16px auto 0;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

body.ma-home .widget-wrapper .slider-container {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: var(--ma-r-xl);
    overflow: hidden;
    box-shadow: var(--ma-shadow-lift);
    z-index: 0;
}

body.ma-home .widget-wrapper .slider-container #slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.ma-home .widget-wrapper .slider-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 40, 64, 0.45) 0%, rgba(8, 40, 64, 0.08) 45%, rgba(8, 40, 64, 0.35) 100%),
        radial-gradient(60% 80% at 100% 100%, rgba(255, 126, 2, 0.22), transparent 70%);
    pointer-events: none;
}

body.ma-home .widget-wrapper .widget-container {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    height: auto;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 64px 24px 72px;
    z-index: 2;
}

.ma-hero-copy {
    color: #fff;
    margin-bottom: 22px;
    text-shadow: 0 2px 18px rgba(4, 30, 50, 0.35);
}

.ma-hero-copy h1 {
    color: #fff !important;
    font-family: var(--ma-font-display);
    font-weight: 800;
    font-size: clamp(30px, 4.2vw, 48px);
    line-height: 1.1;
    margin: 0 0 10px;
    /* legacy CSS hides h1 for logo text-replacement */
    text-indent: 0 !important;
    height: auto !important;
    overflow: visible !important;
    background: none !important;
}

.ma-hero-copy p { font-size: 18px; margin: 0; color: rgba(255, 255, 255, 0.92); }

/* ---------- Booking widget: tabs ---------- */
body.ma-home .widget-container .tab-container .tab-header { gap: 6px; }

body.ma-home .widget-container .tab-container .tab-header .tab-header-item {
    background: var(--ma-glass-soft);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 0;
    border-radius: var(--ma-r-lg) var(--ma-r-lg) 0 0;
    padding: 10px 20px;
    font-family: var(--ma-font-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .04em;
    -webkit-backdrop-filter: var(--ma-blur);
    backdrop-filter: var(--ma-blur);
}

body.ma-home .widget-container .tab-container .tab-header .tab-header-item.active {
    background: rgba(255, 255, 255, 0.72);
    color: var(--ma-blue);
}

body.ma-home .widget-container .tab-container .tab-header .tab-header-item .icon { font-size: 18px; }

/* ---------- Booking widget: panel ---------- */
body.ma-home .widget-container .tab-container .tab-body .tab-body-item {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: var(--ma-blur);
    backdrop-filter: var(--ma-blur);
    border: 1px solid var(--ma-glass-border);
    border-radius: 0 var(--ma-r-xl) var(--ma-r-xl) var(--ma-r-xl);
    box-shadow: var(--ma-shadow-lift), inset 0 1px 0 var(--ma-glass-edge);
    padding: 24px;
    min-height: 0;
}

/* Trip type pills */
body.ma-home .travel-type { display: flex; gap: 6px; }

body.ma-home .travel-type .btn-trip-type {
    background: rgba(var(--ma-accent-rgb), 0.08);
    color: var(--ma-ink-soft);
    font-family: var(--ma-font-display);
    font-weight: 700;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background-color .2s ease, color .2s ease;
}

body.ma-home .travel-type .btn-trip-type:hover { background: rgba(var(--ma-accent-rgb), 0.14); color: var(--ma-blue); }

body.ma-home .travel-type .btn-trip-type.selected {
    background: var(--ma-accent-grad);
    color: #fff;
    box-shadow: 0 6px 16px rgba(var(--ma-accent-rgb), 0.3);
}

/* Labels + inputs */
body.ma-home .widget-container .tab-body-item .input-name {
    color: var(--ma-ink-soft) !important;
    font-family: var(--ma-font-display);
    font-weight: 700 !important;
    font-size: 13px;
    letter-spacing: .02em;
    margin-bottom: 6px !important;
}

body.ma-home .widget-container .tab-body-item input.txt-dep-ret {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(13, 42, 64, 0.12) !important;
    border-radius: var(--ma-r-md) !important;
    background-color: rgba(255, 255, 255, 0.9);
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
    padding: 10px 14px 10px 44px !important;
    color: var(--ma-ink);
    font-family: var(--ma-font-body);
    font-size: 15px;
    font-weight: 500;
    box-shadow: inset 0 1px 2px rgba(13, 42, 64, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    cursor: pointer;
}

body.ma-home .widget-container .tab-body-item input.txt-dep-ret::placeholder { color: #8aa0b2; }

body.ma-home .widget-container .tab-body-item input.txt-dep-ret:focus {
    outline: none !important;
    background-color: #fff;
    border-color: rgba(var(--ma-accent-rgb), 0.55) !important;
    box-shadow: 0 0 0 4px rgba(var(--ma-accent-rgb), 0.14);
}

/* Input icons (inline SVG, MA blue / orange) */
body.ma-home input.input-icon-depart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23105e8e'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

body.ma-home input.input-icon-return {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff7e02'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

body.ma-home input.input-icon-date {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23105e8e' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

body.ma-home input.input-icon-traveller {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23105e8e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
}

/* Bid tab inputs that reuse the date class but are not dates */
body.ma-home #bid_amount, body.ma-home #email_address, body.ma-home #phone_number {
    background-image: none;
    padding-left: 14px !important;
}

/* Search button */
body.ma-home .widget-container .tab-body-item .btn-search-flight {
    height: 50px;
    margin-top: 21px;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--ma-cta-grad);
    color: #fff;
    font-family: var(--ma-font-display);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .02em;
    box-shadow: 0 10px 24px rgba(var(--ma-cta-rgb), 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform .15s ease, box-shadow .2s ease;
}

body.ma-home .widget-container .tab-body-item .btn-search-flight:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(var(--ma-cta-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- Traveller popup ---------- */
body.ma-home .traveller-details-popup,
body.ma-home .traveller-details-popup_2 {
    background: rgba(255, 255, 255, 0.96) !important;
    -webkit-backdrop-filter: var(--ma-blur);
    backdrop-filter: var(--ma-blur);
    border: 1px solid var(--ma-glass-border);
    border-radius: var(--ma-r-lg) !important;
    box-shadow: var(--ma-shadow-lift) !important;
    padding: 16px !important;
    margin-top: 8px !important;
    z-index: 30 !important;
}

body.ma-home .traveller-details-popup .tr-row,
body.ma-home .traveller-details-popup_2 .tr-row { border-bottom-color: var(--ma-hairline); }

body.ma-home .traveller-details-popup .tr-label,
body.ma-home .traveller-details-popup_2 .tr-label { color: var(--ma-ink-soft) !important; font-weight: 600 !important; }

body.ma-home .traveller-details-popup .class-type-wrapper,
body.ma-home .traveller-details-popup_2 .class-type-wrapper { display: flex; gap: 6px; }

body.ma-home .traveller-details-popup .class-type-wrapper .class-type,
body.ma-home .traveller-details-popup_2 .class-type-wrapper .class-type {
    flex: 1;
    border-radius: 999px;
    border-color: rgba(13, 42, 64, 0.14);
    color: var(--ma-ink-soft);
    font-weight: 600;
}

body.ma-home .traveller-details-popup .class-type-wrapper .selected,
body.ma-home .traveller-details-popup_2 .class-type-wrapper .selected {
    background: var(--ma-accent-grad);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(var(--ma-accent-rgb), 0.3);
    color: #fff;
}

body.ma-home .traveller-details-popup .done-wrapper .btn-done,
body.ma-home .traveller-details-popup_2 .done-wrapper .btn-done {
    background: var(--ma-cta-grad);
    border-radius: 999px;
    padding: 6px 20px;
    font-weight: 700;
    margin-top: 10px;
}

body.ma-home .rounded-spinner button,
body.ma-home .number-spinner .btn-default,
body.ma-home .number-spinner_1 .btn-default { border-color: rgba(var(--ma-accent-rgb), .35) !important; }

body.ma-home .warning-wrapper .warn-message { border-radius: var(--ma-r-sm); }

/* ---------- Advantages ---------- */
.ma-section { padding: 64px 0 8px; }
.ma-section > .container { max-width: 1240px; }
.ma-section__head { text-align: center; margin-bottom: 32px; }

body.ma-home .ma-adv-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

body.ma-home .adv-item {
    height: 100%;
    padding: 28px 22px 24px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

body.ma-home .adv-item:hover { transform: translateY(-3px); box-shadow: var(--ma-shadow-lift), inset 0 1px 0 var(--ma-glass-edge); }

body.ma-home .adv-item .adv-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 30px;
    margin: 0 auto 16px;
    border: 0;
    border-radius: 20px;
    color: #fff;
    background: var(--ma-accent-grad);
    box-shadow: 0 10px 22px rgba(var(--ma-accent-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.ma-home .ma-adv-grid > .adv-item:nth-child(even) .adv-icon {
    background: var(--ma-cta-grad);
    box-shadow: 0 10px 22px rgba(var(--ma-cta-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.ma-home .adv-item .adv-label {
    height: auto;
    font-family: var(--ma-font-display);
    font-weight: 800;
    font-size: 18px;
    color: var(--ma-ink);
    margin-bottom: 10px;
}

body.ma-home .adv-item .adv_hr { display: none; }

body.ma-home .adv-item .adv-description p {
    color: var(--ma-muted);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Support band ---------- */
.ma-support-band {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    margin-top: 56px;
}

.ma-orb {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0 12%, transparent 30%),
        conic-gradient(from 200deg, #105e8e, #5ea8d6, #ff9126, #ff7e02, #105e8e);
    box-shadow: 0 12px 30px rgba(var(--ma-accent-rgb), 0.3);
    flex-shrink: 0;
}

.ma-support-band .ma-title { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 4px; }
.ma-support-band .ma-lead { font-size: 16px; }

.ma-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.ma-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ma-glass-strong);
    border: 1px solid var(--ma-glass-border);
    color: var(--ma-ink-soft);
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    body.ma-home .ma-adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ma-support-band { grid-template-columns: auto 1fr; }
    .ma-support-band .ma-btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 767px) {
    body.ma-home > .container-fluid { padding-left: 10px; padding-right: 10px; }
    body.ma-home .widget-wrapper { min-height: 0; margin-top: 12px; }
    body.ma-home .widget-wrapper .widget-container { padding: 32px 12px 24px; }
    .ma-hero-copy { margin-bottom: 16px; }
    .ma-hero-copy p { font-size: 16px; }
    body.ma-home .widget-container .tab-container .tab-body .tab-body-item { padding: 18px; }
    body.ma-home .widget-container .tab-body-item .btn-search-flight { margin-top: 4px; }
    .ma-section { padding-top: 44px; }
}

@media (max-width: 575px) {
    body.ma-home .ma-adv-grid { grid-template-columns: 1fr; }
    .ma-support-band { grid-template-columns: 1fr; text-align: left; padding: 24px 20px; }
    .ma-orb { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    body.ma-home .adv-item, body.ma-home .btn-search-flight { transition: none; }
    body.ma-home .adv-item:hover { transform: none; }
}

/* Emphasised words in the advantage cards */
body.ma-home .adv-item .adv-description strong { color: var(--ma-ink); font-weight: 700; }
