/* ══════════════════════════════════════════════════════
   contact.css — Contact form section + Footer
   ══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   SHARED SWISS GRID OVERLAY (matches demo section)
───────────────────────────────────────── */
.section-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* Must be BELOW contact-inner at z-index 2 */
}

.sgrid-v {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--grid);
  opacity: 0.7;
}

.sgrid-h {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--grid);
  opacity: 0.7;
}

/* ─────────────────────────────────────────
   TOP-TIER AGENCY TYPOGRAPHY REVEAL
───────────────────────────────────────── */
[data-agency-reveal] .agency-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

[data-agency-reveal] .agency-word {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  transform-origin: top left;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.reveal-item.is-visible [data-agency-reveal] .agency-word {
  transform: translateY(0) rotate(0deg);
}

/* ─────────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────────── */
.contact-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 8vw;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  z-index: 2; /* Must be above fixed #page-grid-spine at z-index:1 */
}

.contact-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Header */
.contact-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--blue);
  margin: 0 0 16px 0;
}

.contact-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 3.8vw, 60px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 20px 0;
}

.contact-sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink-40);
  line-height: 1.6;
  margin: 0 0 48px 0;
}

.contact-sub strong {
  color: var(--ink);
}

/* ─────────────────────────────────────────
   FORM GRID
───────────────────────────────────────── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}

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

.cf-field--full {
  grid-column: 1 / -1;
}

.cf-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-40);
  text-transform: uppercase;
}

.cf-req {
  color: var(--blue);
  margin-left: 2px;
}

.cf-optional {
  color: rgba(255,255,255,0.3);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 10px;
  margin-left: 4px;
}

/* Input base */
.cf-input {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #000000; /* Solid black to block grid lines from showing through */
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.cf-input::placeholder {
  color: rgba(255,255,255,0.2);
}

/* Fix browser autofill ruining the dark theme background */
.cf-input:-webkit-autofill,
.cf-input:-webkit-autofill:hover, 
.cf-input:-webkit-autofill:focus, 
.cf-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink) !important;
  transition: background-color 5000s ease-in-out 0s, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cf-input:focus {
  border-color: var(--blue);
  background: #020816; /* Solid dark blue so grid lines don't show through on focus */
  box-shadow: 0 0 0 3px rgba(0,77,230,0.12);
}

.cf-input.is-error {
  border-color: rgba(255, 80, 80, 0.8);
  box-shadow: 0 0 0 3px rgba(255,80,80,0.1);
}

.cf-input.is-valid {
  border-color: rgba(0,230,100,0.5);
}

/* Textarea */
.cf-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

/* Error message */
.cf-error {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,80,80,0.9);
  min-height: 14px;
  transition: opacity 0.2s ease;
}

/* ─────────────────────────────────────────
   PHONE ROW
───────────────────────────────────────── */
.cf-phone-row {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.cf-country-selector {
  position: relative;
  flex-shrink: 0;
}

.cf-country-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 14px 12px;
  cursor: pointer;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
  height: 100%;
  box-sizing: border-box;
}

.cf-country-btn:hover {
  background: #020816; /* Solid dark blue */
  border-color: rgba(0,77,230,0.4);
}

.cf-flag {
  font-size: 18px;
  line-height: 1;
}

.cf-dial {
  font-size: 13px;
  color: var(--ink);
  min-width: 32px;
}

.cf-chevron {
  font-size: 10px;
  color: var(--ink-40);
  transition: transform 0.2s ease;
}

.cf-country-btn[aria-expanded="true"] .cf-chevron {
  transform: rotate(180deg);
}

.cf-phone-input {
  border-radius: 0 4px 4px 0;
  flex: 1;
}

/* Dropdown */
.cf-country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 280px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  z-index: 9999;
  box-shadow: 0 16px 48px rgba(0,0,0,0.8);
  overflow: hidden;
}

.cf-country-dropdown[hidden] {
  display: none;
}

.cf-country-search-wrap {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cf-country-search {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
}

.cf-country-search:focus {
  border-color: var(--blue);
}

.cf-country-search::placeholder {
  color: rgba(255,255,255,0.25);
}

.cf-country-list {
  list-style: none;
  padding: 6px 0;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,77,230,0.4) transparent;
}

.cf-country-list::-webkit-scrollbar { width: 4px; }
.cf-country-list::-webkit-scrollbar-thumb { background: rgba(0,77,230,0.4); border-radius: 2px; }

.cf-country-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-40);
  transition: background 0.15s ease, color 0.15s ease;
}

.cf-country-list li:hover,
.cf-country-list li.is-selected {
  background: rgba(0,77,230,0.1);
  color: var(--ink);
}

.cf-country-list li .ci-flag { font-size: 16px; }
.cf-country-list li .ci-name { flex: 1; }
.cf-country-list li .ci-code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

/* ─────────────────────────────────────────
   SELECT
───────────────────────────────────────── */
.cf-select-wrap {
  position: relative;
}

.cf-select {
  cursor: pointer;
  padding-right: 36px;
  background-image: none;
}

.cf-select option {
  background: #0a0a0a;
  color: var(--ink);
}

.cf-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ink-40);
  pointer-events: none;
}

/* ─────────────────────────────────────────
   SUBMIT ROW
───────────────────────────────────────── */
.cf-submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* ─────────────────────────────────────────
   SUCCESS STATE
───────────────────────────────────────── */
.contact-success {
  text-align: center;
  padding: 48px 0;
  animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 77, 230, 0.4);
  color: var(--blue);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: rgba(0, 77, 230, 0.06);
}

.success-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 10px 0;
}

.success-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-40);
  line-height: 1.7;
  margin: 0;
}

.success-sub strong {
  color: var(--ink);
}

/* ─────────────────────────────────────────
   LIMIT STATE
───────────────────────────────────────── */
.contact-form.is-locked {
  pointer-events: none;
}

.contact-form.is-locked .cf-input,
.contact-form.is-locked .cf-country-btn,
.contact-form.is-locked .cf-label,
.contact-form.is-locked .cf-select-arrow {
  opacity: 0.2;
  filter: grayscale(100%);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.contact-form.is-locked .cf-submit-btn {
  display: none;
}

.contact-limit-msg {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 30, 30, 0.3);
  box-shadow: 0 0 18px rgba(180, 20, 20, 0.08), inset 0 0 12px rgba(180, 20, 20, 0.04);
  border-radius: 4px;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  width: 100%;
  pointer-events: auto;
}

.contact-limit-msg[hidden] {
  display: none;
}

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

.limit-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(200, 30, 30, 0.5);
  color: rgba(220, 60, 60, 1);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: rgba(180, 20, 20, 0.08);
  box-shadow: 0 0 14px rgba(180, 20, 20, 0.15);
  animation: floatSubtle 3.5s ease-in-out infinite;
}

.limit-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(220, 80, 80, 0.9);
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.limit-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-40);
  line-height: 1.65;
  margin: 0;
}

.limit-sub a {
  color: rgba(220, 80, 80, 0.8);
  text-decoration: underline;
  text-decoration-color: rgba(200, 60, 60, 0.3);
  transition: color 0.2s, text-decoration-color 0.2s;
  pointer-events: auto;
}

.limit-sub a:hover {
  color: rgba(240, 100, 100, 1);
  text-decoration-color: rgba(220, 80, 80, 0.6);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  position: relative;
  margin-top: 28vh; /* Reduced gap by 30% */
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1;
}

/* Footer Headline Block */
.footer-header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 100px 8vw 40px 8vw;
  max-width: 700px;
  margin: 0 auto;
}

/* The 3-col grid — same inset as demo-inner: calc(8vw + 24px) */
.footer-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 0;
  padding: 64px calc(8vw + 24px) 80px calc(8vw + 24px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Column label — "NAVIGATE" / "REACH US AT" */
.footer-col-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--blue);
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

/* Left: Nav */
.footer-nav {
  padding-right: 0;
}

.footer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Nav links — sized like demo sub, with blue underline hover sweep */
.footer-nav__link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-40);
  text-decoration: none;
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  transition: color 0.3s ease;
}

.footer-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav__link:hover {
  color: var(--ink);
}

.footer-nav__link:hover::after {
  width: 50%;
}

/* Center: Globe zone */
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.footer-globe-zone {
  width: 120px;
  height: 120px;
}

/* Right: Reach us at */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  text-align: right;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start; /* Aligns icons in a straight vertical line */
}

/* Social link with glow on hover */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-social-link:hover {
  color: var(--ink);
  text-shadow: 0 0 20px rgba(0,77,230,0.5);
}

.footer-social-icon {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.3);
  transition: color 0.25s ease;
}

.footer-social-link:hover .footer-social-icon {
  color: var(--blue);
}



/* "Coming Soon" badge */
.footer-soon-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: 3px 7px;
}

/* Bottom bar — copyright only */
.footer-bottom {
  position: relative;
  z-index: 4;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 18px 8vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  transform: translateX(6px);
}
