/* Programarea în trei pași: un singur lucru de făcut pe ecran. Telefonul e primul, iar Sabin și butonul sunt ce se vede. Fără bara de
   contact și fără butonul din antet, ca nimic să nu concureze cu pasul următor. */
body:has(.td-fl) { --td-dock: 0px; }
body:has(.td-fl) :is(.td-dock, .td-topbar, .td-header-cta) { display: none; }
.td-fl { position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr; min-height: calc(100svh - var(--td-header)); overflow: hidden; background: #05090F; }
.td-fl-dark { position: relative; min-width: 0; padding: 16px var(--td-gutter) 0; }
.td-fl-title { margin: 0; color: #fff; font-size: clamp(31px, 9.2vw, 42px); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; transition: font-size 200ms ease; }
.td-fl-sabin { width: min(84vw, 340px); height: clamp(170px, calc(100svh - 470px), 400px); margin: 6px auto -34px; overflow: hidden; transition: height 240ms ease; }
.td-fl-sabin img { display: block; width: 100%; height: auto; }
.td-fl.is-later .td-fl-title { font-size: 22px; letter-spacing: -.03em; }
.td-fl.is-later .td-fl-sabin { width: min(46vw, 180px); height: 21svh; margin-bottom: -26px; }
.td-fl-card { position: relative; z-index: 1; min-width: 0; padding: 40px var(--td-gutter) 22px; background: #fff; clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%); scroll-margin-top: var(--td-header); }

.td-fl .td-form { gap: 12px; }
.td-fl-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.td-fl-bar li { height: 4px; border-radius: 2px; background: var(--td-line); transition: background var(--td-trans); }
.td-fl-bar li.is-on { background: var(--td-navy); }
.td-fl-step { display: grid; gap: 12px; outline: none; }
.td-fl .td-field label { color: var(--td-title); font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.td-fl .td-form input[type="tel"] { min-height: 58px; padding: 10px 16px; border: 2px solid var(--td-navy); border-radius: 12px; color: var(--td-title); font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.td-fl .td-form input[type="tel"]::placeholder { color: #9AA6B4; font-weight: 500; }
.td-fl-go { width: 100%; min-height: 58px; border-radius: 12px; font-size: 17px; font-weight: 800; }
.td-fl-legal { margin: 0; color: var(--td-text); font-size: 12px; line-height: 1.4; }
.td-fl-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.td-fl-h { margin: 0; color: var(--td-title); font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.td-fl .td-days { display: flex; gap: 6px; margin: 0 calc(-1 * var(--td-gutter)); padding: 2px var(--td-gutter); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.td-fl .td-days::-webkit-scrollbar { display: none; }
.td-fl .td-day { flex: none; position: relative; cursor: pointer; scroll-snap-align: start; }
.td-fl .td-day input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.td-fl .td-day span { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 70px; border: 1.5px solid var(--td-line); border-radius: 12px; background: #fff; color: var(--td-text); font-size: 12px; line-height: 1.2; transition: border-color var(--td-trans), background var(--td-trans); }
.td-fl .td-day small { font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.td-fl .td-day b { color: var(--td-title); font-size: 21px; font-weight: 800; }
.td-fl .td-day em { font-size: 11px; font-style: normal; }
.td-fl .td-day input:checked + span { border-color: var(--td-navy); background: var(--td-navy); color: #fff; }
.td-fl .td-day input:checked + span b { color: #fff; }
.td-fl .td-day input:focus-visible + span { outline: 2px solid var(--td-blue); outline-offset: 2px; }
.td-fl-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.td-fl-slot { min-height: 52px; border: 0; border-radius: 12px; background: var(--td-blue); color: #fff; font: 800 15.5px Montserrat, Arial, sans-serif; cursor: pointer; transition: background var(--td-trans); }
.td-fl-slot:hover { background: var(--td-blue-dark); }
.td-fl-unsure { display: grid; gap: 1px; min-height: 56px; padding: 8px 14px; border: 1.5px solid var(--td-line); border-radius: 12px; background: #fff; color: var(--td-title); font-family: Montserrat, Arial, sans-serif; text-align: left; cursor: pointer; transition: border-color var(--td-trans); }
.td-fl-unsure:hover { border-color: var(--td-navy); }
.td-fl-unsure b { font-size: 15px; font-weight: 800; }
.td-fl-unsure small { color: var(--td-text); font-size: 12.5px; }
.td-fl-where { margin: -6px 0 0; color: var(--td-text); font-size: 14px; font-weight: 600; }
.td-fl-note { margin: 0; color: var(--td-text); font-size: 13.5px; line-height: 1.4; }
.td-fl-slots.is-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.td-fl-slots.is-times .td-fl-slot { min-height: 44px; font-size: 14.5px; }
.td-fl.is-sending .td-fl-step { opacity: .6; pointer-events: none; }
.td-fl .td-form-done { padding: 18px; border-radius: 12px; outline: none; }
.td-form-done-title { display: block; color: var(--td-title); font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.td-fl .td-form-done-text { margin-top: 6px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.td-form-done-more { margin: 10px 0 0; font-size: 14px; line-height: 1.4; }
.td-form-done-more a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.td-fl-places { display: grid; gap: 6px; }
.td-fl-place { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 1px 10px; min-height: 62px; padding: 8px 14px; border: 1.5px solid var(--td-line); border-radius: 12px; background: #fff; color: var(--td-title); font-family: Montserrat, Arial, sans-serif; text-align: left; cursor: pointer; transition: border-color var(--td-trans), background var(--td-trans), color var(--td-trans); }
.td-fl-place b { font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.td-fl-place small { grid-row: 2; color: var(--td-text); font-size: 12.5px; line-height: 1.3; }
.td-fl-place svg { grid-column: 2; grid-row: 1 / span 2; width: 14px; height: 14px; color: var(--td-navy); }
.td-fl-place:hover { border-color: var(--td-navy); background: var(--td-navy); color: #fff; }
.td-fl-place:hover small, .td-fl-place:hover svg { color: #fff; }
.td-fl-place:disabled { opacity: .6; }
.td-fl-back { display: inline-flex; align-items: center; justify-self: start; gap: 4px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--td-text); font: 600 13.5px Montserrat, Arial, sans-serif; cursor: pointer; }
.td-fl-back svg { width: 12px; height: 12px; }
.td-fl-back:hover { color: var(--td-title); }
.td-fl :is(.td-fl-slot, .td-fl-unsure, .td-fl-place, .td-fl-back, .td-fl-go):focus-visible { outline: 2px solid var(--td-blue); outline-offset: 2px; }

@media (min-width: 1000px) {
  .td-fl { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); grid-template-rows: 1fr; background: #fff; }
  .td-fl::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 52%; background: #05090F; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
  .td-fl-dark { position: static; padding: clamp(28px, 4vw, 56px) 0 0 max(var(--td-gutter), calc((100vw - 1190px) / 2)); }
  .td-fl-title, .td-fl.is-later .td-fl-title { max-width: 7.5em; font-size: clamp(40px, 4.2vw, 62px); letter-spacing: -.045em; }
  .td-fl-sabin, .td-fl.is-later .td-fl-sabin { position: absolute; bottom: 0; left: calc(52% - clamp(310px, 26vw, 395px)); width: clamp(370px, 33vw, 480px); height: auto; margin: 0; overflow: visible; filter: drop-shadow(0 18px 44px rgba(0, 0, 0, .45)); transition: none; }
  .td-fl-card { align-self: center; justify-self: center; width: min(100%, 470px); padding: 32px 24px; margin-left: clamp(40px, 8vw, 130px); background: none; clip-path: none; }
  .td-fl .td-days { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
  .td-fl .td-day span { width: 56px; height: 62px; }
}
