/* ============================================================
   53 TAKES — CONTACT.CSS
   Styles exclusively for kontakt.html
============================================================ */

/* ---- Page wrapper ---- */
.contact-page {
  min-height: 100vh;
  background: var(--color-bg);
  overflow-x: hidden;
}

/* ---- Hero layout ---- */
.contact-hero {
  padding-top: var(--navbar-height);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

/* ---- Left column: intro + phone ---- */
.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.contact-intro-text {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.contact-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 42ch;
  margin-bottom: 16px;
}

.contact-services-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

/* ---- Right column: form ---- */
.contact-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* ============================================================
   CSS SMARTPHONE MOCKUP
============================================================ */
.contact-phone-scene {
  perspective: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-phone {
  position: relative;
  width: clamp(200px, 22vw, 280px);
  animation: phone-float 10s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.8));
}

@keyframes phone-float {
  0%   { transform: perspective(1200px) rotateY(-10deg) rotateX(4deg)  translateY(0px); }
  50%  { transform: perspective(1200px) rotateY(10deg)  rotateX(-3deg) translateY(-14px); }
  100% { transform: perspective(1200px) rotateY(-10deg) rotateX(4deg)  translateY(0px); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-phone {
    animation: none;
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  }
}

/* Outer frame */
.contact-phone-frame {
  position: relative;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2a2a 0%, #111111 40%, #1a1a1a 100%);
  padding: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 0 0 1px rgba(0,0,0,0.6);
}

/* Side buttons (volume left, power right) */
.contact-phone-frame::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 80px;
  width: 3px;
  height: 28px;
  background: #1e1e1e;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 36px 0 #1e1e1e, 0 66px 0 #1e1e1e;
}

.contact-phone-frame::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 100px;
  width: 3px;
  height: 44px;
  background: #1e1e1e;
  border-radius: 0 2px 2px 0;
}

/* Screen bezel */
.contact-phone-screen {
  position: relative;
  border-radius: 36px;
  background: #000;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Dynamic island (camera) */
.contact-phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07);
  z-index: 20;
}

/* Video container fills screen */
.contact-phone-content {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 36px;
}

/* ---- Video slides ---- */
.phone-video-slide {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  background: #000;
}

.phone-video-slide.is-active {
  transform: translateY(0%);
}

.phone-video-slide.is-exiting {
  transform: translateY(-100%);
}

.contact-phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Social UI overlay ---- */
.phone-social-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* Gradient fade at top (island readability) */
.phone-social-ui::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
}

/* Gradient fade at bottom */
.phone-social-ui::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
}

/* Right action column */
.phone-social-actions {
  position: absolute;
  right: 10px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 11;
}

.phone-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
}

.phone-action-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

.phone-action-count {
  font-size: 9px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Bottom caption block */
.phone-caption {
  position: absolute;
  bottom: 28px;
  left: 12px;
  right: 50px;
  z-index: 11;
}

.phone-caption-account {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  margin-bottom: 4px;
}

.phone-caption-text {
  font-size: 9px;
  color: rgba(255,255,255,0.80);
  font-family: var(--font-body);
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Progress dots */
.phone-progress {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 11;
}

.phone-progress-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s, transform 0.3s;
}

.phone-progress-dot.is-active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.25);
}


/* ============================================================
   CONTACT FORM
============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  position: relative;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.form-group:focus-within .form-label {
  color: var(--color-text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 16px;
  outline: none;
  transition:
    border-color 0.2s var(--ease-soft),
    background-color 0.2s var(--ease-soft);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-tertiary);
  font-size: 14px;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #383838;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-text-secondary);
  background-color: var(--color-surface-2);
}

/* Select arrow */
.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-text-tertiary);
  pointer-events: none;
}

.form-select option {
  background: #181818;
  color: var(--color-text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* Two-column row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Checkbox / privacy */
.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.form-checkbox {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid var(--color-line);
  border-radius: 3px;
  background: var(--color-surface);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin-top: 2px;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.form-checkbox:checked {
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%23050505' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.form-checkbox:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 2px;
}

.form-checkbox-label {
  font-size: 13px;
  color: var(--color-text-tertiary);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Honeypot (anti-spam, visually hidden — not display:none so field is still submitted) */
.contact-form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

/* Submit area */
.form-submit-wrap {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: var(--color-text-primary);
  color: var(--color-text-dark);
  border: 1px solid var(--color-text-primary);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s var(--ease-soft),
    color 0.2s var(--ease-soft),
    border-color 0.2s var(--ease-soft);
}

.form-submit:hover {
  background: transparent;
  color: var(--color-text-primary);
}

.form-submit:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 3px;
}

.form-note {
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-align: center;
  letter-spacing: 0.01em;
}

/* Success / error state (shown via JS class) */
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 8px;
}

.form-status.is-success {
  display: block;
  background: rgba(80, 200, 120, 0.08);
  border: 1px solid rgba(80, 200, 120, 0.3);
  color: #6ee79a;
}

.form-status.is-error {
  display: block;
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.25);
  color: #f08080;
}

/* Field error */
.field-error {
  display: none;
  font-size: 11px;
  color: #f08080;
  margin-top: 5px;
  letter-spacing: 0.02em;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: rgba(220, 80, 80, 0.5);
}

.form-group.has-error .field-error {
  display: block;
}


/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
============================================================ */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-intro {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(32px, 5vw, 64px);
    flex-wrap: wrap;
  }

  .contact-intro-text {
    flex: 1 1 300px;
    margin-bottom: 0;
  }

  .contact-phone-scene {
    flex: 0 0 auto;
    order: -1;
    width: auto;
  }

  .contact-phone {
    width: clamp(160px, 20vw, 220px);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
============================================================ */
@media (max-width: 768px) {
  .contact-layout {
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 40px;
  }

  .contact-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-intro-text {
    margin-bottom: 0;
  }

  .contact-sub {
    max-width: none;
  }

  .contact-phone {
    width: clamp(150px, 45vw, 220px);
    animation: phone-float-mobile 10s ease-in-out infinite;
  }

  @keyframes phone-float-mobile {
    0%, 100% { transform: perspective(800px) rotateY(-4deg) translateY(0px); }
    50%       { transform: perspective(800px) rotateY(4deg)  translateY(-8px); }
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 16px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
============================================================ */
@media (max-width: 480px) {
  .contact-phone {
    width: 52vw;
  }

  .contact-headline {
    font-size: clamp(30px, 9vw, 42px);
  }
}
