/* ==========================================================================
   SULAIMAN — CONTACT PAGE STYLES
   Exact Architectural Identity Matching about.html & index.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE PAGE & TYPOGRAPHY
   -------------------------------------------------------------------------- */
body.contact-page {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
  padding-bottom: 70px;
}

body.contact-page .page-wrapper {
  max-width: 1280px;
}

/* Active State for Contact Link in Main Pill */
.nav-icon-link.active {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav-icon-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   2. UNIFIED LUXURY MAGNETIC CURSOR
   -------------------------------------------------------------------------- */
.cursor-tag-text,
.cursor-view-text {
  display: none !important;
}

body.cursor-hover .custom-cursor-dot {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

body.cursor-hover .custom-cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--cursor-hover-border, #ffffff);
  background-color: var(--cursor-hover-bg, rgba(255, 255, 255, 0.08));
}

/* --------------------------------------------------------------------------
   3. 01 — CONTACT HERO SECTION (MATCHING ABOUT & PORTFOLIO EXACTLY)
   -------------------------------------------------------------------------- */
.contact-hero-frame {
  margin-top: 20px;
  padding: 24px 36px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  box-sizing: border-box;
}

.contact-hero-frame .frame-corner,
.contact-hero-frame .frame-bottom-marks {
  display: none !important;
}

.contact-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 20px;
  min-height: 120px;
  width: 100%;
  box-sizing: border-box;
}

.contact-hero-heading {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.contact-hero-title-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: filter var(--transition-smooth), transform var(--transition-smooth);
  user-select: none;
  -webkit-user-drag: none;
}

/* Invert title image in dark mode for crisp contrast */
[data-theme="dark"] .contact-hero-title-img,
html[data-theme="dark"] .contact-hero-title-img {
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .contact-hero-title-img {
    filter: invert(1);
  }
}

/* --------------------------------------------------------------------------
   4. 02 — THE MAIN SPLIT GRID (TYPOGRAPHY + FORM & PORTRAIT)
   -------------------------------------------------------------------------- */
.contact-bio-frame {
  margin-top: 36px;
  padding: 50px 36px 70px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  background-color: #ffffff;
  border: 0px solid var(--border-light);
  position: relative;
  box-sizing: border-box;
}

[data-theme="dark"] .contact-bio-frame {
  background-color: var(--bg-surface);
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: stretch;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.eyebrow-line {
  width: 40px;
  height: 1.5px;
  background-color: var(--text-primary);
}

.eyebrow-text {
  font-family: var(--font-latin);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  font-weight: 700;
  color: var(--text-primary);
}

/* Monumental Headline with thmanyahserifdisplay-Black */
.hero-headline {
  font-family: 'thmanyahserifdisplay-Black', 'thmanyah serif display Black', serif;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: block;
}

.hero-headline .headline-row {
  display: block;
}

/* Statement Wrap */
.hero-statement-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 10px;
}

.hero-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 22px;
}

.status-badge,
.response-guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-sizing: border-box;
}

.status-badge {
  background-color: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-glow 2s infinite ease-in-out;
}

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

.response-guarantee-pill {
  background-color: #000;
  color: #ffffff;
  border: 1px solid var(--border-light);
}

.guarantee-icon {
  font-size: 0.85rem;
  color: #f59e0b;
}

.contact-editorial-desc {
  font-family: var(--font-arabic);
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

/* ==========================================================================
   Luxury Architectural Form Container
   ========================================================================== */
.contact-clean-form {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  position: relative;
}

.field-meta-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  user-select: none;
}

.field-index {
  font-family: var(--font-latin);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.3;
}

.contact-label {
  font-family: var(--font-arabic);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Fields & Grid */
.contact-input-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.contact-field-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.contact-field-wrap.full-width {
  margin-bottom: 24px;
}

.field-input-box {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 4px 14px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-input-box.textarea-box {
  padding: 8px 14px;
}

.field-corner-plus {
  position: absolute;
  bottom: 6px;
  left: 10px;
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

html[dir="ltr"] .field-corner-plus {
  left: auto;
  right: 10px;
}

.contact-field-wrap.is-focused .field-input-box,
.field-input-box:focus-within {
  border-color: var(--text-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--text-primary), 0 8px 24px -6px rgba(0, 0, 0, 0.08);
}

.contact-field-wrap.is-focused .field-corner-plus {
  opacity: 0.85;
  color: var(--text-primary);
}

.contact-input,
.contact-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-arabic);
  font-size: 0.94rem;
  color: var(--text-primary);
  padding: 9px 0;
  box-sizing: border-box;
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.7;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--text-muted);
  font-size: 0.88rem;
  opacity: 0.65;
}

/* Error state */
.contact-field-wrap.has-error .field-input-box {
  border-color: #ef4444;
  animation: field-shake 0.4s ease-in-out;
}

@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Hairline indicator */
.contact-hairline {
  position: relative;
  width: 100%;
  height: 2px;
  background-color: transparent;
  overflow: hidden;
  margin-top: 4px;
}

.contact-hairline-active {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--text-primary);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-field-wrap.is-focused .contact-hairline-active {
  width: 100%;
}

/* Actions Bar & Luxury Buttons */
.contact-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.contact-send-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 32px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
  border-radius: 999px;
  font-family: var(--font-arabic);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.25);
}

.contact-send-btn .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
}

.contact-send-btn:hover .btn-shine {
  left: 140%;
}

.contact-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.35);
}

.contact-send-btn .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="rtl"] .contact-send-btn:hover .btn-arrow {
  transform: translateX(-5px);
}

html[dir="ltr"] .contact-send-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Quick Portals & Direct Links */
.contact-quick-portals {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-copy-pill,
.contact-direct-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-arabic);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-copy-pill .pill-svg,
.contact-direct-portal-btn .pill-svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.contact-copy-pill:hover,
.contact-direct-portal-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.contact-direct-portal-btn:hover .pill-svg {
  color: #22c55e;
}

/* Luxury Success Banner Monolith Card */
.transmission-success-banner {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-right: 4px solid #22c55e;
  border-radius: 12px;
  padding: 24px;
  text-align: right;
  margin-top: 24px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.12);
}

.transmission-success-banner.is-active {
  display: block;
}

.success-banner-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.success-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  flex-shrink: 0;
}

.success-text-group {
  flex: 1;
}

.success-top-tag {
  font-family: var(--font-latin);
  font-size: 0.68rem;
  font-weight: 800;
  color: #22c55e;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}

.success-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.success-sub {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Column 2: Stylized Artist Portrait with 3D Perspective & Motion */
.hero-visual-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  perspective: 1200px;
}

.portrait-gallery-frame {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.portrait-gallery-frame:hover {
  border-color: var(--border-medium);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .portrait-gallery-frame:hover {
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.45);
}

.portrait-matte {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  transform-style: preserve-3d;
}

.portrait-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  will-change: transform;
  transition: filter 0.5s ease;
}

.portrait-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 380px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.16), transparent 70%);
  transition: opacity 0.4s ease;
  mix-blend-mode: overlay;
  z-index: 2;
}

.portrait-gallery-frame:hover .portrait-glare {
  opacity: 1;
}

.transmission-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ef4444;
  font-size: 0.88rem;
  margin-top: 14px;
}

.portrait-grid-lines {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.portrait-caption-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background-color: rgba(23, 23, 23, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-latin);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}



/* Unified Centered Footer */
.site-unified-footer {
  width: 100%;
  max-width: 1060px;
  margin: 40px auto 10px auto;
  padding: 30px 20px 10px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.site-unified-footer .copyright-text {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. COPY NOTIFICATION TOAST
   -------------------------------------------------------------------------- */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE DESIGN (MOBILE & TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .contact-hero-frame {
    padding: 20px 24px !important;
  }

  .contact-hero-inner {
    padding: 14px 16px;
    min-height: 110px;
  }

  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual-block {
    order: -1;
  }
  .portrait-gallery-frame {
    height: auto;
    min-height: 420px;
  }
  .portrait-matte {
    aspect-ratio: 4 / 5;
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .contact-hero-frame {
    padding: 18px 16px !important;
  }

  .contact-hero-inner {
    padding: 12px 10px;
    min-height: 95px;
  }

  .contact-hero-title-img {
    max-width: 250px;
  }

  .contact-bio-frame {
    padding: 28px 18px 24px !important;
  }

  .portrait-gallery-frame,
  .portrait-matte {
    min-height: 300px;
  }

  .scope-chips-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-input-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .contact-quick-portals {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .contact-send-btn,
  .contact-copy-pill,
  .contact-direct-portal-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-hero-frame {
    padding: 14px 12px !important;
  }

  .contact-hero-inner {
    padding: 10px 8px;
    min-height: 80px;
  }

  .contact-hero-title-img {
    max-width: 220px;
  }

  .contact-bio-frame {
    padding: 22px 14px 20px !important;
  }

  .hero-eyebrow {
    font-size: 0.76rem;
  }

  .hero-main-title {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }
}

