@import url("common.css");

/* ── Contact layout ──────────────────────── */
.contact-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

/* ── Info panel ──────────────────────────── */
.contact-info {
  background: var(--dark);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  color: white;
}
.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.4rem;
}
.contact-info > p {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.contact-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.contact-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: var(--r-sm);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 0.3rem;
}
.contact-text p,
.contact-text a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.55;
  text-decoration: none;
  transition: color var(--dur);
}
.contact-text a:hover { color: var(--coral); }

/* ── Form ────────────────────────────────── */
.contact-form {
  background: white;
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--sh-md);
  border: 1px solid var(--border);
}
.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.contact-form > p {
  color: var(--text-mid);
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color var(--dur), box-shadow var(--dur);
  outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,94,94,0.12);
  background: white;
}
.form-control::placeholder { color: #c0c0d0; }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--grad);
  color: white;
  border: none;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-family: inherit;
  margin-top: 0.5rem;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-brand);
}

/* ── Map ─────────────────────────────────── */
.map-section {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 2rem 5rem;
}
.map-section h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}
.map-section iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  display: block;
}

/* Terms tab styles (shared via contact.css since terms.css imports common too) */
.terms-container { max-width: 860px; margin: 0 auto; }

.terms-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  gap: 0;
}
.terms-tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: all var(--dur) var(--ease);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.terms-tab:hover { color: var(--coral); }
.terms-tab.active { color: var(--coral); border-bottom-color: var(--coral); }

.terms-content { display: none; padding: 0.5rem 0; }
.terms-content.active { display: block; animation: fadeIn 0.4s var(--ease); }

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

.terms-content h2 { font-size: 1.5rem; color: var(--coral); margin: 2rem 0 0.75rem; font-weight: 800; }
.terms-content h3 { font-size: 1.1rem; color: var(--text); margin: 1.5rem 0 0.5rem; font-weight: 700; }
.terms-content p { color: var(--text-mid); margin-bottom: 1rem; line-height: 1.7; font-size: 0.93rem; }
.terms-content ul, .terms-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.terms-content li { color: var(--text-mid); margin-bottom: 0.5rem; font-size: 0.93rem; line-height: 1.65; }

.highlight-box {
  background: rgba(255,94,94,0.05);
  border-left: 4px solid var(--coral);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.5rem 0;
}
.highlight-box h4 { color: var(--coral); font-size: 0.9rem; font-weight: 800; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.5px; }

.section-divider { height: 1px; background: var(--border); margin: 2rem 0; }
.last-updated { font-style: italic; color: var(--text-light); font-size: 0.85rem; margin-top: 2rem; text-align: right; }

.table-container { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table th, table td { padding: 0.75rem 1rem; border: 1px solid var(--border); }
table th { background: var(--bg-soft); font-weight: 700; color: var(--text); text-align: left; }
table tr:nth-child(even) { background: rgba(0,0,0,0.02); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-wrapper { padding: 2rem 1.25rem 4rem; }
  .map-section { padding: 0 1.25rem 4rem; }
  .terms-tabs { flex-wrap: wrap; }
}
