/* Executive Edge: AI transformation preview (Results page only) */
.tf [hidden] { display: none !important; }

.tf-form { display: grid; gap: clamp(28px, 5vw, 56px); }
@media (min-width: 860px) { .tf-form { grid-template-columns: 5fr 6fr; align-items: start; } }

/* Photo picker */
.tf-drop {
  position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; max-height: 640px; width: 100%;
  background: var(--charcoal); border: 1px dashed var(--rule); border-radius: var(--radius);
  cursor: pointer; overflow: hidden; transition: border-color .25s var(--ease);
}
@media (max-width: 859px) { .tf-drop { aspect-ratio: auto; height: min(56vh, 440px); } }
.tf-drop:hover, .tf-drop:focus-within { border-color: var(--gold); }
.tf-drop__empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 24px; color: var(--stone); }
.tf-drop__empty svg { color: var(--gold); }
.tf-drop__empty strong { color: var(--ivory); font-weight: 600; }
.tf-drop__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--black); }
.has-photo .tf-drop { border-style: solid; border-color: var(--line); }
.tf-tips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--stone); }
.tf-tips li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--gold); vertical-align: middle; }

/* Options */
.tf-form__opts { display: grid; gap: 26px; }
.tf-choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tf-choice legend { font: 500 .72rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; padding: 0; }
.tf-choice label { position: relative; }
.tf-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tf-choice span {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 10px; text-align: center;
  background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius);
  font: 500 .9rem/1.2 var(--body); transition: border-color .2s var(--ease), color .2s var(--ease);
}
.tf-choice input:checked + span { border-color: var(--gold); color: var(--gold); }
.tf-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.tf-consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .88rem; color: var(--stone); cursor: pointer; }
.tf-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.tf-consent a { color: var(--gold); }
.tf-msg { margin: 0; color: #d9847d; font-weight: 500; }
.tf-go { width: 100%; }
@media (min-width: 860px) { .tf-go { width: auto; justify-self: start; } }

/* Waiting */
.tf-wait { max-width: 560px; margin: clamp(24px, 6vw, 72px) auto; text-align: center; }
.tf-wait__bar { height: 2px; background: var(--line); overflow: hidden; }
.tf-wait__bar span { display: block; height: 100%; width: 0; background: var(--gold); }
.tf-wait.is-running .tf-wait__bar span { animation: tf-fill 38s cubic-bezier(.1, .6, .3, 1) forwards; }
@keyframes tf-fill { to { width: 94%; } }
.tf-wait__text { margin-top: 18px; color: var(--stone); }
@media (prefers-reduced-motion: reduce) { .tf-wait.is-running .tf-wait__bar span { animation: none; width: 60%; } }

/* Result */
.tf-result { display: grid; gap: clamp(28px, 5vw, 56px); }
@media (min-width: 860px) { .tf-result { grid-template-columns: 6fr 5fr; align-items: center; } }
.tf-result__text h2 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); }
.tf-again { background: none; border: 0; padding: 0 0 2px; color: var(--stone); cursor: pointer; font-size: .9rem; }
.tf-note { font-size: .8rem; margin-top: 1.2em; }

.tf-compare { --pos: 50%; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--charcoal); user-select: none; touch-action: pan-y; }
.tf-compare__after { width: 100%; height: auto; }
.tf-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.tf-compare__before img { width: 100%; height: 100%; object-fit: cover; }
.tf-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.tf-compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23C0A264' stroke-width='2'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center no-repeat;
  border: 1px solid var(--gold);
}
.tf-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.tf-compare__range:focus-visible ~ .tf-compare__handle::after, .tf-compare:focus-within .tf-compare__handle::after { box-shadow: 0 0 0 3px rgba(192, 162, 100, .4); }
.tf-tag { position: absolute; top: 14px; padding: 7px 12px; background: rgba(11, 11, 11, .78); color: var(--gold); font: 600 .68rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; pointer-events: none; }
.tf-tag--before { left: 14px; }
.tf-tag--after { right: 14px; }

/* On the Results page: the tool sits between the page head and the results grid */
.tf-section { border-bottom: 1px solid var(--line); padding-bottom: clamp(48px, 7vw, 88px); scroll-margin-top: 24px; }
.tf-intro { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.tf-intro h2 { font-size: clamp(1.6rem, 4.6vw, 3rem); }
/* Keep the sticky booking bar from covering the form on phones */
.tf-in-view .sticky-apply { transform: translateY(110%) !important; }
