/* ==========================================================================
   AARYAV TECH — contact.css
   Contact page: hero + a device-shaped form (laptop on desktop,
   Android phone on small screens) built from ONE form + CSS chrome.
   ========================================================================== */

/* ---------- Hero ---------- */
.contact-hero {
  padding-top: calc(var(--space-7) + 40px);
  padding-bottom: var(--space-4);
  text-align: center;
}

.contact-hero .container {
  max-width: 720px;
}

.contact-hero .lede {
  margin: 0 auto;
}

.contact-hero-strip {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.contact-hero-strip .strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.contact-hero-strip .strip-item svg {
  width: 18px;
  height: 18px;
  color: var(--coral);
  flex-shrink: 0;
}

/* ---------- Device section ---------- */
.contact-device-section {
  padding-top: var(--space-3);
  padding-bottom: var(--space-8);
}

/* Positioning context for floating banners */
.device-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Floating Banner base ---- */
.device-float {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow:
    0 8px 32px rgba(232, 80, 43, 0.14),
    0 2px 8px rgba(32, 26, 23, 0.08);
  border: 1px solid var(--border);
  white-space: nowrap;
  /* Entrance animation */
  opacity: 0;
  transform: translateY(10px);
  animation: df-float-in 0.6s var(--ease) forwards;
}

@keyframes df-float-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Banner 1: Scroll hint — bottom-left of device ---- */
.device-float--scroll {
  bottom: 56px;      /* sit above the laptop base */
  left: -20px;
  animation-delay: 0.4s;
}

/* Bouncing arrow icon on scroll banner */
.device-float--scroll .df-icon svg {
  animation: df-bounce 1.4s ease-in-out infinite;
}

@keyframes df-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ---- Banner 2: Reply promise — top-right of device ---- */
.device-float--reply {
  top: 40px;
  right: -20px;
  animation-delay: 0.7s;
}

/* ---- Icon circles ---- */
.df-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.df-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--deep);
}

.df-icon--green {
  background: #d4f5e4;
}

.df-icon--green svg {
  stroke: #1f8a55;
}

/* ---- Text inside banner ---- */
.df-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.df-text b {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 700;
}

.df-text span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 2px;
}

/* ---- Hide banners in phone mode ---- */
@media (max-width: 640px) {
  .device-float {
    display: none;
  }
}

/* ---- Floating Action Buttons: WhatsApp + Call, opposite the scroll banner ---- */
.device-actions-float {
  position: absolute;
  z-index: 10;
  bottom: 56px;
  right: -20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: df-float-in 0.6s var(--ease) forwards;
  animation-delay: 0.55s;
}

.device-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px 9px 9px;
  box-shadow:
    0 8px 32px rgba(232, 80, 43, 0.14),
    0 2px 8px rgba(32, 26, 23, 0.08);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.device-action-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px rgba(232, 80, 43, 0.2),
    0 4px 10px rgba(32, 26, 23, 0.1);
}

.device-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.device-action-icon svg {
  width: 16px;
  height: 16px;
}

.device-action-btn--whatsapp .device-action-icon {
  background: #25D366;
}

.device-action-btn--call .device-action-icon {
  background: var(--coral);
}

.device-action-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---- Phone mode: flow below the device, side by side, never overlapping the frame ---- */
@media (max-width: 640px) {
  .device-actions-float {
    position: static;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .device-action-btn {
    padding: 9px 16px 9px 9px;
  }
}

@media (max-width: 360px) {
  .device-actions-float {
    gap: 10px;
  }

  .device-action-btn {
    padding: 10px;
    border-radius: 50%;
  }

  .device-action-label {
    display: none;
  }
}


.device-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* Ambient glow behind the device */
.device-wrap::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  max-width: 90vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 69, 0.16), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  transform: translateY(-40px);
}

/* ---------- The device frame (default = LAPTOP) ---------- */
.device-frame {
  position: relative;
  width: 100%;
  max-width: 1060px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, var(--ink) 0%, #2c2320 100%);
  border-radius: 28px;
  padding: 28px 28px 44px;
  box-shadow: var(--shadow-card-hover), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: border-radius .5s var(--ease), aspect-ratio .5s var(--ease), padding .5s var(--ease);
}

/* webcam dot */
.device-cam {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4A413C;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.device-cam::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--coral-2);
  opacity: 0.65;
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Laptop base / stand */
.device-base {
  width: 84%;
  max-width: 900px;
  height: 22px;
  margin-top: -4px;
  background: linear-gradient(180deg, #241b18 0%, #17110f 100%);
  border-radius: 0 0 14px 14px;
  position: relative;
  box-shadow: 0 18px 30px rgba(32, 26, 23, 0.28);
}

.device-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: rgba(255, 255, 255, 0.08);
}

/* Phone-only chrome — hidden while in laptop mode */
.device-notch,
.device-home,
.device-speaker {
  display: none;
}

/* ---------- Scrollable content inside the "screen" ---------- */
.device-content {
  height: 100%;
  overflow-y: auto;
  padding: var(--space-5) var(--space-6) var(--space-4);
  -webkit-overflow-scrolling: touch;
}


.device-content::-webkit-scrollbar {
  width: 6px;
}

.device-content::-webkit-scrollbar-thumb {
  background: var(--coral-soft);
  border-radius: 999px;
}

.device-content h3 {
  margin-bottom: 4px;
}

.device-content .device-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: var(--space-3);
  display: block;
}

/* ---------- Form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate);
  opacity: 0.7;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--coral);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(255, 107, 69, 0.12);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #E8502B;
}

.field-error {
  font-size: 0.74rem;
  color: var(--deep);
  min-height: 1em;
}

/* honeypot — visually hidden, still in the tab order excluded */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

.contact-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-align: center;
}

.form-status.is-success {
  color: #1f8a55;
}

.form-status.is-error {
  color: var(--deep);
}

/* ---------- PHONE MODE (small screens) ---------- */
@media (max-width: 640px) {
  .device-frame {
    aspect-ratio: auto;
    min-height: 640px;
    width: 92%;
    max-width: 340px;
    border-radius: 40px;
    padding: 16px 14px 26px;
    box-shadow: var(--shadow-card-hover), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .device-cam {
    display: none;
  }

  .device-notch {
    display: block;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
    background: #17110f;
    border-radius: 999px;
    z-index: 2;
  }

  .device-notch::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral-2);
    opacity: 0.6;
  }

  .device-speaker {
    display: none;
  }

  .device-screen {
    border-radius: 26px;
    padding-top: 30px;
  }

  .device-home {
    display: block;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
  }

  /* No laptop stand on a phone */
  .device-base {
    display: none;
  }

  /* fake Android side buttons */
  .device-frame::before,
  .device-frame::after {
    content: "";
    position: absolute;
    background: #241b18;
  }

  .device-frame::before {
    right: -3px;
    top: 120px;
    width: 3px;
    height: 60px;
    border-radius: 0 3px 3px 0;
  }

  .device-frame::after {
    left: -3px;
    top: 90px;
    width: 3px;
    height: 34px;
    border-radius: 3px 0 0 3px;
  }

  .device-wrap::before {
    transform: translateY(0);
  }
}

@media (max-width: 400px) {
  .device-frame {
    max-width: 88vw;
  }
}
