/* ============================================================
   CONTACT SECTION — FULLY RESPONSIVE & THEME AWARE
   ============================================================ */
#contact.active-page {
  background: var(--bg-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.contact-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 110px;
  padding-bottom: 5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

/* ── STICKY NOTE #04 ────────────────────────────────────────── */
.contact-note {
  position: absolute;
  top: 110px;
  right: 2.5rem;
  z-index: 25;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── MAIN CONTACT GRID ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
  width: 100%;
  margin-top: 1rem;
  box-sizing: border-box;
}

/* ── LEFT COLUMN: INFO & DIRECT CHANNELS ───────────────────── */
.contact-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.contact-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 1.25rem 0;
  color: var(--text-primary);
}

.contact-headline-accent {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  line-height: 1.75;
  margin: 0 0 2.5rem 0;
  max-width: 95%;
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-list-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-card);
  width: 100%;
  box-sizing: border-box;
}

.contact-list-item:hover {
  transform: translateX(4px);
  border-color: var(--border-hover);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.contact-list-item:hover .contact-item-icon {
  background: var(--accent-primary);
  color: #fff;
  transform: scale(1.05);
}

.contact-item-text {
  flex: 1;
  min-width: 0; /* Crucial for preventing overflow in flex children */
}

.contact-item-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.contact-item-value {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  font-family: 'Inter', sans-serif;
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

/* ── RIGHT COLUMN: INTERACTIVE FORM BOX ─────────────────────── */
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 0.35rem 0;
  color: var(--text-primary);
}

.contact-form-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input,
.form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-card);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-secondary);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 95px;
  max-height: 250px;
  line-height: 1.5;
}

.btn-send-message {
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  width: 100%;
  background: var(--gradient-btn);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-transform: uppercase;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px; /* Touch target */
  box-sizing: border-box;
}

.btn-send-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-send-message:active {
  transform: translateY(0);
}

.send-arrow-icon {
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s ease;
}

.btn-send-message:hover .send-arrow-icon {
  transform: rotate(45deg) translate(2px, -2px);
}

.form-status {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
  animation: fadeInStatus 0.3s ease;
}

@keyframes fadeInStatus {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-status.success {
  display: block !important;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-status.error {
  display: block !important;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ── FOOTER (EMBEDDED IN LAST SECTION) ──────────────────────── */
#footer {
  border-top: 1px solid var(--border-card);
  padding: 1.5rem 2rem;
  flex-shrink: 0;
  transition: border-color 0.55s ease;
  background: var(--bg-primary);
  width: 100%;
  box-sizing: border-box;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.22s ease;
}

.footer-social-link:hover {
  border-color: var(--border-hover);
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: var(--text-muted, #888);
  text-decoration: none;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.footer-admin-link:hover {
  color: var(--accent-primary, #d4af37);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

.secret-admin-trigger {
  cursor: pointer;
  display: inline-block;
  padding: 0 4px;
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease, transform 0.25s ease;
}

.secret-admin-trigger:hover {
  color: var(--accent-primary);
  transform: scale(1.35);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.back-to-top:hover {
  border-color: var(--border-hover);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (PERFECT ON ALL DEVICES)
   ============================================================ */

/* ── TABLET BREAKPOINT (<= 992px) ──────────────────────────── */
@media (max-width: 992px) {
  .contact-container {
    padding: 0 1.5rem;
    padding-top: 105px;
    padding-bottom: 4rem;
  }

  .contact-note {
    position: static;
    margin: 0 0 1.5rem 0;
    width: fit-content;
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2.75rem;
  }

  .contact-desc {
    max-width: 100%;
    margin-bottom: 2rem;
  }
}

/* ── MOBILE BREAKPOINT (<= 768px) ──────────────────────────── */
@media (max-width: 768px) {
  .contact-container {
    padding: 0 1.25rem;
    padding-top: max(95px, calc(75px + env(safe-area-inset-top, 0px)));
    padding-bottom: 3.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2.25rem;
  }

  .contact-headline {
    font-size: 2.5rem;
    margin-bottom: 0.85rem;
  }

  .contact-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .contact-links-list {
    gap: 1rem;
  }

  .contact-list-item {
    padding: 0.85rem 1rem;
    gap: 1rem;
  }

  .contact-item-icon {
    width: 44px;
    height: 44px;
  }

  .contact-form-box {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.15rem;
    padding: 0.5rem 0;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-social-link {
    width: 44px;
    height: 44px;
  }
}

/* ── COMPACT SMARTPHONES (<= 480px) ────────────────────────── */
@media (max-width: 480px) {
  .contact-container {
    padding: 0 1rem;
    padding-top: max(90px, calc(70px + env(safe-area-inset-top, 0px)));
    padding-bottom: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.85rem;
  }

  .contact-headline {
    font-size: 2.15rem;
    letter-spacing: -0.5px;
  }

  .contact-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .contact-links-list {
    gap: 0.85rem;
  }

  .contact-list-item {
    padding: 0.75rem 0.85rem;
    gap: 0.85rem;
    border-radius: 12px;
  }

  .contact-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .contact-item-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-item-label {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  .contact-item-value {
    font-size: 0.85rem;
  }

  .contact-form-box {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }

  .contact-form-title {
    font-size: 1.25rem;
  }

  .contact-form-sub {
    font-size: 0.82rem;
    margin-bottom: 1.15rem;
  }

  .contact-form {
    gap: 0.85rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    border-radius: 8px;
  }

  .form-textarea {
    min-height: 85px;
  }

  .btn-send-message {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    min-height: 46px;
    border-radius: 8px;
  }

  #footer {
    padding: 1.25rem 1rem;
  }

  .footer-logo {
    font-size: 0.9rem;
  }

  .footer-social-link {
    width: 42px;
    height: 42px;
  }

  .footer-copy {
    font-size: 0.75rem;
  }

  .back-to-top {
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
  }
}

/* ── NARROW SCREENS (<= 360px - e.g. Galaxy Fold, iPhone SE) ── */
@media (max-width: 360px) {
  .contact-container {
    padding: 0 0.75rem;
  }

  .contact-headline {
    font-size: 1.85rem;
  }

  .contact-list-item {
    padding: 0.65rem 0.75rem;
    gap: 0.7rem;
  }

  .contact-item-icon {
    width: 36px;
    height: 36px;
  }

  .contact-item-icon svg {
    width: 16px;
    height: 16px;
  }

  .contact-item-value {
    font-size: 0.78rem;
  }

  .contact-form-box {
    padding: 1rem 0.75rem;
  }

  .btn-send-message {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }
}