/* ============================================================
   CONTACT PAGE — Adelie IT
   Extends styles.css design tokens and base styles
   ============================================================ */

/* ---------- Contact Hero ---------- */
.contact-hero {
  padding: 140px 0 64px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(11,74,162,.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(11,74,162,.06) 0%, transparent 70%),
    linear-gradient(180deg, #f8faff 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230b4aa2' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.contact-hero-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.contact-hero h1 {
  font-size: clamp(2rem, 3.5vw + .8rem, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.contact-hero p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Contact Main Grid ---------- */
.contact-main {
  padding: 0 0 80px;
  background: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 32px;
  align-items: start;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}

/* ---------- Form Card (extends base .contact-form-card) ---------- */
.contact-main .contact-form-card {
  padding: 40px 36px;
}

/* Form rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Select styling */
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(11,74,162,.12);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .92rem;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select:focus {
  border-color: var(--adelie);
  box-shadow: 0 0 0 3px rgba(11,74,162,.08);
}

/* Required asterisk */
.required {
  color: #ef4444;
  font-weight: 400;
}

/* Form messages */
.form-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  line-height: 1.5;
}
.form-message[hidden] {
  display: none;
}
.form-message--success {
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.2);
  color: #065f46;
}
.form-message--success svg {
  flex-shrink: 0;
  color: #34d399;
  margin-top: 1px;
}
.form-message--error {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.15);
  color: #991b1b;
}

/* ---------- Sidebar ---------- */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: #fff;
  border: 1px solid rgba(11,74,162,.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}
.sidebar-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.sidebar-item:last-child {
  margin-bottom: 0;
}
.sidebar-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(11,74,162,.07);
  color: var(--adelie);
  flex-shrink: 0;
}
.sidebar-item h4 {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--ink);
}
.sidebar-item p {
  font-size: .88rem;
  color: var(--muted);
}
.sidebar-item a {
  color: var(--adelie);
  font-weight: 500;
}
.sidebar-item a:hover {
  color: var(--adelie-light);
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-number {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--adelie), var(--adelie-light));
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.step p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Service Area ---------- */
.service-area {
  padding: 64px 0;
  background: var(--light);
}
.service-area-inner {
  text-align: center;
}
.area-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.area-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid rgba(11,74,162,.1);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- Trust Signals ---------- */
.trust-signals {
  padding: 64px 0 80px;
  background: #fff;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  text-align: center;
  padding: 24px 16px;
}
.trust-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(11,74,162,.08), rgba(11,74,162,.03));
  color: var(--adelie);
  margin: 0 auto 14px;
}
.trust-item h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.trust-item p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Active nav link */
.nav-links a.active {
  color: var(--adelie);
  background: rgba(11,74,162,.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 120px 0 48px;
  }
  .contact-hero h1 {
    font-size: 1.8rem;
  }
  .contact-main .contact-form-card {
    padding: 28px 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .area-pills {
    flex-direction: column;
    align-items: center;
  }
}
