/* ============================================================
   Contact Page Styles
   ============================================================ */

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  position: relative;
  background: var(--grad-hero);
  padding: 160px 0 96px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 86, 219, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 219, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 70% 80% at 30% 50%,
    black 30%,
    transparent 100%
  );
}
.page-hero-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a56db 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.3;
  top: -200px;
  right: -100px;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.page-hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 580px;
}

/* ── Contact Section ──────────────────────────────────────── */
.contact-section {
  padding: var(--section-py) 0;
  background: var(--bg-light);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 620px;
  gap: 56px;
  align-items: start;
}

/* ── Form ─────────────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.form-heading {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group:last-of-type {
  margin-bottom: 0;
}

label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.req {
  color: var(--primary);
  margin-left: 2px;
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}
input.error,
select.error,
textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 13px;
  color: #ef4444;
  min-height: 18px;
  display: block;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
}

/* Submit button states */
#submitBtn.loading {
  opacity: 0.8;
  pointer-events: none;
}
#submitBtn.loading .btn-text::after {
  content: "…";
}

/* Success */
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}
.form-success h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 6px;
}
.form-success p {
  font-size: 14px;
  color: #047857;
}
.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  flex-shrink: 0;
}

/* ── Info Cards ──────────────────────────────────────────── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.info-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.company-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.address-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.address-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(26, 86, 219, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-detail:last-child {
  margin-bottom: 0;
}
.contact-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.contact-link:hover {
  color: var(--primary);
}

/* Dark card */
.info-card-dark {
  background: var(--navy-900);
  border-color: rgba(255, 255, 255, 0.06);
}
.info-card-dark h3 {
  color: rgba(255, 255, 255, 0.4);
}
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.hours-time {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
.hours-time.closed {
  color: rgba(255, 255, 255, 0.3);
}
.hours-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

/* Map placeholder */
.map-card {
  padding: 0;
  overflow: hidden;
}
.map-placeholder {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #0d1630 0%, #132040 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}
.map-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 86, 219, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 219, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-pin {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px rgba(26, 86, 219, 0.2);
}
.map-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}
.map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition:
    color var(--transition),
    background var(--transition);
  border-top: 1px solid var(--border);
}
.map-link:hover {
  color: var(--primary-dark);
  background: rgba(26, 86, 219, 0.04);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    grid-row: 1;
  }
}
@media (max-width: 768px) {
  .contact-form-wrap {
    padding: 28px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-note {
    max-width: 100%;
  }
}
