.atm-bf{--navy:#1B1F8A;--orange:#F7941D;--line:rgba(27,31,138,.16);--field:#FBFBFF;--label:#666;--hero:min(34.4vw,560px);font-family:'Source Sans 3','Source Sans Pro',Arial,sans-serif;position:relative}
.atm-bf *{box-sizing:border-box}
.atm-bf__hero{height:var(--hero);overflow:hidden;background:#9cc3e6}
.atm-bf__hero img{width:100%;height:100%;object-fit:cover;object-position:100% 0;display:block}
.atm-bf__box{position:relative;z-index:5;max-width:1140px;margin:calc(var(--hero) * -.5) auto 30px;border-radius:8px;background:#fff;box-shadow:0 10px 30px rgba(15,18,88,.16)}

/* tabs */
.atm-bf__tabs{display:flex;background:rgba(27,31,138,.94);border-radius:8px 8px 0 0;box-shadow:0 1px 1px rgba(133,133,133,.5)}
.atm-bf .atm-bf__tab{display:flex;align-items:center;gap:10px;height:41px;padding:10px 30px 10px 22px;border:0;border-radius:0;background:transparent;color:#fff;font:600 15px/1 'Source Sans 3','Source Sans Pro',Arial,sans-serif;text-transform:uppercase;text-decoration:none;cursor:pointer;box-shadow:none}
.atm-bf .atm-bf__tab svg{width:24px;height:24px;fill:currentColor;flex:0 0 auto}
.atm-bf .atm-bf__tabico--plane{transform:rotate(45deg)}
.atm-bf .atm-bf__tab.is-active{background:#fff;color:var(--navy);border-radius:8px 0 0 0}
.atm-bf .atm-bf__tab.is-active svg{fill:var(--orange)}
.atm-bf .atm-bf__tab--wci{margin-left:auto;padding:10px 15px}
.atm-bf .atm-bf__tab--wci:hover{background:rgba(255,255,255,.12);color:#fff}

.atm-bf__form{padding:15px 15px 20px}

/* trip type + checkboxes */
.atm-bf__opts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 0;margin-bottom:10px}
.atm-bf__radio,.atm-bf__check{position:relative;display:inline-flex;align-items:center;cursor:pointer;user-select:none;margin:0}
.atm-bf__radio{padding:6px 15px 6px 0;font-size:15px;font-weight:500;color:#2C2C2C}
.atm-bf__radio input,.atm-bf__check input{position:absolute;opacity:0;width:1px;height:1px}
.atm-bf__radio i{width:19px;height:19px;border-radius:50%;border:1px solid #bfc2d8;background:#fff;margin-right:6px;position:relative;flex:0 0 auto}
.atm-bf__radio input:checked+i{border-color:var(--orange)}
.atm-bf__radio input:checked+i::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--orange)}
.atm-bf__checks{display:inline-flex;flex-wrap:wrap;gap:8px 14px;margin-left:44px}
.atm-bf__check{padding:8px 15px 8px 10px;border-radius:5px;background:var(--field);font-size:14px;font-weight:600;color:#666}
.atm-bf__check i{width:20px;height:20px;border:1px solid #bfc2d8;border-radius:3px;background:#fff;margin-right:10px;position:relative;flex:0 0 auto}
.atm-bf__check input:checked+i{background:var(--orange);border-color:var(--orange)}
.atm-bf__check input:checked+i::after{content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.atm-bf__radio input:focus-visible+i,.atm-bf__check input:focus-visible+i{outline:2px solid var(--navy);outline-offset:2px}

/* rows */
.atm-bf__row{display:grid;gap:0 11px;align-items:end}
.atm-bf__row--1{grid-template-columns:3fr 3fr 1.9fr 1.8fr;position:relative}
.atm-bf__row--2{grid-template-columns:repeat(4,1fr) 1.7fr 1.9fr 1.8fr}
.atm-bf__f{min-width:0;margin-bottom:10px}
.atm-bf__f label{display:block;margin:0 0 5px;font-size:14px;font-weight:500;color:var(--label);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.atm-bf__in{position:relative}
.atm-bf__ico{position:absolute;left:9px;top:50%;width:21px;height:21px;transform:translateY(-50%);fill:var(--orange);opacity:.85;pointer-events:none;z-index:1}
.atm-bf .atm-bf__in input,.atm-bf .atm-bf__in select{width:100%;height:45px;margin:0;padding:6px 12px 6px 35px;border:1px solid var(--line);border-radius:8px;background:var(--field);color:#333;font:400 15px 'Source Sans 3','Source Sans Pro',Arial,sans-serif;box-shadow:none;outline:0;transition:border-color .15s}
.atm-bf .atm-bf__in select{padding:6px 30px 6px 10px;-webkit-appearance:none;appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1F8A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:15px}
.atm-bf .atm-bf__in input:focus,.atm-bf .atm-bf__in select:focus{border-color:var(--navy)}
.atm-bf .atm-bf__in input.atm-bf__date{cursor:pointer;caret-color:transparent}

/* calendar – Brightsun-style month grid */
.atm-bf__dp{position:absolute;top:calc(100% + 4px);left:0;z-index:40;width:350px;max-width:calc(100vw - 20px);padding:0 0 6px;background:#fff;box-shadow:0 6px 22px rgba(0,0,0,.18);font-family:'Source Sans 3','Source Sans Pro',Arial,sans-serif;user-select:none}
.atm-bf__dp.is-right{left:auto;right:0}
.atm-bf__dph{display:flex;align-items:center;justify-content:space-between;height:54px;padding:0 8px}
.atm-bf__dph span{font-size:17px;font-weight:500;color:#2C2C2C}
.atm-bf .atm-bf__dpnav{width:36px;height:36px;padding:0;border:0;border-radius:4px;background:transparent;color:#2C2C2C;font:400 24px/1 Arial,sans-serif;cursor:pointer;box-shadow:none}
.atm-bf .atm-bf__dpnav:hover{background:#f3f3f8;color:var(--navy)}
.atm-bf .atm-bf__dpnav[disabled]{visibility:hidden}
.atm-bf .atm-bf__dp table{width:100%;margin:0;border-collapse:collapse;table-layout:fixed;border:0}
.atm-bf .atm-bf__dp th{height:40px;padding:0;line-height:1;vertical-align:middle;border:0;background:#fff;font-size:14px;font-weight:600;color:#2C2C2C;text-align:center}
.atm-bf .atm-bf__dp td{height:40px;padding:0;line-height:1;vertical-align:middle;border:1px solid #eee;background:#fff;font-size:15px;color:#2C2C2C;text-align:center}
.atm-bf .atm-bf__dp tr td:first-child{border-left:0}.atm-bf .atm-bf__dp tr td:last-child{border-right:0}
.atm-bf .atm-bf__dp td.is-off{color:#c9c9c9}
.atm-bf .atm-bf__dp td button{display:block;width:100%;height:39px;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;cursor:pointer;box-shadow:none}
.atm-bf .atm-bf__dp td button:hover{background:#fff1df;color:#2C2C2C}
.atm-bf .atm-bf__dp td.is-range{background:#eef0fb}
.atm-bf .atm-bf__dp td.is-start{background:#d9dcf5}
.atm-bf .atm-bf__dp td.is-sel,.atm-bf .atm-bf__dp td.is-sel button,.atm-bf .atm-bf__dp td.is-sel button:hover{background:var(--navy);color:#fff}
.atm-bf .atm-bf__in input.is-bad{border-color:#E31E24}

/* swap */
.atm-bf .atm-bf__swap{position:absolute;z-index:2;left:calc((100% - 33px) * 3 / 9.7 - 9.5px);bottom:17px;width:30px;height:30px;padding:0;border:1px solid #e1e2f0;border-radius:50%;background:#fff;color:var(--navy);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:none}
.atm-bf .atm-bf__swap svg{width:16px;height:16px;fill:currentColor}
.atm-bf .atm-bf__swap:hover{background:var(--navy);color:#fff}

/* autocomplete */
.atm-bf__ac{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;max-height:300px;overflow-y:auto;margin:0;padding:6px 0;list-style:none;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 28px rgba(15,18,88,.15)}
.atm-bf__ac li{padding:9px 14px;font-size:14px;color:#333;cursor:pointer;line-height:1.35}
.atm-bf__ac li b{color:var(--navy)}
.atm-bf__ac li em{font-style:normal;color:#888;font-size:12.5px}
.atm-bf__ac .is-empty{cursor:default;color:#888}
.atm-bf__ac li[aria-selected=true],.atm-bf__ac li:hover{background:#fff4e6}

/* button */
.atm-bf__f--btn{display:flex}
.atm-bf .atm-bf__go{width:100%;height:47px;padding:0 10px;border:1px solid var(--orange);border-radius:8px;background:var(--orange);color:#fff;font:700 15px 'Source Sans 3','Source Sans Pro',Arial,sans-serif;text-transform:uppercase;cursor:pointer;box-shadow:none;transition:background .2s}
.atm-bf .atm-bf__go:hover{background:#e7830c}
.atm-bf .atm-bf__go[disabled]{opacity:.7;cursor:wait}
.atm-bf__msg{margin:6px 0 0;padding:10px 14px;border-radius:8px;background:#fff1f1;color:#B5121B;font-size:14px;font-weight:500}

.atm-bf.is-oneway .atm-bf__f--ret{visibility:hidden}

/* tablet */
@media (max-width:1180px){
 .atm-bf__box{margin:calc(var(--hero) * -.5) 16px 26px}
 .atm-bf__row--2{grid-template-columns:repeat(4,1fr)}
 .atm-bf__f--air{grid-column:span 2}
 .atm-bf__f--btn{grid-column:span 2}
 .atm-bf__checks{margin-left:20px}
}
@media (max-width:1024px){
 .atm-bf__row--1{grid-template-columns:1fr 1fr}
 .atm-bf .atm-bf__swap{left:calc(50% - 15px);top:32px;bottom:auto}
}
/* mobile – mirrors Brightsun's phone layout */
@media (max-width:767px){
 .atm-bf{--hero:290px}
 .atm-bf__hero img{object-position:70% 0}
 .atm-bf__box{margin:-150px 10px 20px}
 .atm-bf__tabs{border-radius:8px 8px 0 0;overflow:hidden}
 .atm-bf .atm-bf__tab{flex:1;flex-direction:column;justify-content:center;gap:6px;height:auto;padding:12px 6px;font-size:12px;border-radius:0}
 .atm-bf .atm-bf__tab svg{width:32px;height:32px}
 .atm-bf .atm-bf__tab.is-active{border-radius:0}
 .atm-bf .atm-bf__tab--wci{margin-left:0;border-left:1px solid rgba(255,255,255,.25)}
 .atm-bf__form{padding:12px 12px 16px}
 .atm-bf__opts{gap:6px 0}
 .atm-bf__radio{font-size:14px;padding:4px 10px 4px 0}
 .atm-bf__checks{margin-left:0;width:100%;gap:8px;flex-wrap:nowrap}
 .atm-bf__check{flex:1 1 0;min-width:0;white-space:nowrap;font-size:12.5px;padding:8px 8px}
 .atm-bf__check i{width:18px;height:18px;margin-right:7px}
 .atm-bf__check input:checked+i::after{left:5px;top:1px}
 .atm-bf__row--1,.atm-bf__row--2{grid-template-columns:1fr 1fr;gap:0 10px}
 .atm-bf .atm-bf__swap{left:calc(50% - 15px);top:32px;bottom:auto}
 .atm-bf .atm-bf__in input{padding-left:33px;font-size:14px}
 .atm-bf .atm-bf__in select{font-size:14px}
 .atm-bf__ico{left:8px;width:19px;height:19px}
 .atm-bf__f--air,.atm-bf__f--btn{grid-column:auto}
 .atm-bf__f--btn{grid-column:1/-1;justify-content:center}
 .atm-bf .atm-bf__go{width:auto;min-width:150px;padding:0 22px}
}

/* searching overlay (Brightsun-style) */
.atm-bfl{position:fixed;inset:0;z-index:100050;display:grid;place-items:center;padding:16px;background:rgba(15,18,88,.55);backdrop-filter:blur(2px);font-family:'Source Sans 3','Source Sans Pro',Arial,sans-serif;animation:atmBfFade .2s ease}
.atm-bfl__card{width:min(520px,100%);overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 24px 60px rgba(0,0,0,.35);text-align:center}
.atm-bfl__top{padding:22px 20px 18px;background:#1B1F8A;color:#fff;border-bottom:4px solid #F7941D}
.atm-bfl__top h3{margin:0;font-size:21px;font-weight:700;color:#fff}
.atm-bfl__top p{margin:4px 0 0;font-size:14px;color:#C5C8EC}
.atm-bfl__route{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:22px 20px 6px}
.atm-bfl__route b{display:block;font-size:30px;line-height:1;color:#1B1F8A;letter-spacing:.5px}
.atm-bfl__route small{display:block;margin-top:5px;font-size:13px;color:#555}
.atm-bfl__track{position:relative;width:110px;height:24px;border-top:2px dashed rgba(27,31,138,.3);margin-top:12px}
.atm-bfl__track svg{position:absolute;top:-13px;left:0;width:24px;height:24px;fill:#F7941D;transform:rotate(90deg);animation:atmBfFly 1.6s ease-in-out infinite}
.atm-bfl__dates{padding:6px 20px 0;font-size:14px;color:#333}
.atm-bfl__bar{height:5px;margin:18px 24px 22px;border-radius:9px;background:#eef0fb;overflow:hidden}
.atm-bfl__bar i{display:block;width:40%;height:100%;border-radius:9px;background:linear-gradient(90deg,#F7941D,#1B1F8A);animation:atmBfBar 1.2s ease-in-out infinite}
@keyframes atmBfFly{0%{left:0}100%{left:calc(100% - 24px)}}
@keyframes atmBfBar{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
@keyframes atmBfFade{from{opacity:0}to{opacity:1}}
@media (max-width:480px){.atm-bfl__route b{font-size:24px}.atm-bfl__track{width:64px}}
