/* Aeronef Virtual Try-On widget - mengikuti gaya aeronef.id
   Ubah warna lewat variabel di bawah. */
.aeronef-tryon {
  --at-blue: #1e70ea;
  --at-blue-dark: #0b4fbf;
  --at-navy: #07295a;
  --at-sky: #5aa8f5;
  --at-text: #5f6b80;
  --at-line: #dfe6f1;
  --at-soft: #f3f7fd;
  --at-error: #c62828;
  --at-leaf: 20px 0;
  --at-leaf-lg: 56px 0;   /* bentuk daun seperti tombol aeronef.id: kiri-atas & kanan-bawah membulat */
  --at-font: "Plus Jakarta Sans", "Heebo", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --at-head: "Heebo", "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  font-family: var(--at-font);
  color: var(--at-text);
  font-size: 16px;
  line-height: 1.55;
  scroll-margin-top: 110px; /* jarak dari header situs saat dibuka lewat #tryonuniform */
}
.aeronef-tryon *, .aeronef-tryon *::before, .aeronef-tryon *::after { box-sizing: border-box; }
.aeronef-tryon button, .aeronef-tryon input { font-family: inherit; }

/* ---------- kartu & header */
.aeronef-tryon .at-card {
  position: relative;
  background: #fff;
  border-radius: var(--at-leaf-lg);
  box-shadow: 0 18px 50px rgba(7, 41, 90, .14);
  overflow: hidden;
}
.aeronef-tryon .at-hero {
  position: relative;
  padding: 32px 32px 26px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg, var(--at-blue-dark) 0%, var(--at-blue) 55%, var(--at-sky) 100%);
  border-radius: var(--at-leaf-lg);
  overflow: hidden;
}
.aeronef-tryon .at-hero::after { /* awan lembut */
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 140px;
  background: radial-gradient(closest-side, rgba(255,255,255,.35), rgba(255,255,255,0));
  border-radius: 50%;
}
.aeronef-tryon .at-plane {
  position: absolute; right: 26px; top: 22px; width: 64px; height: 64px; opacity: .9;
  transform: rotate(-12deg);
}
.aeronef-tryon .at-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px;
}
.aeronef-tryon .at-title {
  margin: 14px 0 6px; font-family: var(--at-head); font-weight: 800; font-size: clamp(26px, 4.4vw, 36px);
  line-height: 1.15; color: #fff; padding-right: 64px;
}
.aeronef-tryon .at-sub { margin: 0; max-width: 640px; color: rgba(255,255,255,.9); font-size: 15px; }

/* ---------- langkah (stepper bergaris, kaca buram) */
.aeronef-tryon .at-steps {
  display: flex; align-items: center; max-width: 780px; list-style: none; margin: 28px 0 0; padding: 14px 22px;
  position: relative; z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.28); border-radius: 24px 0;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 30px rgba(7,41,90,.18);
}
.aeronef-tryon .at-steps li {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; margin: 0; padding: 0;
  color: #fff; opacity: .62; transition: opacity .25s;
}
.aeronef-tryon .at-steps li:last-child { flex: 0 0 auto; }
.aeronef-tryon .at-steps li:not(:last-child)::after {
  content: ""; flex: 1 1 24px; min-width: 16px; height: 2px; margin: 0 6px 0 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 6px, transparent 6px 11px);
}
.aeronef-tryon .at-steps li.is-done::after { background: linear-gradient(90deg, #fff, rgba(255,255,255,.7)); }
.aeronef-tryon .at-steps li.is-active, .aeronef-tryon .at-steps li.is-done { opacity: 1; }
.aeronef-tryon .at-dot {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.7); color: #fff; font-family: var(--at-head); font-weight: 700; font-size: 15px;
  transition: all .25s;
}
.aeronef-tryon .at-dot svg { width: 16px; height: 16px; }
.aeronef-tryon .at-steps li.is-active .at-dot {
  background: #fff; color: var(--at-blue); border-color: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 8px 22px rgba(7,41,90,.35);
}
.aeronef-tryon .at-steps li.is-done .at-dot { background: rgba(255,255,255,.95); color: var(--at-blue); border-color: transparent; }
.aeronef-tryon .at-step-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.aeronef-tryon .at-step-text small { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.aeronef-tryon .at-step-text b { font-size: 15px; font-weight: 700; letter-spacing: .01em; }

/* ---------- isi */
.aeronef-tryon .at-body { padding: 32px 40px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.aeronef-tryon .at-col { min-width: 0; }
.aeronef-tryon .at-col > .at-section:first-child { margin-top: 0; }
.aeronef-tryon .at-section + .at-section { margin-top: 28px; }
.aeronef-tryon .at-label {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px;
  font-family: var(--at-head); font-size: 19px; font-weight: 700; color: var(--at-navy);
}
.aeronef-tryon .at-label small { font-family: var(--at-font); font-size: 13px; font-weight: 500; color: var(--at-text); }

.aeronef-tryon .at-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--at-soft); border-radius: 999px; }
.aeronef-tryon .at-tab {
  border: 0; background: transparent; padding: 8px 20px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--at-text);
}
.aeronef-tryon .at-tab.is-active { background: var(--at-navy); color: #fff; }

.aeronef-tryon .at-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.aeronef-tryon .at-grid > * { min-width: 0; }
.aeronef-tryon .at-uniform {
  position: relative; padding: 0; border: 2px solid var(--at-line); border-radius: var(--at-leaf); background: #fff;
  overflow: hidden; cursor: pointer; text-align: left; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.aeronef-tryon .at-uniform:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7,41,90,.12); }
.aeronef-tryon .at-uniform img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 940 / 1672; object-fit: cover; object-position: center; background: var(--at-soft); }
.aeronef-tryon .at-uniform span { display: block; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--at-navy); }
.aeronef-tryon .at-uniform.is-active { border-color: var(--at-blue); box-shadow: 0 0 0 4px rgba(30,112,234,.18); }
.aeronef-tryon .at-uniform .at-check {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--at-blue); color: #fff; display: none; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.aeronef-tryon .at-uniform.is-active .at-check { display: grid; }

/* sakelar hijab */
.aeronef-tryon .at-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; cursor: pointer; font-weight: 600; color: var(--at-navy); font-size: 14px; }
.aeronef-tryon .at-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aeronef-tryon .at-switch i { width: 42px; height: 24px; border-radius: 999px; background: #c9d3e2; position: relative; transition: background .15s; }
.aeronef-tryon .at-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.aeronef-tryon .at-switch input:checked + i { background: var(--at-blue); }
.aeronef-tryon .at-switch input:checked + i::after { transform: translateX(18px); }
.aeronef-tryon .at-switch input:focus-visible + i { outline: 2px solid var(--at-blue); outline-offset: 2px; }

.aeronef-tryon .at-input {
  width: 100%; padding: 12px 14px; border: 2px solid var(--at-line); border-radius: 12px; font-size: 15px; color: var(--at-navy);
}
.aeronef-tryon .at-input:focus { outline: none; border-color: var(--at-blue); }

/* unggah foto */
.aeronef-tryon .at-drop {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 18px; border: 2px dashed #b9c9e3; border-radius: var(--at-leaf);
  background: var(--at-soft); cursor: pointer; transition: border-color .15s, background .15s;
}
.aeronef-tryon .at-drop:hover, .aeronef-tryon .at-drop.is-over { border-color: var(--at-blue); background: #eaf2fe; }
.aeronef-tryon .at-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aeronef-tryon .at-drop-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--at-blue); box-shadow: 0 4px 12px rgba(7,41,90,.08); }
.aeronef-tryon .at-drop-text { min-width: 0; }
.aeronef-tryon .at-drop-text strong { display: block; color: var(--at-navy); font-size: 15px; }
.aeronef-tryon .at-drop-text small { font-size: 13px; }
.aeronef-tryon .at-drop-preview { flex: none; width: 76px; height: 96px; border-radius: 12px; object-fit: cover; display: none; }
.aeronef-tryon .at-drop.has-photo { border-style: solid; border-color: var(--at-blue); background: #fff; }
.aeronef-tryon .at-drop.has-photo .at-drop-icon { display: none; }
.aeronef-tryon .at-drop.has-photo .at-drop-preview { display: block; }

.aeronef-tryon .at-tips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.aeronef-tryon .at-tips li { font-size: 12px; font-weight: 600; color: var(--at-navy); background: var(--at-soft); padding: 6px 10px; border-radius: 999px; }
.aeronef-tryon .at-tips li::before { content: "\2713"; color: var(--at-blue); margin-right: 6px; }

.aeronef-tryon .at-consent { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; font-size: 13px; cursor: pointer; }
.aeronef-tryon .at-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--at-blue); flex: none; }

/* tombol */
.aeronef-tryon .at-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: var(--at-leaf); padding: 16px 30px; cursor: pointer; text-decoration: none;
  background: var(--at-blue); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(30,112,234,.3); transition: background .15s, transform .15s;
}
.aeronef-tryon .at-btn:hover { background: var(--at-blue-dark); color: #fff; transform: translateY(-1px); }
.aeronef-tryon .at-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.aeronef-tryon .at-btn-ghost { background: #fff; color: var(--at-navy); border: 2px solid var(--at-line); box-shadow: none; }
.aeronef-tryon .at-btn-ghost:hover { background: var(--at-soft); color: var(--at-navy); }
.aeronef-tryon .at-submit { width: 100%; margin-top: 22px; }
.aeronef-tryon .at-msg { color: var(--at-error); min-height: 1.4em; margin: 12px 0 0; font-size: 14px; font-weight: 600; }

/* ---------- proses (layar penuh, selalu di tengah layar) */
.at-loading {
  --at-blue: #1e70ea; --at-navy: #07295a; --at-text: #5f6b80;
  position: fixed; inset: 0; z-index: 2147483000; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center; box-sizing: border-box;
  font-family: "Plus Jakarta Sans", "Heebo", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--at-text); line-height: 1.55;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.at-loading.is-on { display: flex; animation: at-fade .25s ease-out; }
@keyframes at-fade { from { opacity: 0; } to { opacity: 1; } }
html.at-noscroll, html.at-noscroll body { overflow: hidden !important; }
.at-loading .at-flight { position: relative; width: 220px; max-width: 70vw; height: 70px; margin-bottom: 18px; }
.at-loading .at-flight::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #b9c9e3; }
.at-loading .at-flight svg { position: absolute; top: 50%; left: 0; width: 44px; height: 44px; margin-top: -22px; color: var(--at-blue); fill: var(--at-blue); animation: at-fly 2.6s ease-in-out infinite; }
@keyframes at-fly { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 44px); opacity: 0; } }
.at-loading h3 { margin: 0 0 6px; font-family: "Heebo", "Plus Jakarta Sans", Arial, sans-serif; font-weight: 800; color: var(--at-navy); font-size: 22px; }
.at-loading p { margin: 0; font-size: 14px; max-width: 420px; }
.at-loading .at-timer { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--at-blue); }

/* ---------- hasil */
.aeronef-tryon .at-result { scroll-margin-top: 90px; padding: 32px 40px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; text-align: center; }
.aeronef-tryon .at-badge { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--at-blue); background: #e8f1fe; padding: 5px 12px; border-radius: 999px; }
.aeronef-tryon .at-result h3 { margin: 0 0 4px; font-family: var(--at-head); color: var(--at-navy); font-size: 24px; }
.aeronef-tryon .at-result p { margin: 0 0 18px; font-size: 14px; }
.aeronef-tryon .at-out { display: block; width: 100%; max-width: 420px; margin: 0 auto; border-radius: 28px 0; box-shadow: 0 18px 40px rgba(7,41,90,.22); }
.aeronef-tryon .at-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---------- layar lebar: dua kolom */
@media (min-width: 900px) {
  .aeronef-tryon .at-hero { padding: 40px 48px 32px; }
  .aeronef-tryon .at-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; padding: 40px 48px 48px; }
  .aeronef-tryon .at-body > .at-col + .at-col { border-left: 1px solid var(--at-line); padding-left: 48px; }
  .aeronef-tryon .at-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .aeronef-tryon .at-result { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; padding: 40px 48px 48px; text-align: left; }
  .aeronef-tryon .at-result .at-actions { justify-content: flex-start; }
  .aeronef-tryon .at-result h3 { font-size: 32px; }
  .aeronef-tryon .at-result p { font-size: 16px; }
}

.aeronef-tryon [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .at-loading .at-flight svg { animation: none; left: calc(50% - 22px); }
}
@media (max-width: 560px) {
  .aeronef-tryon .at-steps { padding: 12px 14px; }
  .aeronef-tryon .at-steps li { gap: 8px; }
  .aeronef-tryon .at-steps li:not(.is-active) .at-step-text { display: none; }
  .aeronef-tryon .at-dot { width: 32px; height: 32px; font-size: 13px; }
  .aeronef-tryon { --at-leaf-lg: 32px 0; }
  .aeronef-tryon .at-hero { padding: 26px 20px 20px; }
  .aeronef-tryon .at-body, .aeronef-tryon .at-result { padding: 22px 18px 26px; }
  .aeronef-tryon { margin: 24px auto; }
  .aeronef-tryon .at-plane { width: 46px; height: 46px; right: 16px; top: 16px; }
  .aeronef-tryon .at-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .aeronef-tryon .at-title { padding-right: 44px; }
  .aeronef-tryon .at-drop { gap: 12px; padding: 14px; }
}
