/* ==========================================================
   CONTACT — UI 3D-ish, simplist: forme extrudate, card înclinabil
   ========================================================== */

.contact-page {
  --depth: 8px;
  background:
    radial-gradient(55% 45% at 100% 0%, rgba(255, 90, 31, .26), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(228, 16, 30, .14), transparent 70%),
    var(--cream);
}

/* ---------- Forme 3D plutitoare în fundal ---------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; perspective: 900px; }
.shape { position: absolute; display: block; }
.shape--slice {
  top: 12%; right: -40px; width: 180px; height: 180px; border-radius: 50%;
  background:
    radial-gradient(circle, #fff3ea 0 8%, transparent 8.5%),
    repeating-conic-gradient(#ff7a2e 0 34deg, #fff0e2 34deg 38deg);
  box-shadow: 0 0 0 9px #fff0e2, 0 0 0 15px #ffa25c, 14px 22px 0 15px rgba(232, 54, 26, .25);
  transform: rotateX(48deg) rotateZ(20deg);
  animation: slice 18s ease-in-out infinite alternate;
}
@keyframes slice { to { transform: rotateX(30deg) rotateZ(80deg) translateY(30px); } }
.shape--cube {
  top: 58%; left: -20px; width: 110px; height: 110px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .3));
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 10px 12px 0 rgba(26, 16, 20, .08), inset 0 0 30px rgba(255, 255, 255, .7);
  transform: rotateX(30deg) rotateY(-28deg) rotateZ(14deg);
  animation: cube 12s ease-in-out infinite alternate;
}
.shape--cube-2 { top: 82%; left: 78%; width: 70px; height: 70px; border-radius: 16px; animation-delay: -5s; }
@keyframes cube { to { transform: rotateX(10deg) rotateY(20deg) rotateZ(-10deg) translateY(-24px); } }
.shape--ball {
  top: 34%; left: 52%; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffd9c4, var(--spritz) 55%, #b8280f);
  box-shadow: 6px 10px 0 rgba(26, 16, 20, .1);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-20px); } }
@media (max-width: 979px) { .shape--slice { opacity: .45; } }

/* ---------- Layout ---------- */
.contact { position: relative; z-index: 1; display: grid; gap: clamp(28px, 5vw, 48px); padding: clamp(40px, 7vw, 88px) 0 48px; }
@media (min-width: 980px) {
  .contact { grid-template-columns: 1fr 1fr; align-items: start; column-gap: clamp(32px, 5vw, 72px); }
  .contact__intro { grid-row: span 2; position: sticky; top: 40px; }
  .map { grid-column: 1 / -1; }
}

.contact__title { margin: 0; font-family: var(--font-bubble); font-weight: 400; font-size: clamp(56px, 10vw, 120px); line-height: .9; letter-spacing: -.01em; }
.contact__title span {
  color: var(--spritz);
  text-shadow: 1px 1px 0 #c63d12, 2px 2px 0 #c63d12, 3px 3px 0 #c63d12, 4px 4px 0 #a5300c, 5px 5px 0 #a5300c, 6px 6px 0 var(--ink), 10px 14px 18px rgba(26, 16, 20, .2);
}

/* ---------- Card „All access” care se înclină ---------- */
.pass-wrap { margin-top: 36px; perspective: 1000px; }
.pass {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; overflow: hidden;
  max-width: 440px; padding: 22px;
  border: 2px solid var(--ink); border-radius: 26px;
  color: var(--cream);
  background: linear-gradient(150deg, #2a1a20 0%, #1a1014 60%, #3a1410 100%);
  box-shadow: 0 var(--depth) 0 var(--spritz), 0 calc(var(--depth) + 2px) 0 var(--ink), 0 30px 50px rgba(26, 16, 20, .3);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(-3deg);
  transform-style: preserve-3d;
  transition: transform 300ms var(--ease-out);
  will-change: transform;
}
.pass:hover { transition-duration: 80ms; }
.pass__shine {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: screen;
  background: radial-gradient(40% 50% at var(--gx) var(--gy), rgba(255, 180, 140, .35), transparent 70%),
              linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .08) 45%, transparent 60%);
}
.pass__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; transform: translateZ(30px); }
.pass__top img { width: 150px; }
.pass__badge { padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--spritz); box-shadow: 0 3px 0 #a5300c; }
.pass__rows { display: grid; gap: 14px; margin: 26px 0 0; transform: translateZ(20px); }
.pass__rows dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.pass__rows dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; line-height: 1.35; }
.pass__rows a { font-family: var(--font-bubble); font-weight: 400; font-size: 30px; text-decoration: none; color: var(--spritz); }
.pass__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 16px; border-top: 2px dashed rgba(253, 240, 231, .25); font-size: 12px; font-weight: 700; letter-spacing: .08em; transform: translateZ(10px); }
.pass__barcode { width: 110px; height: 30px; background: repeating-linear-gradient(90deg, var(--cream) 0 2px, transparent 2px 4px, var(--cream) 4px 7px, transparent 7px 9px, var(--cream) 9px 10px, transparent 10px 13px); opacity: .85; }

/* ---------- Tile-uri extrudate ---------- */
/* Desktop/tabletă: butoane compacte, iconiță + text pe aceeași linie */
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tile {
  --tile: #fff; --tile-depth: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 2px solid var(--ink); border-radius: 18px;
  color: var(--ink); background: var(--tile);
  text-decoration: none;
  box-shadow: 0 6px 0 var(--tile-depth);
  transform: translateY(0);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--tile-depth); }
.tile:active { transform: translateY(6px); box-shadow: 0 0 0 var(--tile-depth); }
.tile__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.tile__icon svg { width: 20px; height: 20px; }
.tile__label { font-family: var(--font-bubble); font-size: 18px; line-height: 1; }
.tile--call .tile__icon { background: var(--spritz); }
.tile--wa .tile__icon { background: #1fae54; }
.tile--map .tile__icon { background: var(--red); }

/* Telefon: trei pătrate egale, conținut centrat */
@media (max-width: 599px) {
  .contact__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 104px)); justify-content: center; gap: 12px; }
  .tile { aspect-ratio: 1; flex-direction: column; justify-content: center; gap: 8px; padding: 10px; }
  .tile__label { font-size: 15px; text-align: center; }
}

/* ---------- Panou formular ---------- */
.panel {
  padding: clamp(22px, 4vw, 36px);
  border: 2px solid var(--ink); border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 0 var(--ink), 0 30px 60px rgba(26, 16, 20, .14);
}
.panel__title { margin: 0 0 18px; font-family: var(--font-bubble); font-weight: 400; font-size: clamp(32px, 5vw, 48px); line-height: 1; }

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; }
.field label, .chips legend { font-size: 13px; font-weight: 700; }
.field label small { font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--ink); border-radius: 16px;
  color: var(--ink); background: var(--cream);
  font: inherit; font-size: 16px;
  box-shadow: inset 0 4px 0 rgba(26, 16, 20, .08);
  transition: box-shadow 160ms var(--ease-out), background 160ms;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 4px 0 rgba(26, 16, 20, .04), 0 0 0 4px rgba(255, 90, 31, .35); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.field input::placeholder, .field textarea::placeholder { color: #a8958c; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.chips legend { margin-bottom: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 10px 16px;
  border: 2px solid var(--ink); border-radius: 14px;
  font-weight: 600; font-size: 14px;
  background: var(--cream);
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out), background 160ms;
}
.chip input:checked + span { color: #fff; background: var(--spritz); transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--spritz); outline-offset: 3px; }

.stepper { display: inline-flex; align-items: stretch; width: fit-content; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 0 var(--ink); background: var(--cream); }
.stepper button { width: 52px; border: 0; background: transparent; font-family: var(--font-bubble); font-size: 24px; cursor: pointer; }
.stepper button:hover { background: rgba(255, 90, 31, .15); }
.stepper button:active { background: rgba(255, 90, 31, .3); }
.stepper input { width: 64px; padding: 10px 0; border: 0; border-inline: 2px solid var(--ink); border-radius: 0; text-align: center; font-family: var(--font-bubble); font-size: 22px; background: #fff; box-shadow: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.form__submit { display: grid; gap: 12px; margin-top: 6px; }
.btn--big { min-height: 60px; font-size: 16px; width: 100%; }
.form__status { margin: 0; font-weight: 600; color: #1d7a3f; }
.form__status:empty { display: none; }

/* ---------- Hartă într-un cadru 3D ---------- */
.map { perspective: 1400px; }
.map__frame {
  overflow: hidden;
  border: 2px solid var(--ink); border-radius: 28px;
  box-shadow: 0 10px 0 var(--ink), 0 40px 60px rgba(26, 16, 20, .18);
  transform: rotateX(8deg);
  transform-origin: bottom;
  transition: transform 500ms var(--ease-out);
}
.map__frame:hover { transform: rotateX(0); }
.map iframe { display: block; width: 100%; height: clamp(280px, 40vw, 420px); border: 0; filter: saturate(.85) sepia(.12); }
