/* ============================================================
   CONTACT PAGE — imported by contact.html via <link>. Keeps
   contact-specific rules out of the global stylesheet so the
   home page stays lean.
   ============================================================ */

/* Nav active state — indicates the current page */
.main-nav a.is-active { color: var(--gold-deep, #9c7a2c); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--gold);
}

/* Page hero band (smaller than the home hero) */
.page-hero {
  position: relative;
  padding: 190px 0 80px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(1,17,40,.92) 0%, rgba(6,40,93,.88) 60%, rgba(10,55,124,.85) 100%),
    url('assets/page10_img1.jpeg') center / cover no-repeat;
  overflow: hidden;
}
.page-hero::before {
  /* decorative right-side accent */
  content: "";
  position: absolute;
  right: -120px;
  top: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,161,30,0.18), transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  max-width: 720px;
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 {
  font-family: "Gilroy", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: #fff;
}
.page-hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0;
}

/* Contact grid section */
.contact-section {
  background: var(--cream);
  padding: 70px 0 90px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card,
.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 38px 34px;
  box-shadow: 0 20px 40px -20px rgba(11,42,91,0.14);
}
.contact-form-card { position: relative; }
.contact-form-card.is-sending .contact-form { pointer-events: none; }
.contact-block-title {
  font-family: "Gilroy", system-ui, sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.contact-block-lead {
  color: #5b6577;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 28px;
}

/* Contact info list (address / phone / email / hours) */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(216,161,30,0.14), rgba(216,161,30,0.05));
  border: 1px solid rgba(216,161,30,0.35);
  color: var(--gold);
  display: grid;
  place-items: center;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-body { min-width: 0; }
.contact-info-body h3 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep, #9c7a2c);
  margin: 0 0 6px;
  font-weight: 700;
}
.contact-info-body p {
  color: #2f3d5a;
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.contact-info-body a {
  display: block;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  padding: 3px 0;
  transition: color .2s ease;
}
.contact-info-body a small {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7c869c;
  font-weight: 700;
}
.contact-info-body a:hover { color: var(--gold-deep, #9c7a2c); }

/* Socials in the contact card */
.contact-socials {
  display: flex;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-socials .social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.contact-socials .social-icon:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: #fff;
}
.contact-socials .social-icon svg { width: 15px; height: 15px; fill: currentColor; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
  min-width: 0;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23687287' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5 6 6.5 11 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 40px;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(216,161,30,0.15);
  background: #fffdf7;
}
.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #c94a4a;
}

/* --- Animated success panel — overlays the form card in place on successful submit --- */
/* Hidden by default. .form-sent has display:flex when visible, so we need an
   explicit override for the [hidden] attribute — otherwise the flex rule wins
   and the overlay would show on page load. */
.form-sent[hidden] { display: none !important; }
.form-sent {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #fff;
  border-radius: 12px;      /* match the card's radius so edges align */
  padding: 40px 24px 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: form-sent-fade 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.form-sent.is-leaving {
  animation: form-sent-fade-out 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}
.form-sent__ring {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.10);
  display: grid;
  place-items: center;
  position: relative;
}
.form-sent__ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.18);
  animation: form-sent-halo 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.form-sent__check {
  width: 62px;
  height: 62px;
  overflow: visible;
  stroke: #16a34a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.form-sent__circle {
  stroke-dasharray: 151;    /* 2πr = 2 × π × 24 ≈ 150.8 */
  stroke-dashoffset: 151;
  animation: form-sent-draw-circle 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.05s forwards;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}
.form-sent__tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: form-sent-draw-tick 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.55s forwards;
}
.form-sent__title {
  font-family: "Gilroy", system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 8px;
  animation: form-sent-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
}
.form-sent__body {
  color: #4a5878;
  font-size: 15px;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 24px;
  animation: form-sent-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
}
/* Reset button hidden — panel auto-dismisses, no manual action needed. */
.form-sent__reset { display: none; }

@keyframes form-sent-draw-circle { to { stroke-dashoffset: 0; } }
@keyframes form-sent-draw-tick   { to { stroke-dashoffset: 0; } }
@keyframes form-sent-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes form-sent-fade-out {
  to { opacity: 0; }
}
@keyframes form-sent-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes form-sent-halo {
  0%   { transform: scale(0.85); opacity: 0.7; }
  70%  { transform: scale(1.15); opacity: 0.0; }
  100% { transform: scale(1.15); opacity: 0.0; }
}
@media (prefers-reduced-motion: reduce) {
  .form-sent,
  .form-sent__circle,
  .form-sent__tick,
  .form-sent__title,
  .form-sent__body,
  .form-sent__reset,
  .form-sent__ring::before { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important; }
}

/* --- intl-tel-input: keep the phone input visually consistent with the rest of the form --- */
.form-field-tel .iti { width: 100%; display: block; }
.form-field-tel .iti__tel-input {
  font: inherit;
  font-size: 15px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field-tel .iti__tel-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(216,161,30,0.15);
  background: #fffdf7;
}
/* Bigger left padding when the flag + dial-code chip is present */
.form-field-tel .iti--separate-dial-code .iti__tel-input { padding-left: 96px; }
/* The dropdown search box inherits our theme */
.iti__search-input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d8dee7;
  font: inherit;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.form-actions .btn {
  gap: 10px;
  padding: 0 26px;
}
.form-note {
  color: #6b7690;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}

.form-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.form-status.is-success {
  background: rgba(216,161,30,0.12);
  border: 1px solid rgba(216,161,30,0.35);
  color: var(--gold-deep, #9c7a2c);
}
.form-status.is-error {
  background: rgba(201,74,74,0.08);
  border: 1px solid rgba(201,74,74,0.3);
  color: #b34141;
}
.form-status.is-info {
  background: rgba(11,42,91,0.06);
  border: 1px solid rgba(11,42,91,0.18);
  color: var(--navy);
}

/* Tablet */
@media (max-width: 980px) {
  .page-hero { padding: 160px 0 60px; }
  .contact-section { padding: 50px 0 70px; }
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-info-card, .contact-form-card { padding: 30px 26px; }
  .contact-block-title { font-size: 22px; }
}

/* Mobile */
@media (max-width: 640px) {
  .page-hero { padding: 130px 0 46px; }
  .page-hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .page-hero-lead { font-size: 15px; }
  .contact-section { padding: 36px 0 56px; }
  .contact-info-card, .contact-form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .form-note { max-width: none; }
}
