/* ================================================================
   PSIR Contact Page – Stylesheet
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1a6fc4;
  --blue-light: #3b8ee8;
  --blue-dark:  #0d4f95;
  --slate:      #2d3a4a;
  --slate-mid:  #4a5a6e;
  --slate-light:#8fa0b4;
  --bg:         #eef4fb;
  --bg-card:    #ffffff;
  --green:      #22c776;
  --red:        #e8394a;
  --radius:     18px;
}

html, body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--slate);
}

/* decorative blobs */
body::before {
  content: '';
  position: fixed; top: -120px; left: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(26,111,196,.13) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; bottom: -100px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(34,199,118,.10) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 0;
}

/* ── Page wrapper ────────────────────────────────────────────────── */
.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 20px 48px;
  animation: fadeUp .6s ease both;
}

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

/* ── Header / Logo ───────────────────────────────────────────────── */
.header {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; margin-bottom: 28px;
  width: 100%; max-width: 900px;
}

.logo-wrap {
  background: white;
  border-radius: 20px;
  padding: 14px 28px;
  box-shadow: 0 4px 24px rgba(26,111,196,.12);
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

/* ── Alert banners ───────────────────────────────────────────────── */
.alert {
  width: 100%; max-width: 900px;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: .9rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.alert-success { background: #e6faf2; color: #1a7a50; border: 1px solid #a3e6c8; }
.alert-error   { background: #fdeef0; color: #9b1c2a; border: 1px solid #f5b8be; }
.alert-close {
  background: none; border: none; cursor: pointer;
  font-size: 1rem; color: inherit; opacity: .6; flex-shrink: 0;
}
.alert-close:hover { opacity: 1; }

/* ── Two-column layout ───────────────────────────────────────────── */
.two-col {
  width: 100%; max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.left-col { display: flex; flex-direction: column; gap: 20px; }

/* ── Hero card ───────────────────────────────────────────────────── */
.hero-card {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  border-radius: var(--radius);
  padding: 28px 26px;
  color: white;
  box-shadow: 0 8px 32px rgba(26,111,196,.22);
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.07); border-radius: 50%;
}
.hero-card::after {
  content: '';
  position: absolute; bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.05); border-radius: 50%;
}
.hero-card h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.55rem; font-weight: 800;
  margin-bottom: 10px; line-height: 1.25;
  position: relative; z-index: 1;
}
.hero-card p {
  font-size: .9rem; opacity: .88; line-height: 1.6;
  position: relative; z-index: 1;
}
.pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; position: relative; z-index: 1;
}
.pill {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 100px;
  padding: 5px 13px;
  font-size: .75rem; font-weight: 600; color: white;
}

/* ── Generic white card ──────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 2px 16px rgba(45,58,74,.08);
}

.card-title {
  font-family: 'Manrope', sans-serif;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--slate-light); margin-bottom: 16px;
}

/* ── People list ─────────────────────────────────────────────────── */
.person {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #edf2f8;
}
.person:last-child { border-bottom: none; padding-bottom: 0; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'Manrope', sans-serif;
  font-weight: 800; font-size: .88rem; flex-shrink: 0;
}

.person-info { flex: 1; min-width: 0; }
.person-name {
  font-family: 'Manrope', sans-serif;
  font-size: .92rem; font-weight: 700; color: var(--slate);
}
.person-contact {
  font-size: .76rem; color: var(--slate-mid);
  margin-top: 3px; line-height: 1.7;
}
.person-contact a { color: var(--blue); text-decoration: none; font-weight: 500; }
.person-contact a:hover { text-decoration: underline; }

.person-actions { display: flex; gap: 7px; flex-shrink: 0; }

.btn-sm {
  width: 36px; height: 36px; border-radius: 10px;
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s;
  font-size: 1rem; text-decoration: none;
}
.btn-sm:hover { transform: scale(1.12); }
.btn-sm.call { background: #e8f1fc; }
.btn-sm.mail { background: #e8faf2; }

/* ── Form ────────────────────────────────────────────────────────── */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.field { margin-bottom: 13px; display: flex; flex-direction: column; gap: 5px; }

label {
  font-size: .72rem; font-weight: 600;
  color: var(--slate-mid); text-transform: uppercase; letter-spacing: .07em;
}
.req { color: var(--red); }

input, textarea, select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #d8e4f0; border-radius: 11px;
  font-family: 'DM Sans', sans-serif; font-size: .92rem;
  color: var(--slate); background: #f7fafd;
  outline: none; transition: border-color .2s, box-shadow .2s;
  resize: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59,142,232,.12);
  background: white;
}
input.error, textarea.error { border-color: var(--red); }

.field-error {
  font-size: .72rem; color: var(--red);
  margin-top: 2px; display: none;
}
.field-error.visible { display: block; }

.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue-light));
  color: white; border: none; border-radius: 11px;
  font-family: 'Manrope', sans-serif; font-size: .95rem; font-weight: 800;
  cursor: pointer; transition: opacity .2s, transform .15s; margin-top: 4px;
  box-shadow: 0 4px 16px rgba(26,111,196,.25);
}
.btn-submit:hover  { opacity: .92; transform: translateY(-1px); }
.btn-submit:active { transform: scale(.98); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  font-size: .74rem; color: var(--slate-light);
  text-align: center; margin-top: 24px; line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
  .row-2   { grid-template-columns: 1fr; }
}
