@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&display=swap');

:root {
    --red-main: #EF2E41;
    --red-dark: #E12035;
    --purple-main: #4A20AA;
    --purple-medium: #7C48D0;
    --purple-button: #5125B5;
    --purple-light-border: #BDA7EF;
    --purple-ultra-light: #F4F3FF;
    --turquoise: #39E6B6;
    --search-bg: #E5DFF1;
    --white: #FFFFFF;
    --grey-border: #D9D9D9;
    --grey-text: #444746;
    --font-family: 'Noto Sans Arabic', Arial, sans-serif;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

body {
    direction: rtl;
    background-color: var(--purple-ultra-light);
    overflow-x: hidden;
}

/* SECTION 1: RED HEADER SECTION */
.red-section {
    background-color: var(--red-main);
    width: 100%;
    min-height: 639px;
    position: relative;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-header {
    width: 100%;
    max-width: 1626px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

/* Header Right - Logo & Hamburger */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
}

.hamburger-menu:hover {
    opacity: 0.8;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 4px;
}

.hamburger-icon span {
    display: block;
    width: 32px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

.menu-label {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Header Left - Links & Language */
.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--white);
}

.header-left a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition);
}

.header-left a:hover {
    opacity: 0.9;
}

.divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.4);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.lang-select {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding-left: 18px; /* Leave space for chevron on the left in RTL */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='white' d='M5 5.4L.6 1 2 .6l3 3 3-3 1.4 1.4z'/></svg>");
    background-repeat: no-repeat;
    background-position: left center;
}

/* LTR override for dropdown arrow position */
[dir="ltr"] .lang-select {
    padding-left: 0;
    padding-right: 18px;
    background-position: right center;
}

.lang-selector i {
    font-size: 0.8rem;
}

.cart-icon, .user-icon {
    font-size: 1.3rem;
    cursor: pointer;
}

/* Booking System Tabs */
.tabs-and-newsletter {
    width: 100%;
    max-width: 1626px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 10px;
}

.tabs-container {
    display: flex;
    align-items: flex-end;
}

.tab {
    height: 49px;
    background-color: var(--red-dark);
    color: var(--white);
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 0 35px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    transition: var(--transition);
}

.tab.active {
    height: 62px;
    background-color: var(--white);
    color: var(--purple-main);
    border-radius: 14px 14px 0 0;
    padding: 0 45px;
    font-size: 1.15rem;
    font-weight: 700;
}

.tab i {
    font-size: 1.2rem;
}

/* Newsletter bar on left */
.newsletter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.newsletter-btn {
    background-color: #5428C8;
    color: var(--white);
    border: none;
    border-radius: 11px;
    height: 39px;
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: #431fa3;
}

.close-btn {
    background-color: #5428C8;
    color: var(--white);
    border: none;
    border-radius: 11px;
    width: 38px;
    height: 39px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.close-btn:hover {
    background-color: #431fa3;
}

/* Booking Main Card */
.booking-box {
    width: 100%;
    max-width: 1626px;
    height: 322px;
    background-color: var(--white);
    border-radius: 13px;
    padding: 30px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.booking-fields-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 37px;
}

.booking-columns {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    gap: 37px;
}

.field-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 405px;
    position: relative;
}

.field-column label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--purple-main);
    text-align: right;
}

.input-container {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    height: 47px;
    border: 1px solid var(--purple-light-border);
    border-radius: 8px;
    padding: 0 45px 0 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--purple-main);
    background-color: var(--white);
    outline: none;
    transition: var(--transition);
}

.station-select {
    width: 100%;
    height: 47px;
    border: 1px solid var(--purple-light-border);
    border-radius: 8px;
    padding: 0 45px 0 35px; /* Leave space for dropdown arrow on the left in RTL */
    font-size: 14px;
    font-weight: 600;
    color: var(--purple-main);
    background-color: var(--white);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%234A20AA' d='M6 7.4L.6 2 2 .6 6 4.6 10 .6l1.4 1.4z'/></svg>");
    background-repeat: no-repeat;
    background-position: left 15px center;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--purple-main);
    box-shadow: 0 0 0 2px rgba(74, 32, 170, 0.1);
}

.form-input.station-input {
    border-color: var(--grey-border);
}

.input-container i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple-light-border);
    font-size: 1.1rem;
}

/* Swap Icon */
.swap-stations-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: var(--white);
    border: 1px solid var(--purple-light-border);
    border-radius: 50%;
    color: var(--red-main);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
    vertical-align: middle;
    margin-right: 6px; /* spacing in RTL */
    box-sizing: border-box;
}

.swap-stations-inline:hover {
    transform: scale(1.15) rotate(180deg);
    border-color: var(--purple-main);
}

/* Comfort segmented control */
.comfort-control {
    display: flex;
    border: 1px solid var(--purple-light-border);
    border-radius: 24px;
    overflow: hidden;
    height: 46px;
    background-color: var(--white);
}

.comfort-option {
    flex: 1;
    border: none;
    background: none;
    color: var(--purple-light-border);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.comfort-option.active {
    background-color: var(--purple-main);
    color: var(--white);
}

/* Passengers Selector Dropdown */
.passengers-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    background-color: var(--white);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    z-index: 100;
    border: 1px solid var(--purple-light-border);
    display: none;
    flex-direction: column;
    gap: 12px;
}

.passengers-dropdown.active {
    display: flex;
}

.passenger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.passenger-type {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--purple-main);
}

.passenger-icon {
    font-size: 1.4rem;
    color: var(--purple-main);
}

.passenger-details {
    display: flex;
    align-items: center;
    gap: 6px;
}

.passenger-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--purple-main);
}

.passenger-age {
    font-size: 0.9rem;
    color: var(--purple-main);
    font-weight: 600;
}

.passenger-counter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #F3F1FA;
    color: var(--purple-main);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.counter-btn:hover {
    background-color: #E5DFF1;
}

.counter-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--purple-main);
    min-width: 15px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background-color: #E2E8F0;
    margin: 5px 0;
}

/* Search Button */
.search-button-large {
    width: 215px;
    height: 156px;
    background-color: var(--search-bg);
    border: none;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    align-self: center;
    margin-top: 15px;
}

.search-button-large:hover {
    background-color: #dcd4e8;
}

.search-button-large i {
    font-size: 50px;
    color: var(--purple-main);
}

/* Booking Footer info */
.booking-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #E0E0E0;
    margin-top: 10px;
}

.promo-text {
    font-size: 0.9rem;
    color: var(--grey-text);
}

.promo-text strong {
    font-weight: 700;
    color: var(--grey-text);
}

/* Switch styling */
.discount-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 23px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #D7CCFA;
    transition: .4s;
    border-radius: 23px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2px;
}

.slider::before {
    content: "%";
    font-family: var(--font-family);
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--purple-main);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 17px;
    width: 17px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--purple-main);
}

input:checked + .slider::before {
    transform: translateX(21px);
    color: var(--purple-main);
}

/* Tab View States Toggle styling */
.booking-box.state-buy #col-stations,
.booking-box.state-buy #col-dates,
.booking-box.state-buy #col-passengers {
    display: flex !important;
}
.booking-box.state-buy #col-manage-booking,
.booking-box.state-buy .search-button-manage {
    display: none !important;
}
.booking-box.state-buy .search-button-large {
    display: flex !important;
}
.booking-box.state-buy .booking-footer {
    display: flex !important;
}

/* state-check: 'أراجع المواعيد' */
.booking-box.state-check {
    height: auto !important;
    padding: 30px 36px !important;
}
.booking-box.state-check .booking-columns {
    display: flex !important;
    flex-direction: row !important;
    gap: 37px !important;
}
.booking-box.state-check #col-stations {
    display: flex !important;
    flex: 1 !important;
    width: auto !important;
}
.booking-box.state-check #col-dates {
    display: flex !important;
    flex: 1 !important;
    width: auto !important;
}
.booking-box.state-check #col-passengers,
.booking-box.state-check #col-manage-booking,
.booking-box.state-check .search-button-manage {
    display: none !important;
}
.booking-box.state-check .search-button-large {
    display: flex !important;
    align-self: center !important;
    margin-top: 15px !important;
}
.booking-box.state-check .booking-footer {
    display: none !important;
}

/* state-manage: 'أدير حجزي' */
.booking-box.state-manage #col-stations,
.booking-box.state-manage #col-dates,
.booking-box.state-manage #col-passengers,
.booking-box.state-manage .search-button-large,
.booking-box.state-manage .booking-footer {
    display: none !important;
}
.booking-box.state-manage #col-manage-booking {
    display: flex !important;
    flex-direction: row;
    width: 100%;
    gap: 30px;
    align-items: flex-end;
}
.booking-box.state-manage #col-manage-booking .input-container {
    width: 100%;
}
.booking-box.state-manage #col-manage-booking > div {
    flex: 1;
}
.booking-box.state-manage .search-button-manage {
    display: flex !important;
    background-color: var(--purple-main);
    color: var(--white);
    border: none;
    border-radius: 24px;
    height: 48px;
    padding: 0 45px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    align-self: flex-end;
    margin-bottom: 0px;
}
.booking-box.state-manage .search-button-manage:hover {
    background-color: #3b1294;
}
.booking-box.state-manage {
    height: 200px !important;
}

/* SECTION 2: PURPLE ACCORDION SECTION */
.purple-section {
    background-color: var(--purple-main);
    width: 100%;
    min-height: 919px;
    position: relative;
    padding: 160px 0 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    overflow-x: clip;
}

/* Curve styling */
.curve-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 180px;
    background-color: var(--purple-ultra-light);
    border-radius: 0 0 50% 50%;
    z-index: 1;
    transform: scaleX(1.5);
}

.section-title {
    color: var(--white);
    font-size: 2.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 55px;
    z-index: 2;
}

/* Cities List */
.cities-list {
    width: 542px;
    display: flex;
    flex-direction: column;
    gap: 23px;
    z-index: 2;
}

.city-item {
    width: 100%;
}

.city-button {
    width: 100%;
    height: 61px;
    border: none;
    border-radius: 31px;
    background-color: var(--purple-button);
    color: var(--turquoise);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.city-button:hover {
    background-color: #5c2cd1;
}

.city-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.city-plus {
    font-size: 1.7rem;
    font-weight: 300;
}

/* Accordion Expand Panel */
.city-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 20px 20px;
    margin-top: -10px;
    padding: 0 25px;
    color: var(--white);
    direction: rtl;
}

.city-panel.open {
    padding: 20px 25px;
}

.accordion-sub-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.accordion-sub-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-right: 10px;
}

.accordion-sub-item:last-child {
    border-bottom: none;
}

.sub-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chevron-arrow {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
}

.sub-item-city {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
}

.sub-item-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.start-from {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 400;
}

.price-val {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
}

/* Decorative Rings */
.decor-ring-left {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 40px solid var(--purple-ultra-light);
    border-radius: 50%;
    left: -180px;
    top: 365px;
    z-index: 1;
}

.decor-ring-right {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 58px solid var(--purple-ultra-light);
    border-radius: 50%;
    right: -210px;
    top: 130px;
    z-index: 1;
}

/* Calendar Modal Popup */
#calendar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.42);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#calendar-overlay.active {
    display: flex;
}

.calendar-modal {
    width: 485px;
    background: #fff;
    border-radius: 14px;
    padding: 20px 26px 27px;
    box-sizing: border-box;
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-title {
    color: #4A20AA;
    font-size: 20px;
    font-weight: 700;
}

.calendar-close {
    border: none;
    background: transparent;
    color: #8B8B8B;
    font-size: 28px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.calendar-close:hover {
    color: var(--red-main);
}

.calendar-month-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
    margin-top: 15px;
}

.calendar-month {
    color: #4A20AA;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    flex-grow: 1;
}

.month-arrow {
    color: #4A20AA;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    transition: var(--transition);
}

.month-arrow:hover {
    color: var(--red-main);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-top: 10px;
    width: 100%;
}

.week-day {
    height: 28px;
    text-align: center;
    color: #5A2BCB;
    font-size: 13px;
    font-weight: 600;
}

.day {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8D6CE1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.day span {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.day:hover span:not(.disabled) {
    background-color: rgba(74, 32, 170, 0.08);
}

.day.selected span {
    background-color: #00CF9A !important;
    color: #fff !important;
}

.day.disabled {
    color: #C3B3EB;
    cursor: not-allowed;
}

.modal-divider-first {
    height: 1px;
    background: #EEEEF2;
    margin: 5px 0;
}

.modal-divider-second {
    height: 1px;
    background: #E5E5E5;
    margin: 5px 0;
}

.periods {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.period {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.period-check {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #BBA9E8;
    color: #fff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.period-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.period-name {
    font-size: 14px;
    font-weight: 700;
    color: #A994DD;
    transition: var(--transition);
}

.period-hours {
    font-size: 11px;
    color: #A994DD;
    transition: var(--transition);
}

.period.active .period-check {
    background: #4A20AA;
}

.period.active .period-name,
.period.active .period-hours {
    color: #4A20AA;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    direction: ltr;
    justify-content: flex-start;
}

.confirm-btn {
    width: 90px;
    height: 42px;
    border: 0;
    border-radius: 22px;
    background: #EF2E41;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.confirm-btn:hover {
    background-color: #d02030;
}

.cancel-btn {
    border: 0;
    background: transparent;
    color: #C3B3EB;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn:hover {
    color: #4A20AA;
}

@media (max-width: 1680px) {
    .booking-box, .top-header, .tabs-and-newsletter {
        max-width: 95%;
    }
}

/* TRAIN SEARCH RESULTS VIEW */
#results-screen-view {
    min-height: 100vh;
    background-color: #F4F3FF;
    display: flex;
    direction: rtl;
}

.results-sidebar {
    width: 364px;
    background-color: #4A20AA;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
}

.sidebar-top {
    width: 100%;
}

.sidebar-title {
    font-size: 28px;
    font-weight: 600;
    text-align: right;
    display: block;
}

.empty-cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 20px;
}

/* Empty basket cartoon graphic drawing */
.empty-basket-icon {
    width: 120px;
    height: 100px;
    border: 4px solid var(--white);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.empty-basket-icon::before {
    content: '';
    position: absolute;
    top: -24px;
    width: 80px;
    height: 24px;
    border: 4px solid var(--white);
    border-bottom: none;
    border-radius: 40px 40px 0 0;
}

.basket-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.basket-eye {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    line-height: 0.1;
}

.basket-mouth {
    color: var(--white);
    font-size: 1.2rem;
    margin-top: -6px;
}

.ticket-fly {
    position: absolute;
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    font-weight: bold;
}

.fly-1 {
    top: -40px;
    right: -10px;
    transform: rotate(25deg);
}

.fly-2 {
    top: -25px;
    left: -20px;
    transform: rotate(-15deg);
}

.empty-cart-text {
    font-size: 26px;
    color: var(--white);
    font-weight: 600;
    text-align: center;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    width: 100%;
}

.total-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.total-price-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.results-content-area {
    margin-left: 364px; /* Space for fixed sidebar */
    flex-grow: 1;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the child boxes vertically/horizontally */
    gap: 30px;
    width: calc(100% - 364px);
    box-sizing: border-box;
}

/* Booking Stepper styling */
.booking-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
    margin-bottom: 10px;
    direction: ltr; /* Force step 1 left, step 4 right */
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #BDBDC5;
}

.step-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #BDBDC5;
    color: var(--white);
    font-size: 0.65rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.step-circle i {
    opacity: 0;
}

.step-item.passed .step-circle i,
.step-item.active .step-circle i {
    opacity: 1;
}

.step-item.active .step-circle {
    width: 28px;
    height: 28px;
    background-color: var(--purple-main);
    box-shadow: 0 0 0 4px rgba(74, 32, 170, 0.15);
}

.step-item.passed .step-circle {
    background-color: var(--purple-main);
}

.step-text {
    font-size: 13px;
    font-weight: 600;
    color: #494348;
}

.step-item.active .step-text,
.step-item.passed .step-text {
    color: var(--purple-main);
}

.stepper-line {
    flex-grow: 1;
    height: 2px;
    background-color: #DFDDE8;
    max-width: 150px;
}

.stepper-line.active {
    background-color: var(--purple-main);
}

/* Route Info Header */
.route-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    margin-top: 10px;
}

.route-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 30px;
    font-weight: 700;
    color: var(--purple-main);
}

.route-arrow {
    color: var(--red-main);
    font-weight: 800;
}

.route-comfort-class {
    font-size: 18px;
    color: #5D4B54;
    font-weight: 500;
}

/* New Trip container */
.new-trip-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.new-trip-btn {
    width: 284px;
    height: 54px;
    border: 1px solid #B59BFC;
    border-radius: 28px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: var(--purple-main);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.new-trip-btn:hover {
    background-color: rgba(74, 32, 170, 0.05);
}

.content-divider {
    height: 1px;
    background-color: #E7E4F2;
    width: 822px;
    margin: 0 auto;
}

/* Train filters pills */
.train-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 822px;
    margin: 0 auto;
}

.filter-pill {
    height: 41px;
    padding: 0 17px;
    border: none;
    border-radius: 21px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #A895DF;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill.active {
    color: var(--purple-main);
}

.filter-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #A895DF;
    color: var(--white);
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.filter-pill.active .filter-check {
    background-color: var(--purple-main);
}

/* Outbound section header */
.outbound-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 822px;
    margin: 0 auto;
}

.prev-trains-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #B5A4E8;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

.outbound-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.outbound-date-text {
    font-size: 16px;
    color: var(--purple-main);
    font-weight: 600;
}

.outbound-label {
    font-size: 22px;
    color: var(--purple-main);
    font-weight: 700;
}

/* Results dynamic lists */
.results-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.ticket-card {
    width: 822px;
    background-color: var(--white);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #B59BFC;
    transition: var(--transition);
    position: relative;
}

/* Rounded ticket notches */
.ticket-notch {
    position: absolute;
    top: 80px; /* Aligned with center of the header section */
    width: 18px;
    height: 18px;
    background-color: #F4F3FF; /* Matches results page background */
    border: 1px solid #B59BFC;
    border-radius: 50%;
    z-index: 5;
}

.notch-left {
    left: -10px;
}

.notch-right {
    right: -10px;
}

.ticket-card-header {
    display: flex;
    width: 100%;
}

.ticket-booking-section {
    width: 220px;
    border-right: 1px dashed #E7E4F2;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    background-color: var(--white);
}

.ticket-pax {
    font-size: 16px;
    font-weight: 700;
    color: var(--purple-main);
}

.ticket-start-text {
    font-size: 13px;
    color: #5D4B54;
}

.ticket-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--red-main);
}

.book-ticket-btn {
    width: 140px;
    height: 42px;
    border: none;
    border-radius: 21px;
    background-color: var(--purple-main);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.book-ticket-btn:hover {
    background-color: var(--purple-medium);
}

.ticket-card.expanded {
    border-color: #6A41D8;
}

.ticket-card.expanded .ticket-notch {
    border-color: #6A41D8;
}

.selected-route-label {
    color: #00CF9A;
    font-size: 15px;
    font-weight: 700;
    margin-top: 8px;
    display: none;
}

.ticket-card.expanded .selected-route-label {
    display: block;
}

.ticket-card.expanded .book-ticket-btn {
    display: none; /* Hide standard booking button when expanded, as close is managed inside fares panel overlay or we display cross */
}

.ticket-legs-section {
    flex-grow: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    gap: 15px;
    background-color: var(--white);
}

.limited-seats-badge {
    position: absolute;
    top: 12px;
    left: 20px;
    border: 1px solid var(--red-main);
    color: var(--red-main);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
}

.ticket-timeline {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.timeline-box {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.timeline-time {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--purple-main);
}

.timeline-station {
    font-size: 13px;
    color: #5D4B54;
    font-weight: 600;
}

.timeline-line {
    flex-grow: 1;
    height: 2px;
    background-color: #DFDDE8;
    position: relative;
    text-align: center;
    min-width: 120px;
}

.timeline-duration {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #5D4B54;
    font-weight: 700;
    white-space: nowrap;
}

.timeline-transfers {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #5D4B54;
    font-weight: 700;
    white-space: nowrap;
}

.timeline-dots {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.t-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--red-main);
}

.transfer-tags {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    justify-content: flex-start;
}

.transfer-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #FFF3F3;
    border: 1px solid #FFE4E4;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
}

.transfer-tag i {
    color: var(--purple-main);
}

.tag-comfort {
    color: var(--red-main);
    font-weight: 700;
}

.tag-line {
    color: var(--purple-main);
    font-weight: 700;
}

.tag-station {
    color: #5D4B54;
    font-weight: 600;
}

/* Expandable Fare options panel */
.ticket-fares-panel {
    max-height: 0;
    overflow: hidden;
    background-color: #F8F7FF;
    border-top: 1px solid #E7E4F2;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    position: relative; /* Position reference for confirmation overlay */
}

.ticket-card.expanded .ticket-fares-panel {
    max-height: 800px;
    padding: 25px;
}

/* Selected Fare Confirmation panel (slides in from left) */
.selected-fare-panel {
    position: absolute;
    inset: 0;
    background-color: #F8F7FF;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 15px;
}

.ticket-fares-panel.show-confirmation .selected-fare-panel {
    transform: translateX(0);
    opacity: 1;
}

.confirm-fare-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--purple-main);
    text-align: right;
    width: 100%;
    max-width: 535px;
}

.selected-fare-card {
    width: 535px;
    background-color: #4A20AA;
    border-radius: 14px;
    padding: 20px;
    color: var(--white);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(74, 32, 170, 0.2);
}

.sel-fare-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sel-fare-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.sel-fare-rules {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.sel-fare-price-box {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.sel-fare-price {
    font-size: 22px;
    font-weight: 800;
    color: #10E0B0;
}

.confirm-fare-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin-top: 5px;
}

.add-to-cart-btn {
    width: 190px;
    height: 38px;
    border: none;
    border-radius: 20px;
    background-color: #10D9A3;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background-color: #0db588;
}

.cancel-selection-btn {
    border: none;
    background: transparent;
    color: #C7B8EC;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-selection-btn:hover {
    color: var(--purple-main);
}

.fares-cards-row {
    display: flex;
    gap: 7px;
    justify-content: center;
    width: 100%;
    direction: rtl;
}

.fare-card {
    width: 201px;
    height: 468px;
    border-radius: 12px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.fare-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.fare-card-header {
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: var(--white);
    padding: 0 10px;
}

/* Themes colors */
.green-theme {
    border: 1px solid #00D7A0;
}
.green-theme .fare-card-header {
    background-color: #00D7A0;
}

.light-purple-theme {
    border: 1px solid #A68ADE;
}
.light-purple-theme .fare-card-header {
    background-color: #A68ADE;
}

.deep-purple-theme {
    border: 1px solid #4A20AA;
}
.deep-purple-theme .fare-card-header {
    background-color: #4A20AA;
}

.fare-card-body {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    text-align: center;
    background-color: var(--white);
}

.fare-rules {
    font-size: 12px;
    color: #494348;
    line-height: 1.6;
    text-align: center;
    margin-bottom: auto;
}

.fare-price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.fare-label {
    font-size: 12px;
    color: #A895DF;
    font-weight: 600;
}

.fare-price-val {
    font-size: 21px;
    font-weight: 800;
    color: var(--purple-main);
}

.fare-select-btn {
    width: 160px;
    height: 40px;
    border: 1px solid #6A41D8;
    border-radius: 22px;
    background: #fff;
    color: #4A20AA;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    margin: 0 auto;
}

.fare-select-btn:hover,
.fare-select-btn.active {
    background-color: #6A41D8;
    color: var(--white);
}

/* Remaining Seats bottom labels */
.remaining-seats-row {
    display: flex;
    gap: 7px;
    justify-content: center;
    width: 100%;
}

.seats-item {
    width: 201px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--purple-main);
    font-size: 13px;
    font-weight: 600;
    user-select: none;
}

.seats-item i {
    font-size: 13px;
    color: var(--purple-main);
    transform: scaleX(-1); /* mirror chair icon to match standard RTL */
}

/* Populated Cart styling */
.populated-cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.cart-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    padding: 5px 10px;
    box-sizing: border-box;
}

/* Custom scrollbar for sidebar cart */
.cart-tickets-list::-webkit-scrollbar {
    width: 4px;
}
.cart-tickets-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}
.cart-tickets-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.cart-ticket {
    background-color: #3E1898;
    border-radius: 16px;
    padding: 18px 20px;
    color: var(--white);
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    box-sizing: border-box;
    text-align: right;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.delete-cart-item-btn {
    position: absolute;
    top: 18px;
    left: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A20AA;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

.delete-cart-item-btn:hover {
    background-color: var(--red-main);
    color: var(--white);
}

.cart-ticket-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding-left: 45px; /* Leave space for delete button on left */
}

.cart-ticket-header i {
    font-size: 12px;
}

.cart-ticket-route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.cart-route-separator {
    color: var(--red-main);
    font-weight: 800;
}

.cart-ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.cart-ticket-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.cart-ticket-price-box {
    text-align: left;
}

.cart-ticket-price {
    font-size: 20px;
    font-weight: 800;
    color: #10E0B0;
}

.continue-btn {
    width: 300px;
    height: 42px;
    border: none;
    border-radius: 22px;
    background-color: #10D9A3;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.continue-btn:hover {
    background-color: #0db588;
}

/* Triangle toggle button in bottom left */
.toggle-details-btn {
    position: absolute;
    bottom: 12px;
    left: 20px;
    width: 30px;
    height: 22px;
    background-color: #ECE8FD;
    border: none;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--purple-main);
    transition: var(--transition);
    outline: none;
}

.toggle-details-btn:hover {
    background-color: var(--purple-main);
    color: var(--white);
}

.ticket-card.details-expanded .toggle-details-btn i {
    transform: rotate(180deg);
}

/* Expandable Journey details panel */
.ticket-details-panel {
    max-height: 0;
    overflow: hidden;
    background-color: var(--white);
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ticket-card.details-expanded .ticket-details-panel {
    max-height: 1000px;
    padding: 30px 40px;
    border-top: 1px solid #E7E4F2;
}

.timeline-vertical {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    position: relative;
    direction: rtl;
}

.t-node {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    min-height: 30px;
}

.t-node-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #BDBDC5;
    z-index: 2;
    margin-right: 180px; /* Position line at a fixed place */
    box-sizing: border-box;
}

.t-node-dot.active {
    background-color: #4A20AA;
    width: 18px;
    height: 18px;
    margin-right: 177px;
    border: 3px solid #ECE8FD;
}

.t-node-dot.connect {
    background-color: #00CF9A;
    width: 14px;
    height: 14px;
    margin-right: 179px;
    border: 2px solid #E6FAF5;
}

.t-node-time {
    font-size: 15px;
    font-weight: 700;
    color: var(--purple-main);
    width: 60px;
    text-align: right;
    position: absolute;
    right: 210px;
}

.t-node-station {
    font-size: 14px;
    font-weight: 600;
    color: var(--purple-main);
    position: absolute;
    right: 0;
    width: 160px;
    text-align: left;
}

.t-node-station.green-text {
    color: #00CF9A;
    font-weight: 700;
}

.t-segment {
    display: flex;
    margin-right: 185px; /* Alignment with line */
    position: relative;
}

.t-segment-line {
    width: 2px;
    background-color: #DFDDE8;
    min-height: 80px;
}

.t-segment-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    position: absolute;
    right: 25px;
    width: 320px;
    top: 50%;
    transform: translateY(-50%);
}

.segment-badge {
    background-color: var(--red-main);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.segment-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #5D4B54;
    font-weight: 600;
    border: 1px solid #E7E4F2;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #FAFAFD;
}

.segment-info-box i {
    color: var(--purple-main);
    font-size: 14px;
}

@media (max-width: 1200px) {
    .booking-box {
        height: auto;
    }
    .booking-fields-container {
        flex-direction: column;
        align-items: stretch;
    }
    .booking-columns {
        flex-direction: column;
        gap: 20px;
    }
    .field-column {
        width: 100%;
    }
    .search-button-large {
        width: 100%;
        height: 60px;
        margin-top: 10px;
    }
    .booking-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* ==========================================
   CHECKOUT PASSENGERS & PAYMENT VIEW STYLES
   ========================================== */

.checkout-header-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 5px;
}

.checkout-header-title h1,
.checkout-header-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--purple-main);
    margin: 0;
}

.checkout-header-title p {
    font-size: 14px;
    font-weight: 500;
    color: #7A7279;
    margin: 0;
}

.checkout-warning-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #FFF2F3;
    border: 1px solid #FFD3D6;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--red-main);
    line-height: 1.5;
}

.checkout-warning-box i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.checkout-card {
    background-color: var(--white);
    border: 1px solid #BDA7EF;
    border-radius: 14px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 610px;
    box-shadow: 0 4px 15px rgba(74, 32, 170, 0.03);
}

.checkout-card-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.checkout-card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--purple-main);
    margin: 0;
}

.checkout-card-header span {
    font-size: 13px;
    font-weight: 600;
    color: #7C48D0;
}

.checkout-route-badge {
    background-color: #F0ECFC;
    color: var(--purple-main);
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-block;
    align-self: flex-start;
}

.passenger-form-section {
    background-color: #F7F5FA;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pax-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--purple-main);
}

.gender-radios-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.gender-radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--purple-main);
    user-select: none;
}

.gender-radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: var(--white);
    border: 1px solid #BDA7EF;
    border-radius: 50%;
}

.gender-radio-container:hover input ~ .radio-checkmark {
    border-color: var(--red-main);
}

.gender-radio-container input:checked ~ .radio-checkmark {
    background-color: var(--white);
    border-color: var(--red-main);
    border-width: 5px;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    direction: rtl;
}

.form-field-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field-box label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--purple-main);
}

.required-star {
    color: var(--red-main);
    font-weight: bold;
}

.checkout-input {
    width: 100%;
    height: 35px;
    border: 1px solid #BDA7EF;
    border-radius: 18px;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--purple-main);
    background-color: var(--white);
    outline: none;
    box-sizing: border-box;
    transition: var(--transition);
}

.checkout-input::placeholder {
    color: #B2A6BF;
    font-size: 11.5px;
}

.checkout-input:focus {
    border-color: var(--purple-main);
    box-shadow: 0 0 0 2px rgba(74, 32, 170, 0.08);
}

.phone-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.phone-country-select {
    width: 105px;
    height: 35px;
    border: 1px solid #BDA7EF;
    border-radius: 18px;
    background-color: var(--white);
    color: var(--purple-main);
    font-size: 12px;
    font-weight: 600;
    outline: none;
    padding: 0 10px;
    cursor: pointer;
}

.phone-number-input {
    flex-grow: 1;
}

.full-width-phone {
    grid-column: span 2;
}

/* Switch styling for Seat Prefs */
.round-checkbox-container {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.round-checkbox-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.round-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: var(--white);
    border: 1.5px solid #BDA7EF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: var(--transition);
}

.round-checkbox-container input:checked ~ .round-checkmark {
    background-color: var(--purple-main);
    border-color: var(--purple-main);
    color: var(--white);
}

.round-checkmark i {
    font-size: 11px;
}

.seat-preference-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #E8E5EB;
}

.seat-pref-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.seat-pref-info-msg {
    background-color: #F0ECFC;
    color: var(--purple-main);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seat-selection-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seat-selection-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--purple-main);
}

.seat-choices-row {
    display: flex;
    gap: 15px;
}

.seat-choice-btn {
    flex: 1;
    height: 38px;
    border: 1px solid #BDA7EF;
    background-color: var(--white);
    border-radius: 19px;
    color: var(--purple-main);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.seat-choice-btn.active {
    background-color: var(--purple-main);
    color: var(--white);
    border-color: var(--purple-main);
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E2DFEC;
    transition: .3s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--purple-main);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

.pref-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--purple-main);
}

.checkout-divider {
    height: 1px;
    background-color: #DFDDE8;
    margin: 15px 0;
}

/* Checkbox styling */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    padding-right: 25px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-checkmark {
    position: absolute;
    right: 0;
    top: 2px;
    height: 16px;
    width: 16px;
    background-color: var(--white);
    border: 1px solid #BDA7EF;
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkbox-checkmark {
    border-color: var(--purple-main);
}

.checkbox-container input:checked ~ .checkbox-checkmark {
    background-color: var(--purple-main);
    border-color: var(--purple-main);
}

.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkbox-checkmark:after {
    display: block;
}

.checkbox-container .checkbox-checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--purple-main);
}

.checkbox-text-desc {
    font-size: 11px;
    font-weight: 500;
    color: #7C727B;
    line-height: 1.4;
}

/* Payment Methods */
.payment-methods-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.payment-method-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 105px;
    height: 95px;
    background-color: #F3F1F7;
    border: 1px solid #DFDDE8;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method-box:hover {
    border-color: var(--purple-main);
}

.payment-method-box.active {
    background-color: #F2ECFF;
    border: 2px solid var(--purple-main);
}

.pay-icon-box {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.8rem;
    position: relative;
}

.pay-badge {
    position: absolute;
    top: -5px;
    left: -12px;
    background-color: var(--red-main);
    color: var(--white);
    font-size: 8px;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 3px;
}

.pay-label {
    font-size: 11px;
    font-weight: 700;
    color: #49434A;
    text-align: center;
}

/* Actions confirm cancel */
.checkout-actions-row {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 10px;
}

.checkout-confirm-btn {
    width: 220px;
    height: 50px;
    border: none;
    border-radius: 25px;
    background-color: var(--purple-main);
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(74, 32, 170, 0.15);
}

.checkout-confirm-btn:hover {
    background-color: #37187F;
}

.checkout-cancel-btn {
    border: none;
    background: transparent;
    color: #BBA9E8;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-cancel-btn:hover {
    color: var(--red-main);
}

/* ==========================================
   LOADING OVERLAY & SPINNER ANIMATION
   ========================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(74, 32, 170, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: var(--white);
    padding: 35px 50px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    text-align: center;
    border: 1px solid #BDA7EF;
    max-width: 90%;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #E2DFEC;
    border-top-color: var(--purple-main);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--purple-main);
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   SEAT SELECTION PANEL & TOGGLES
   ========================================== */

.seat-preference-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.seat-pref-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Circular Checkbox Switch */
.round-checkbox-container {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: inline-block;
}

.round-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.round-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: var(--white);
    border: 2px solid var(--purple-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.round-checkmark i {
    color: var(--white);
    font-size: 0.65rem;
    opacity: 0;
    transition: var(--transition);
}

.round-checkbox-container input:checked ~ .round-checkmark {
    background-color: var(--purple-main);
    border-color: var(--purple-main);
}

.round-checkbox-container input:checked ~ .round-checkmark i {
    opacity: 1;
}

.seat-pref-info-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--purple-main);
    margin-top: -4px;
}

.seat-pref-info-msg i {
    font-size: 1.05rem;
}

.seat-selection-panel {
    background-color: #F7F5FA;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px dashed #BDA7EF;
}

.seat-selection-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--purple-main);
    text-align: right;
}

.seat-choices-row {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.seat-choice-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #E2DBF6;
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--purple-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.seat-choice-btn i {
    font-size: 1rem;
}

.seat-choice-btn:hover {
    background-color: #D6CDF3;
}

.seat-choice-btn.active {
    background-color: #C0B3ED;
    border-color: var(--purple-main);
}

/* ==========================================
   PAYMENT GATEWAY & OTP VIEW STYLES
   ========================================== */

.payment-header {
    height: 60px;
    background-color: var(--white);
    border-bottom: 1px solid #E8E5EB;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.payment-main-container,
.otp-main-container {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    direction: ltr; /* Payment pages are standard left-to-right */
}

.payment-main-title,
.otp-main-title {
    font-size: 32px;
    font-weight: 600;
    color: #211075;
    margin-bottom: 30px;
    text-align: center;
}

.otp-main-subtitle {
    font-size: 14px;
    color: #7C727B;
    margin-top: -25px;
    margin-bottom: 30px;
    text-align: center;
}

.payment-content-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.payment-details-card {
    background-color: var(--white);
    border: 1px solid #E8E5EB;
    border-radius: 12px;
    padding: 25px;
    width: 425px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.details-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #FAF9FE;
    padding-bottom: 10px;
}

.details-card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #211075;
    margin: 0;
}

.header-datetime {
    font-size: 11px;
    color: #9C949D;
    font-weight: 500;
}

.payment-method-desc-box {
    background-color: #FAF8FE;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.method-label {
    font-size: 13px;
    font-weight: 600;
    color: #211075;
}

.card-brands-row {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 1.8rem;
}

.cmi-brand {
    font-size: 11px;
    font-weight: 900;
    color: #004D95;
    border: 1px solid #004D95;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1;
}

.radio-payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #211075;
    margin-top: 5px;
}

.radio-method-dot {
    height: 14px;
    width: 14px;
    border: 5px solid var(--red-main);
    border-radius: 50%;
    background-color: var(--white);
}

.payment-form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pay-field-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.pay-field-box label {
    font-size: 12px;
    font-weight: 700;
    color: #49434E;
}

.pay-input {
    width: 100%;
    height: 40px;
    border: 1.5px solid #6B3FD4;
    border-radius: 20px;
    padding: 0 15px;
    font-size: 13.5px;
    font-weight: 600;
    color: #211075;
    outline: none;
    box-sizing: border-box;
}

.pay-input::placeholder {
    color: #C0BAC5;
    font-size: 12px;
}

.expiration-cvv-row {
    display: flex;
    gap: 20px;
}

.expiry-inputs {
    display: flex;
    gap: 10px;
}

.expiry-select {
    width: 85px;
    height: 40px;
    border: 1.5px solid #6B3FD4;
    border-radius: 20px;
    background-color: var(--white);
    color: #211075;
    font-size: 13.5px;
    font-weight: 600;
    outline: none;
    padding: 0 10px;
    cursor: pointer;
}

.cvv-help-btn {
    font-size: 13px;
    font-weight: 700;
    color: #6B3FD4;
    cursor: help;
}

.terms-accept-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 5px;
}

.terms-accept-container input {
    display: none;
}

.terms-accept-checkmark {
    width: 16px;
    height: 16px;
    border: 1.5px solid #BDA7EF;
    border-radius: 50%;
    background-color: var(--white);
    display: inline-block;
    transition: var(--transition);
}

.terms-accept-container input:checked ~ .terms-accept-checkmark {
    background-color: var(--red-main);
    border-color: var(--red-main);
}

.terms-text {
    font-size: 11.5px;
    font-weight: 600;
    color: #49434E;
}

.privacy-note {
    margin-top: 25px;
    font-size: 11px;
    color: #A49CB5;
    text-align: center;
    border-top: 1px solid #FAF9FE;
    padding-top: 15px;
}

/* Right Stack info cards */
.payment-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 425px;
}

.info-stack-card {
    background-color: var(--white);
    border: 1px solid #E8E5EB;
    border-radius: 12px;
    padding: 20px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.info-stack-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #211075;
    margin: 0 0 5px 0;
    border-bottom: 1px solid #FAF9FE;
    padding-bottom: 8px;
}

.info-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.info-lbl {
    color: #7C727B;
    font-weight: 500;
}

.info-val {
    color: #211075;
    font-weight: 600;
}

.text-purple {
    color: #5124B5 !important;
}

.payment-actions-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 890px;
    margin-top: 30px;
}

.pay-annuler-btn {
    border: none;
    background: transparent;
    color: #A094BA;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.pay-annuler-btn:hover {
    color: var(--red-main);
}

.pay-submit-btn {
    width: 190px;
    height: 38px;
    border: none;
    border-radius: 20px;
    background-color: #5124B5;
    color: var(--white);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.pay-submit-btn:hover {
    background-color: #3C1A8A;
}

/* ==========================================
   OTP VERIFICATION CARD STYLES
   ========================================== */

.otp-card {
    background-color: var(--white);
    border: 1px solid #E8E5EB;
    border-radius: 12px;
    padding: 35px;
    width: 450px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}

.otp-lock-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #F2EDFF;
    color: #5124B5;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.otp-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #211075;
    margin: 0 0 10px 0;
    text-align: center;
}

.otp-card-desc {
    font-size: 13px;
    color: #6C626C;
    text-align: center;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.otp-inputs-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.otp-digit-field {
    width: 52px;
    height: 55px;
    border: 1.5px solid #C6B4ED;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #5124B5;
    text-align: center;
    outline: none;
    box-sizing: border-box;
    transition: var(--transition);
}

.otp-digit-field:focus {
    border-color: #5124B5;
    box-shadow: 0 0 0 3px rgba(81, 36, 181, 0.08);
}

.otp-digit-field.error {
    border-color: #E53955 !important;
    background-color: #FFF2F3;
}

.otp-error-msg {
    font-size: 12.5px;
    font-weight: 700;
    color: #E53955;
    margin-bottom: 15px;
    text-align: center;
}

.otp-timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.timer-label {
    font-size: 11.5px;
    color: #7C727C;
}

.timer-counter {
    font-size: 12px;
    font-weight: 700;
    color: #211075;
}

.resend-link-btn {
    border: none;
    background: transparent;
    color: #5124B5;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.otp-txn-info-box {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 13px;
    margin-bottom: 25px;
}

.otp-txn-row {
    display: flex;
    gap: 6px;
}

.otp-confirm-btn {
    width: 220px;
    height: 42px;
    border: none;
    border-radius: 22px;
    background-color: #5124B5;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.otp-confirm-btn:hover:not(:disabled) {
    background-color: #3C1A8A;
}

.otp-confirm-btn:disabled {
    background-color: #D6CDF3;
    cursor: not-allowed;
}

.otp-cancel-btn {
    border: none;
    background: transparent;
    color: #BBA9E8;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: var(--transition);
}

.otp-cancel-btn:hover {
    color: var(--red-main);
}

/* ==========================================
   SUCCESS SCREEN OVERLAY STYLES
   ========================================== */

.success-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FAF9FE;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.success-container {
    background-color: var(--white);
    border: 1px solid #E8E5EB;
    border-radius: 12px;
    padding: 40px;
    width: 440px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0,0,0,0.02);
    text-align: center;
}

.success-check-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #E6FAF4;
    color: #00E6A7;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.success-title {
    font-size: 26px;
    font-weight: 700;
    color: #211075;
    margin: 0 0 8px 0;
}

.success-subtitle {
    font-size: 14px;
    color: #7C727B;
    margin: 0 0 25px 0;
}

.success-info-card {
    background-color: #FAF8FE;
    border-radius: 8px;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.success-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #211075;
}

.success-action-btn {
    width: 220px;
    height: 42px;
    border: none;
    border-radius: 22px;
    background-color: #5124B5;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.success-action-btn:hover {
    background-color: #3C1A8A;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS OVERRIDES
   ========================================== */

/* ---- TABLET LANDSCAPE & SMALL DESKTOP (max-width: 1025px) ---- */
@media (max-width: 1025px) {

    /* === HOMEPAGE === */
    .top-header {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
        margin-bottom: 25px !important;
    }

    .header-right {
        justify-content: space-between;
        width: 100%;
    }

    .header-left {
        width: 100%;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-left a {
        font-size: 0.9rem;
    }

    .header-left .divider {
        display: none;
    }

    .tabs-and-newsletter {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .tabs-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .tab {
        flex: 1;
        height: 45px;
        padding: 0 10px;
        font-size: 0.85rem;
        justify-content: center;
        margin-left: 5px;
    }

    .tab.active {
        height: 52px;
        font-size: 0.95rem;
        padding: 0 12px;
    }

    .newsletter-bar {
        width: 100%;
        justify-content: center;
    }

    /* Booking Form */
    .booking-box {
        padding: 20px 15px !important;
        height: auto !important;
    }

    .booking-fields-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .booking-columns {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .field-column {
        width: 100% !important;
    }

    .search-button-large {
        width: 100% !important;
        height: 56px !important;
        margin-top: 10px !important;
    }

    .search-button-large i {
        font-size: 32px !important;
    }

    .booking-footer {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .promo-text {
        text-align: center !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    /* Manage Booking */
    .booking-box.state-manage {
        height: auto !important;
    }

    .booking-box.state-manage #col-manage-booking {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Purple Section / Cities Accordion */
    .purple-section {
        padding: 120px 15px 60px 15px !important;
        overflow: hidden !important;
        overflow-x: clip !important;
    }

    .curve-overlay {
        height: 140px !important;
        transform: scaleX(1.8) !important;
    }

    .cities-list {
        width: 100% !important;
        max-width: 540px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 1.8rem !important;
        padding: 0 15px;
    }

    .decor-ring-left,
    .decor-ring-right {
        display: none !important;
    }

    /* === RESULTS & CHECKOUT SPLIT LAYOUT === */
    #results-screen-view {
        flex-direction: column !important;
    }

    .results-sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 20px !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        box-sizing: border-box !important;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    .results-content-area {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        padding: 25px 15px !important;
        box-sizing: border-box !important;
    }

    /* Ticket Cards */
    .ticket-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .content-divider,
    .train-filters,
    .outbound-label-row {
        width: 100% !important;
    }

    /* Cart Ticket inside sidebar */
    .cart-ticket {
        width: 100% !important;
        max-width: 100% !important;
    }

    .continue-btn {
        width: 100% !important;
    }

    /* Fare Cards */
    .fares-cards-row {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .fare-card {
        width: calc(50% - 10px) !important;
        min-width: 170px !important;
        height: auto !important;
    }

    .remaining-seats-row {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .seats-item {
        width: auto !important;
    }

    /* Selected fare confirmation */
    .selected-fare-card {
        width: 100% !important;
        max-width: 500px;
    }

    .confirm-fare-title {
        max-width: 100% !important;
    }

    /* === CHECKOUT PAGE === */
    .checkout-card {
        max-width: 100% !important;
        padding: 18px !important;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .full-width-phone {
        grid-column: span 1 !important;
    }

    .checkout-warning-box {
        font-size: 12px !important;
    }

    .checkout-actions-row {
        flex-direction: column-reverse !important;
        gap: 15px !important;
        align-items: stretch !important;
    }

    .checkout-confirm-btn,
    .checkout-cancel-btn {
        width: 100% !important;
        text-align: center;
    }

    .payment-methods-row {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Seat Preferences */
    .seat-choices-row {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .seat-choice-btn {
        flex: 0 0 auto !important;
        min-width: 100px !important;
    }

    /* === PAYMENT PAGE === */
    .payment-main-container,
    .otp-main-container {
        margin: 20px auto !important;
        padding: 0 15px !important;
    }

    .payment-content-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .payment-details-card,
    .payment-info-column {
        width: 100% !important;
        max-width: 480px !important;
    }

    .payment-actions-row {
        max-width: 480px !important;
        flex-direction: column-reverse !important;
        gap: 15px !important;
        align-items: stretch !important;
    }

    .pay-submit-btn {
        width: 100% !important;
    }

    .expiration-cvv-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* === OTP PAGE === */
    .otp-card {
        width: 100% !important;
        max-width: 450px !important;
        padding: 25px 20px !important;
    }

    /* === SUCCESS SCREEN === */
    .success-container {
        width: 90% !important;
        max-width: 420px !important;
        padding: 30px 20px !important;
    }

    /* Calendar Modal */
    .calendar-modal {
        width: 90% !important;
        max-width: 450px !important;
    }
}

/* ---- TABLET PORTRAIT & LARGE MOBILE (max-width: 768px) ---- */
@media (max-width: 768px) {

    /* === HOMEPAGE === */
    .red-section {
        min-height: auto !important;
        padding: 1.5rem 0 !important;
    }

    .logo-main {
        font-size: 1.9rem !important;
    }

    .logo-sub {
        font-size: 0.85rem !important;
    }

    .tab {
        font-size: 0.78rem !important;
        padding: 0 8px !important;
        gap: 5px !important;
    }

    .tab i {
        font-size: 0.9rem !important;
    }

    .tab.active {
        font-size: 0.85rem !important;
    }

    .comfort-control {
        flex-direction: column !important;
        height: auto !important;
        border-radius: 12px !important;
    }

    .comfort-option {
        padding: 10px !important;
        border-radius: 0 !important;
    }

    .comfort-option:first-child {
        border-radius: 12px 12px 0 0 !important;
    }

    .comfort-option:last-child {
        border-radius: 0 0 12px 12px !important;
    }

    /* Purple Section */
    .purple-section {
        padding: 100px 10px 40px 10px !important;
        min-height: auto !important;
    }

    .curve-overlay {
        height: 120px !important;
    }

    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 30px !important;
    }

    .city-button {
        height: 52px !important;
        padding: 0 18px 0 15px !important;
    }

    .city-name {
        font-size: 1.2rem !important;
    }

    .accordion-sub-item {
        padding: 12px 5px !important;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sub-item-city {
        font-size: 1.05rem !important;
    }

    .price-val {
        font-size: 1.2rem !important;
    }

    /* === RESULTS PAGE === */
    .booking-stepper {
        gap: 6px !important;
    }

    .step-circle {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }

    .step-text {
        font-size: 10px !important;
    }

    .stepper-line {
        max-width: 80px !important;
    }

    .route-title-row {
        font-size: 22px !important;
        gap: 10px !important;
    }

    .route-comfort-class {
        font-size: 14px !important;
    }

    .new-trip-btn {
        width: 100% !important;
        max-width: 280px;
        font-size: 16px !important;
        height: 48px !important;
    }

    /* Ticket Card Stacked */
    .ticket-card-header {
        flex-direction: column-reverse !important;
        gap: 0 !important;
    }

    .ticket-booking-section {
        width: 100% !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1.5px dashed #E2DBF6 !important;
        padding: 15px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .ticket-booking-section .ticket-price {
        font-size: 1.3rem !important;
        margin: 0 !important;
    }

    .ticket-booking-section .book-ticket-btn {
        width: 110px !important;
        height: 38px !important;
        margin-top: 0 !important;
    }

    .ticket-legs-section {
        width: 100% !important;
        padding: 15px !important;
    }

    .ticket-timeline {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .timeline-box {
        text-align: center !important;
    }

    .timeline-line {
        width: 80% !important;
        max-width: 200px !important;
        margin: 5px auto !important;
    }

    .timeline-duration {
        position: static !important;
        transform: none !important;
        display: block;
        text-align: center;
        margin-bottom: 4px;
    }

    .timeline-transfers {
        position: static !important;
        transform: none !important;
        display: block;
        text-align: center;
        margin-top: 4px;
    }

    .transfer-tags {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .transfer-tag {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    .ticket-notch {
        display: none !important;
    }

    /* Limited seats badge */
    .limited-seats-badge {
        position: static !important;
        display: inline-block !important;
        align-self: flex-start;
        margin-bottom: 8px;
    }

    /* Fare Cards - single column on smaller tablets */
    .fare-card {
        width: 100% !important;
        max-width: 220px !important;
        height: auto !important;
        min-height: 360px !important;
    }

    .fare-card-body {
        padding: 15px 12px !important;
    }

    .fare-select-btn {
        width: 100% !important;
        max-width: 150px !important;
    }

    /* Train Filters Scrollable */
    .train-filters {
        overflow-x: auto !important;
        width: 100% !important;
        justify-content: flex-start !important;
        padding-bottom: 5px !important;
        gap: 8px !important;
        -webkit-overflow-scrolling: touch;
    }

    .filter-pill {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 14px !important;
    }

    .outbound-label-row {
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 8px !important;
    }

    /* Journey Details Expanded Panel */
    .ticket-card.details-expanded .ticket-details-panel {
        padding: 20px 15px !important;
    }

    .timeline-vertical {
        max-width: 100% !important;
    }

    .t-node-dot {
        margin-right: 120px !important;
    }

    .t-node-dot.active {
        margin-right: 117px !important;
    }

    .t-node-dot.connect {
        margin-right: 119px !important;
    }

    .t-node-time {
        right: 145px !important;
        font-size: 13px !important;
    }

    .t-node-station {
        width: 100px !important;
        font-size: 12px !important;
    }

    .t-segment {
        margin-right: 125px !important;
    }

    .t-segment-content {
        right: 20px !important;
        width: auto !important;
        flex-wrap: wrap;
        gap: 8px !important;
    }

    /* === CHECKOUT PAGE === */
    .checkout-header-title h1,
    .checkout-header-title h2 {
        font-size: 20px !important;
    }

    .checkout-route-badge {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }

    .gender-radios-row {
        gap: 15px !important;
    }

    .passenger-form-section {
        padding: 15px !important;
    }

    .phone-input-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .phone-country-select {
        width: 100% !important;
    }

    /* Payment Methods */
    .payment-method-box {
        width: 90px !important;
        height: 80px !important;
    }

    .pay-icon-box {
        font-size: 1.4rem !important;
    }

    .pay-label {
        font-size: 10px !important;
    }

    /* === PAYMENT PAGE === */
    .payment-main-title,
    .otp-main-title {
        font-size: 24px !important;
    }

    .payment-details-card,
    .payment-info-column {
        max-width: 100% !important;
    }

    .info-stack-card {
        padding: 15px !important;
    }

    .info-card-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .pay-input {
        height: 44px !important;
        font-size: 14px !important;
    }

    .expiry-select {
        height: 44px !important;
        width: 100% !important;
        min-width: 80px;
    }

    .expiry-inputs {
        width: 100% !important;
    }

    /* === OTP PAGE === */
    .otp-inputs-row {
        gap: 6px !important;
    }

    .otp-digit-field {
        width: 44px !important;
        height: 48px !important;
        font-size: 18px !important;
    }

    .otp-txn-info-box {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .otp-card-title {
        font-size: 18px !important;
    }

    .otp-card-desc {
        font-size: 12px !important;
    }

    /* Success */
    .success-container {
        padding: 25px 15px !important;
    }

    .success-title {
        font-size: 22px !important;
    }

    .success-info-card {
        padding: 12px 15px !important;
    }

    .success-action-btn {
        width: 100% !important;
        max-width: 220px;
    }

    /* Calendar */
    .calendar-modal {
        padding: 15px 18px 20px !important;
    }

    .calendar-month-select {
        padding: 0 15px !important;
    }

    .periods {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
}

/* ---- MOBILE PHONES (max-width: 480px) ---- */
@media (max-width: 480px) {

    /* === HOMEPAGE === */
    .logo-main {
        font-size: 1.6rem !important;
    }

    .logo-sub {
        font-size: 0.75rem !important;
    }

    .header-left {
        gap: 8px !important;
    }

    .header-left a {
        font-size: 0.78rem !important;
    }

    .tab {
        font-size: 0.7rem !important;
        height: 40px !important;
        gap: 4px !important;
    }

    .tab.active {
        height: 46px !important;
        font-size: 0.78rem !important;
    }

    .tab i {
        font-size: 0.75rem !important;
    }

    .booking-box {
        padding: 15px 12px !important;
        border-radius: 10px !important;
    }

    .form-input,
    .station-select {
        height: 44px !important;
        font-size: 13px !important;
    }

    .passengers-dropdown {
        padding: 12px 15px !important;
    }

    .passenger-label {
        font-size: 1.05rem !important;
    }

    .counter-btn {
        width: 30px !important;
        height: 30px !important;
    }

    /* Purple Section */
    .purple-section {
        padding: 80px 8px 30px 8px !important;
    }

    .curve-overlay {
        height: 90px !important;
    }

    .section-title {
        font-size: 1.25rem !important;
        margin-bottom: 25px !important;
    }

    .city-button {
        height: 48px !important;
        border-radius: 24px !important;
    }

    .city-name {
        font-size: 1.05rem !important;
    }

    .city-plus {
        font-size: 1.3rem !important;
    }

    .accordion-sub-item {
        padding: 10px 3px !important;
    }

    .sub-item-city {
        font-size: 0.95rem !important;
    }

    .price-val {
        font-size: 1.1rem !important;
    }

    .start-from {
        font-size: 0.8rem !important;
    }

    /* === RESULTS PAGE === */
    .booking-stepper .step-text {
        display: none !important;
    }

    .booking-stepper {
        justify-content: space-around !important;
        gap: 4px !important;
    }

    .step-circle {
        width: 20px !important;
        height: 20px !important;
    }

    .step-item.active .step-circle {
        width: 26px !important;
        height: 26px !important;
    }

    .stepper-line {
        max-width: 40px !important;
    }

    .route-title-row {
        flex-direction: column-reverse !important;
        gap: 6px !important;
        align-items: center !important;
        font-size: 18px !important;
    }

    .route-arrow {
        transform: rotate(90deg) !important;
        display: inline-block !important;
    }

    .route-comfort-class {
        font-size: 13px !important;
    }

    .results-content-area {
        padding: 15px 10px !important;
        gap: 20px !important;
    }

    .new-trip-btn {
        width: 100% !important;
        height: 44px !important;
        font-size: 14px !important;
    }

    /* Ticket Card */
    .ticket-booking-section {
        padding: 12px 10px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .ticket-pax {
        font-size: 13px !important;
    }

    .ticket-start-text {
        font-size: 11px !important;
    }

    .ticket-price {
        font-size: 20px !important;
    }

    .book-ticket-btn {
        width: 100% !important;
        height: 40px !important;
        font-size: 14px !important;
    }

    .ticket-legs-section {
        padding: 12px 10px !important;
    }

    .timeline-time {
        font-size: 1.1rem !important;
    }

    .timeline-station {
        font-size: 11px !important;
    }

    /* Fare Cards Stack Vertically */
    .fares-cards-row {
        flex-direction: column !important;
        align-items: center !important;
    }

    .fare-card {
        width: 100% !important;
        max-width: 280px !important;
        min-height: auto !important;
    }

    .fare-card-header {
        height: 40px !important;
        font-size: 13px !important;
    }

    .fare-price-val {
        font-size: 18px !important;
    }

    .fare-select-btn {
        max-width: 100% !important;
        width: 100% !important;
    }

    .ticket-card.expanded .ticket-fares-panel {
        padding: 15px 10px !important;
    }

    /* Confirmation Panel */
    .selected-fare-panel {
        padding: 15px 10px !important;
    }

    .selected-fare-card {
        padding: 15px !important;
    }

    .sel-fare-name {
        font-size: 16px !important;
    }

    .confirm-fare-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .add-to-cart-btn {
        width: 100% !important;
    }

    /* Journey Details */
    .t-node-dot {
        margin-right: 80px !important;
    }

    .t-node-dot.active {
        margin-right: 77px !important;
    }

    .t-node-dot.connect {
        margin-right: 79px !important;
    }

    .t-node-time {
        right: 100px !important;
        width: 50px !important;
        font-size: 12px !important;
    }

    .t-node-station {
        width: 70px !important;
        font-size: 11px !important;
    }

    .t-segment {
        margin-right: 85px !important;
    }

    .t-segment-content {
        right: 15px !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    .segment-info-box {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }

    /* Cart Items */
    .cart-ticket {
        padding: 14px 15px !important;
    }

    .cart-ticket-route {
        font-size: 14px !important;
    }

    .cart-ticket-header {
        font-size: 10px !important;
        padding-left: 40px !important;
    }

    .delete-cart-item-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .sidebar-title {
        font-size: 22px !important;
    }

    .total-price-val {
        font-size: 1.4rem !important;
    }

    /* === CHECKOUT PAGE === */
    .checkout-header-title h1,
    .checkout-header-title h2 {
        font-size: 18px !important;
    }

    .checkout-header-title p {
        font-size: 12px !important;
    }

    .checkout-card {
        padding: 14px 12px !important;
        border-radius: 10px !important;
    }

    .checkout-card-header h2 {
        font-size: 16px !important;
    }

    .checkout-route-badge {
        font-size: 10px !important;
        padding: 5px 10px !important;
        word-break: break-word;
    }

    .passenger-form-section {
        padding: 12px 10px !important;
        border-radius: 10px !important;
    }

    .pax-title {
        font-size: 13px !important;
    }

    .checkout-input {
        height: 38px !important;
        font-size: 12px !important;
        border-radius: 12px !important;
    }

    .checkout-input::placeholder {
        font-size: 10px !important;
    }

    .phone-country-select {
        height: 38px !important;
        font-size: 11px !important;
    }

    .gender-radio-container {
        font-size: 12px !important;
    }

    .checkbox-text-label {
        font-size: 11px !important;
    }

    .checkbox-text-desc {
        font-size: 10px !important;
    }

    .checkout-warning-box {
        font-size: 11px !important;
        padding: 10px 12px !important;
    }

    .checkout-confirm-btn {
        height: 46px !important;
        font-size: 15px !important;
    }

    /* Seat Preferences */
    .seat-choice-btn {
        min-width: 85px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    .seat-choice-btn i {
        font-size: 0.85rem !important;
    }

    .seat-selection-panel {
        padding: 12px 10px !important;
    }

    .seat-pref-info-msg {
        font-size: 10.5px !important;
    }

    /* Payment Methods */
    .payment-method-box {
        width: 80px !important;
        height: 72px !important;
    }

    .pay-icon-box {
        font-size: 1.2rem !important;
    }

    .pay-label {
        font-size: 9px !important;
    }

    /* === PAYMENT PAGE === */
    .payment-main-title {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }

    .payment-details-card {
        padding: 18px 15px !important;
    }

    .details-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .details-card-header h2 {
        font-size: 16px !important;
    }

    .card-brands-row {
        font-size: 1.4rem !important;
    }

    .pay-field-box label {
        font-size: 11px !important;
    }

    .pay-input {
        height: 42px !important;
        border-radius: 14px !important;
    }

    .terms-text {
        font-size: 10px !important;
    }

    .privacy-note {
        font-size: 10px !important;
    }

    .payment-actions-row {
        margin-top: 20px !important;
    }

    .pay-submit-btn {
        height: 44px !important;
        font-size: 13px !important;
    }

    .pay-annuler-btn {
        font-size: 13px !important;
        text-align: center !important;
    }

    /* === OTP PAGE === */
    .otp-main-title {
        font-size: 20px !important;
    }

    .otp-main-subtitle {
        font-size: 12px !important;
        margin-bottom: 20px !important;
    }

    .otp-card {
        padding: 20px 12px !important;
    }

    .otp-lock-circle {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }

    .otp-card-title {
        font-size: 16px !important;
    }

    .otp-card-desc {
        font-size: 11px !important;
        margin-bottom: 20px !important;
    }

    .otp-inputs-row {
        gap: 5px !important;
    }

    .otp-digit-field {
        width: 38px !important;
        height: 42px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }

    .otp-error-msg {
        font-size: 11px !important;
    }

    .timer-label {
        font-size: 10px !important;
    }

    .timer-counter {
        font-size: 11px !important;
    }

    .otp-txn-info-box {
        font-size: 11px !important;
    }

    .otp-confirm-btn {
        width: 100% !important;
        height: 44px !important;
        font-size: 13px !important;
    }

    .otp-cancel-btn {
        font-size: 12px !important;
    }

    /* === SUCCESS SCREEN === */
    .success-container {
        width: 92% !important;
        padding: 25px 15px !important;
    }

    .success-check-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }

    .success-title {
        font-size: 20px !important;
    }

    .success-subtitle {
        font-size: 12px !important;
    }

    .success-info-row {
        font-size: 11px !important;
    }

    .success-action-btn {
        width: 100% !important;
        height: 42px !important;
        font-size: 13px !important;
    }

    /* Calendar */
    .calendar-modal {
        width: 95% !important;
        padding: 12px 14px 18px !important;
    }

    .calendar-title {
        font-size: 17px !important;
    }

    .calendar-month {
        font-size: 16px !important;
    }

    .calendar-month-select {
        padding: 0 10px !important;
    }

    .day span {
        width: 30px !important;
        height: 30px !important;
    }

    .day {
        height: 30px !important;
        font-size: 12px !important;
    }

    .week-day {
        font-size: 11px !important;
    }

    .period-name {
        font-size: 12px !important;
    }

    .period-hours {
        font-size: 10px !important;
    }

    .modal-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .confirm-btn {
        width: 100% !important;
    }

    /* Loading overlay */
    .loading-container {
        padding: 25px 20px !important;
    }

    .loading-text {
        font-size: 14px !important;
    }
}

/* ---- VERY SMALL PHONES (max-width: 360px) ---- */
@media (max-width: 360px) {
    .otp-digit-field {
        width: 32px !important;
        height: 38px !important;
        font-size: 14px !important;
    }

    .tab {
        font-size: 0.62rem !important;
        padding: 0 5px !important;
    }

    .logo-main {
        font-size: 1.4rem !important;
    }

    .fare-card {
        max-width: 100% !important;
    }

    .cart-ticket-route {
        font-size: 12px !important;
    }

    .checkout-header-title h1,
    .checkout-header-title h2 {
        font-size: 16px !important;
    }

    .payment-main-title,
    .otp-main-title {
        font-size: 18px !important;
    }
}



