/* Contact page styles (professional, beautiful) */

.contact-hero {
  background: linear-gradient(135deg, var(--dark) 0%, rgba(16, 185, 129, 0.9) 100%);
  color: white;
  padding: 4.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.contact-hero::before,
.contact-hero::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
}

.contact-hero::before {
  left: -260px;
  top: -320px;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 1) 0%, rgba(16, 185, 129, 0) 65%);
}

.contact-hero::after {
  right: -260px;
  bottom: -360px;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 1) 0%, rgba(245, 158, 11, 0) 60%);
}

.contact-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 1rem;
}

.contact-hero h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.contact-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  margin-bottom: 1.6rem;
  max-width: 680px;
}

.contact-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.contact-badge i {
  color: #fbbf24;
}

.contact-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-contact {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.28);
}

.btn-contact:hover {
  transform: translateY(-2px);
}

.btn-contact-ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-contact-ghost:hover {
  border-color: rgba(245, 158, 11, 0.95);
  background: rgba(0, 0, 0, 0.15);
}

.contact-hero-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.contact-hero-card-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 1rem;
}

.contact-hero-card-icon i {
  color: #34d399;
  font-size: 1.5rem;
}

.contact-hero-card h3 {
  margin-bottom: 0.6rem;
}

.contact-hero-card p {
  margin: 0 0 1rem 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.contact-hero-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-weight: 800;
  font-size: 0.9rem;
}

.pill i {
  color: #fbbf24;
}

/* Main contact layout */
.contact-page {
  padding: 3.5rem 0 2.5rem;
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-side-card {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.contact-sidebar h2 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-side-card p {
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.contact-channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.channel {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(16, 185, 129, 0.04);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.channel-icon i {
  color: var(--primary);
}

.channel-title {
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.channel-link,
.channel-text {
  color: var(--gray);
}

.channel-link:hover {
  color: var(--primary);
}

.contact-map {
  margin-top: 1rem;
  overflow: hidden;
}

.contact-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-map-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.map-note {
  font-size: 0.85rem;
  color: var(--gray);
}

.map-placeholder {
  position: relative;
  border-radius: 14px;
  border: 1px dashed rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.10), rgba(245, 158, 11, 0.06));
  height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.map-gridlines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(16, 185, 129, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

.map-pin {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin i {
  color: var(--primary);
  font-size: 1.5rem;
}

.map-label {
  font-weight: 900;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(8px);
}

/* Form */
.contact-main {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.contact-form-wrap h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-form-subtitle {
  color: var(--gray);
  margin-bottom: 1.3rem;
}

.contact-form-modern .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-weight: 800;
  color: var(--dark);
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: white;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(16, 185, 129, 0.85);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.helper {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: -0.2rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

#contactSubmitBtn {
  width: 100%;
  justify-content: center;
}

#contactSubmitBtn .btn-spinner {
  display: none;
}

.contact-form-modern .btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  animation: contactSpin 0.8s linear infinite;
}

@keyframes contactSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* when sending */
.contact-form-modern.sending #contactSubmitBtn {
  opacity: 0.95;
}

.contact-form-modern.sending #contactSubmitBtn .btn-content {
  opacity: 0.85;
}

.contact-form-modern.sending #contactSubmitBtn .btn-spinner {
  display: inline-block;
}

.contact-form-modern.sending #contactSubmitBtn {
  cursor: progress;
}

.privacy-note {
  color: var(--gray);
  font-size: 0.9rem;
  text-align: left;
}

.privacy-note a {
  color: var(--primary);
  text-decoration: underline;
}

.form-status {
  margin-top: 0.5rem;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #15803d;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

.contact-small-trust {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.trust-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gray);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
}

.trust-inline i {
  color: var(--primary);
}

/* Quick FAQ */
.contact-faq {
  padding: 2.5rem 0 4rem;
  background: white;
}

.contact-faq h2 {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 0.6rem;
}

.faq-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 1.75rem;
}

.faq-list.faq-contact .faq-item {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark mode */
body.dark-mode .contact-hero {
  background: linear-gradient(135deg, #0b0f1a 0%, #064e3b 100%);
}

body.dark-mode .contact-page,
body.dark-mode .contact-faq {
  background: #0b0f1a;
}

body.dark-mode .contact-side-card,
body.dark-mode .contact-main {
  background: #0f172a;
  border-color: rgba(51, 65, 85, 0.9);
}

body.dark-mode .contact-channel-grid .channel {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(51, 65, 85, 0.9);
}

body.dark-mode .channel-title,
body.dark-mode .contact-main h2,
body.dark-mode .field label {
  color: #f1f5f9;
}

body.dark-mode .contact-side-card p,
body.dark-mode .contact-form-subtitle,
body.dark-mode .helper,
body.dark-mode .privacy-note,
body.dark-mode .faq-sub,
body.dark-mode .trust-inline {
  color: #94a3b8;
}

body.dark-mode .field input,
body.dark-mode .field select,
body.dark-mode .field textarea {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .map-placeholder {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(245, 158, 11, 0.08));
}

body.dark-mode .map-label {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(51, 65, 85, 0.8);
  color: #e2e8f0;
}

body.dark-mode .contact-side-card,
body.dark-mode .contact-main,
body.dark-mode .contact-faq .container {
  color: #e2e8f0;
}

@media (max-width: 980px) {
  .contact-hero-inner {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .contact-form-modern .form-row {
    grid-template-columns: 1fr;
  }
}

