/* Contact page styles */

.contact-page {
  background-color: #ffffff;
  padding-bottom: 0;
}

/* =====================
   Hero
   ===================== */
.contact-hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
  background-color: #0f172a;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) { .contact-hero { padding-top: 7.5rem; padding-bottom: 5rem; } }
@media (min-width: 768px) { .contact-hero { padding-top: 9rem; padding-bottom: 6rem; } }
@media (min-width: 1024px) { .contact-hero { padding-top: 11rem; padding-bottom: 7rem; } }

.contact-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.84)),
    radial-gradient(ellipse at 30% 60%, rgba(197, 160, 89, 0.22), transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(197, 160, 89, 0.14), transparent 50%),
    url('../../images/hero/p5.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.contact-hero-content { position: relative; z-index: 10; }

/* Hero Animations */
.hero-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hero-animate.is-visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

.contact-subtitle {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #c5a059;
  margin-bottom: 1rem;
  display: block;
}
@media (min-width: 480px) { .contact-subtitle { font-size: 10px; letter-spacing: 0.4em; } }
@media (min-width: 640px) { .contact-subtitle { font-size: 11px; letter-spacing: 0.5em; } }

.contact-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 900;
  color: white;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.contact-title span { color: #c5a059; font-style: italic; }
@media (min-width: 480px) { .contact-title { font-size: 2.5rem; } }
@media (min-width: 640px) { .contact-title { font-size: 3.25rem; } }
@media (min-width: 768px) { .contact-title { font-size: 4.25rem; } }
@media (min-width: 1024px) { .contact-title { font-size: 5rem; } }

.contact-desc {
  font-size: 0.9375rem;
  color: #94a3b8;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}
@media (min-width: 640px) { .contact-desc { font-size: 1.0625rem; } }

/* =====================
   Quick Contact Strip
   ===================== */
.contact-quick-strip {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
}
@media (min-width: 768px) { .contact-quick-strip { padding: 0; } }

.contact-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (min-width: 768px) { .contact-quick-grid { grid-template-columns: repeat(4, 1fr); } }

.contact-quick-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 0.75rem;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #e2e8f0;
  transition: background 0.2s;
}
.contact-quick-item:last-child { border-right: none; }
@media (max-width: 767px) {
  .contact-quick-item:nth-child(even) { border-right: none; }
  .contact-quick-item:nth-child(n+3) { border-top: 1px solid #e2e8f0; }
}
@media (min-width: 768px) { .contact-quick-item { padding: 1.25rem 1.5rem; } }
@media (min-width: 1024px) { .contact-quick-item { padding: 1.5rem 2rem; } }
.contact-quick-item:not(.contact-quick-item--static):hover { background: #f8fafc; }

.contact-quick-icon {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5a059;
}
.contact-quick-icon svg { width: 1rem; height: 1rem; }
.contact-quick-icon--green { background: rgba(37, 211, 102, 0.08); border-color: rgba(37, 211, 102, 0.25); color: #25d366; }

.contact-quick-label {
  display: block;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}
.contact-quick-value {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-all;
  line-height: 1.3;
}
@media (min-width: 480px) { .contact-quick-value { font-size: 0.8125rem; } }
@media (min-width: 1024px) { .contact-quick-value { font-size: 0.875rem; } }

/* =====================
   Main Contact Section
   ===================== */
.contact-main-section {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}
@media (min-width: 640px) { .contact-main-section { padding-top: 4.5rem; padding-bottom: 5rem; } }
@media (min-width: 1024px) { .contact-main-section { padding-top: 6rem; padding-bottom: 7rem; } }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
  }
}

/* =====================
   Info Panel (Left)
   ===================== */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-header { }
.contact-info-label {
  display: block;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #c5a059;
  margin-bottom: 0.875rem;
}
.contact-info-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 0.875rem;
}
@media (min-width: 480px) { .contact-info-title { font-size: 1.875rem; } }
@media (min-width: 768px) { .contact-info-title { font-size: 2.25rem; } }

.contact-info-desc {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.7;
  font-weight: 300;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-block-icon {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5a059;
  margin-top: 0.125rem;
}
.contact-info-block-icon svg { width: 1.125rem; height: 1.125rem; }

.contact-info-block-label {
  display: block;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}
.contact-info-block-value {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
}
.contact-info-block-link {
  font-size: 0.875rem;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
.contact-info-block-link:hover { color: #c5a059; }

.contact-cert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contact-cert-tag {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c5a059;
  background: rgba(197, 160, 89, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.contact-map-wrapper {
  border-radius: 0.5rem;
  overflow: hidden;
  height: 200px;
  border: 1px solid #e2e8f0;
  position: relative;
}
@media (min-width: 640px) { .contact-map-wrapper { height: 240px; } }
.contact-map-wrapper iframe { width: 100%; height: 100%; border: none; filter: grayscale(100%); }

.map-overlay-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: white;
  color: #0f172a;
  padding: 0.5rem 0.875rem;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0.25rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.map-overlay-btn svg { width: 0.875rem; height: 0.875rem; }
.map-overlay-btn:hover { transform: translateY(-2px); }

/* =====================
   Form Panel (Right)
   ===================== */
.contact-form-panel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
@media (min-width: 480px) { .contact-form-panel { padding: 2.5rem; } }
@media (min-width: 640px) { .contact-form-panel { padding: 3rem; } }
@media (min-width: 768px) { .contact-form-panel { padding: 3.5rem; } }

.contact-form-header { margin-bottom: 2rem; }
.contact-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.625rem;
}
@media (min-width: 480px) { .contact-form-title { font-size: 1.625rem; } }
@media (min-width: 640px) { .contact-form-title { font-size: 2rem; } }
.contact-form-desc { color: #64748b; line-height: 1.6; font-size: 0.9rem; }

/* Success state */
.contact-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  color: #065f46;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.contact-success.is-visible { display: block; }
.contact-success h4 { font-weight: 800; font-size: 1.125rem; margin-bottom: 0.5rem; }
.contact-success p { font-size: 0.9rem; line-height: 1.6; }

.contact-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .contact-form-row { grid-template-columns: 1fr 1fr; } }

/* Floating Labels */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-static-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}
.floating-group {
  position: relative;
  padding-top: 0.5rem;
}

.floating-label {
  position: absolute;
  left: 1.125rem;
  top: 1.625rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.2s ease-out;
}

.form-input {
  width: 100%;
  padding: 1rem 1.125rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  color: #0f172a;
  transition: all 0.3s;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 1.1rem) calc(50% - 2px),
    calc(100% - 0.8rem) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.form-input::placeholder { color: transparent; }
.form-input:focus {
  border-color: #c5a059;
  background: white;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}
.form-input.is-invalid {
  border-color: #ef4444;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
  top: -0.4rem;
  left: 0.625rem;
  font-size: 8px;
  color: #c5a059;
  background: white;
  padding: 0 0.375rem;
  letter-spacing: 0.12em;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}
@media (min-width: 640px) { .form-textarea { min-height: 150px; } }

.form-error {
  margin-top: 0.42rem;
  display: block;
  color: #b91c1c;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: #c5a059;
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  padding: 1.125rem 2rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 480px) {
  .form-submit { width: auto; padding: 1.125rem 2.5rem; }
}
.form-submit:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.form-submit.is-loading {
  color: transparent;
  pointer-events: none;
}
.form-submit.is-loading::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  top: 50%;
  left: 50%;
  margin-top: -0.625rem;
  margin-left: -0.625rem;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================
   FAQ Section
   ===================== */
.faq-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 640px) { .faq-section { padding-top: 5rem; padding-bottom: 5rem; } }
@media (min-width: 768px) { .faq-section { padding-top: 6rem; padding-bottom: 6rem; } }

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) { .faq-header { margin-bottom: 3.5rem; } }

.faq-label {
  display: block;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #c5a059;
  margin-bottom: 0.875rem;
}
.faq-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.875rem;
}
@media (min-width: 480px) { .faq-title { font-size: 1.875rem; } }
@media (min-width: 768px) { .faq-title { font-size: 2.5rem; } }
.faq-desc {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .faq-grid { grid-template-columns: repeat(2, 1fr); } }

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: white;
  transition: all 0.3s;
}
.faq-item.active {
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.faq-question {
  width: 100%;
  padding: 1.125rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.875rem;
  line-height: 1.4;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
}
@media (min-width: 640px) { .faq-question { padding: 1.25rem 1.5rem; font-size: 0.9375rem; } }

.faq-icon {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  color: #94a3b8;
  transition: transform 0.3s, color 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #c5a059;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}
.faq-answer p {
  padding: 0 1.25rem 1.25rem;
  color: #64748b;
  line-height: 1.7;
  font-size: 0.875rem;
  padding-top: 0;
}
@media (min-width: 640px) {
  .faq-answer p { padding: 0 1.5rem 1.5rem; }
}
