/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE — tattoo studio
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────── */
.contact-hero {
  padding: 72px 0 56px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}

/* ambient red glow behind hero */
.contact-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.09) 0%, transparent 65%);
  pointer-events: none;
}

/* red divider line at bottom */
.contact-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--tt-red);
  box-shadow: 0 0 20px var(--tt-red-glow), 0 0 60px rgba(220, 38, 38, 0.15);
  animation: contact-line-grow 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes contact-line-grow {
  from { width: 0; opacity: 0; }
  to   { width: 80px; opacity: 1; }
}

.contact-hero-content {
  flex: 1;
  min-width: 0;
}

.contact-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.contact-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  margin: 0 0 18px;
  letter-spacing: 4px;
  color: var(--tt-text);
  line-height: 0.95;
}

.contact-hero .muted {
  font-size: 15px;
  max-width: 440px;
  line-height: 1.65;
}

/* ── Grid ───────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Cards ──────────────────────────────────────────────────── */
.contact-card {
  background: var(--tt-card);
  border: 1px solid var(--tt-border);
  border-radius: 4px;
  padding: 36px;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* top red accent */
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tt-red) 0%, rgba(220, 38, 38, 0.25) 55%, transparent 100%);
  box-shadow: 0 0 16px var(--tt-red-glow);
}

.contact-card:hover {
  border-color: rgba(220, 38, 38, 0.38);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.65),
    0 0 48px rgba(220, 38, 38, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Form header ─────────────────────────────────────────────── */
.contact-form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.contact-form-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--tt-muted);
}

.contact-form-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tt-red);
  box-shadow: 0 0 8px var(--tt-red-glow);
  flex-shrink: 0;
  animation: contact-dot-pulse 2s ease-in-out infinite;
}

@keyframes contact-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--tt-red-glow); }
  50%       { opacity: 0.5; box-shadow: 0 0 4px rgba(220,38,38,0.2); }
}

/* ── Field labels ────────────────────────────────────────────── */
.contact-card .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card .field > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--tt-muted);
  transition: color 0.2s ease;
}

.contact-card .field:focus-within > span {
  color: var(--tt-red-soft);
}

/* ── Inputs & Textarea ───────────────────────────────────────── */
.contact-card .field input,
.contact-card .field select,
.contact-card .field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--tt-ink);
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 2px;
  color: var(--tt-text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-card .field textarea {
  min-height: 148px;
  resize: vertical;
}

.contact-card .field input::placeholder,
.contact-card .field select::placeholder,
.contact-card .field textarea::placeholder {
  color: var(--tt-muted);
  opacity: 0.4;
}

.contact-card .field input:hover,
.contact-card .field select:hover,
.contact-card .field textarea:hover {
  border-color: rgba(220, 38, 38, 0.3);
}

.contact-card .field input:focus,
.contact-card .field select:focus,
.contact-card .field textarea:focus {
  outline: none;
  background: rgba(13, 15, 20, 0.8);
  border-color: var(--tt-red);
  box-shadow:
    0 0 0 3px rgba(220, 38, 38, 0.1),
    0 0 24px rgba(220, 38, 38, 0.12);
}

.contact-policy-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  color: var(--tt-muted);
  font-size: 13px;
  line-height: 1.5;
}

.contact-policy-check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--tt-red);
  flex-shrink: 0;
}

.contact-policy-check a {
  color: var(--tt-text);
  text-decoration: underline;
  text-decoration-color: rgba(220, 38, 38, 0.45);
  text-underline-offset: 3px;
}

.contact-policy-check a:hover {
  color: var(--tt-red-soft);
}

/* ── File upload ─────────────────────────────────────────────── */
.contact-card .field input[type="file"] {
  border-style: dashed;
  border-color: rgba(220, 38, 38, 0.2);
  padding: 24px 16px;
  cursor: pointer;
  color: var(--tt-muted);
  font-size: 12px;
}

.contact-card .field input[type="file"]:hover {
  border-color: var(--tt-red);
  background: rgba(220, 38, 38, 0.04);
}

.contact-card .field input[type="file"]::-webkit-file-upload-button {
  background: var(--tt-red);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
  margin-right: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.contact-card .field input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--tt-red-soft);
}

/* ── Form actions ────────────────────────────────────────────── */
.contact-card .form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.contact-card .form-actions .muted {
  font-size: 12px;
  line-height: 1.4;
}

/* ── Submit button ───────────────────────────────────────────── */
.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-submit svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.contact-submit:hover svg {
  transform: translateX(3px) translateY(-2px);
}

/* ── Alerts (errors) ─────────────────────────────────────────── */
.contact-card .alert {
  border-radius: 2px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.55;
  border-left: 3px solid transparent;
}

.contact-card .alert.danger {
  background: rgba(220, 38, 38, 0.08);
  border-left-color: var(--tt-red);
  color: #fca5a5;
}

/* ── SUCCESS NOTIFICATION ────────────────────────────────────── */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px 24px;
  gap: 20px;
  min-height: 360px;
  animation: contact-success-in 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes contact-success-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* SVG graphic container */
.contact-success-gfx {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.contact-success-svg {
  width: 80px;
  height: 80px;
}

/* ring draws itself */
.cs-ring {
  transform-origin: 40px 40px;
  transform: rotate(-90deg);
  animation: cs-ring-draw 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

@keyframes cs-ring-draw {
  from { stroke-dashoffset: 226; }
  to   { stroke-dashoffset: 0; }
}

/* checkmark draws after ring */
.cs-check {
  animation: cs-check-draw 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.75s both;
}

@keyframes cs-check-draw {
  from { stroke-dashoffset: 50; }
  to   { stroke-dashoffset: 0; }
}

/* ambient red glow behind the circle */
.contact-success-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.2) 0%, transparent 65%);
  animation: cs-glow-pulse 2.5s ease-in-out 1s infinite;
}

@keyframes cs-glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.12); }
}

/* title */
.contact-success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 6px;
  color: var(--tt-red-soft);
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 40px rgba(220, 38, 38, 0.4);
  animation: contact-success-in 0.5s ease 0.35s both;
}

/* subtext */
.contact-success-text {
  font-size: 14px;
  color: var(--tt-muted);
  line-height: 1.65;
  max-width: 320px;
  margin: 0;
  animation: contact-success-in 0.5s ease 0.5s both;
}

/* "Написать ещё" button */
.contact-success-btn {
  margin-top: 8px;
  animation: contact-success-in 0.5s ease 0.65s both;
}

/* ── Info card ───────────────────────────────────────────────── */
.contact-info .eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.contact-info h3 {
  font-size: clamp(22px, 3vw, 36px);
  margin: 0 0 6px;
  letter-spacing: 2px;
  color: var(--tt-text);
  line-height: 1.05;
}

.contact-info > .muted {
  font-size: 13px;
  margin-bottom: 24px;
  display: block;
  line-height: 1.55;
}

.info-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(220, 38, 38, 0.1);
  transition: border-color 0.2s ease, padding-left 0.2s ease;
}

.info-line:last-of-type {
  border-bottom: none;
}

.info-line:hover {
  border-color: rgba(220, 38, 38, 0.28);
  padding-left: 4px;
}

/* label row (icon + text) */
.info-line > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--tt-muted);
}

.info-line > span svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.info-line > strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--tt-text);
  word-break: break-all;
  letter-spacing: 0.2px;
}

/* ── Info card stamp ornament ────────────────────────────────── */
.contact-info-stamp {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  opacity: 0.07;
  user-select: none;
  pointer-events: none;
}

.contact-info-stamp-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  letter-spacing: 10px;
  color: var(--tt-red);
  line-height: 1;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .contact-card {
    padding: 24px 20px;
  }

  .contact-grid {
    padding-bottom: 48px;
  }

  .contact-success {
    min-height: 280px;
    padding: 24px 8px;
  }

  .contact-success-title {
    font-size: 40px;
  }
}
