/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:   #1a3c6e;
  --accent:    #e8a020;
  --light:     #f4f7fb;
  --gray:      #6b7280;
  --border:    #d1d9e6;
  --white:     #ffffff;
  --radius:    8px;
  --shadow:    0 4px 18px rgba(26,60,110,.10);
}
body { font-family: 'Segoe UI', Arial, sans-serif; background: var(--light); color: #222; }
a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  padding: 18px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow);
}
.header-brand { display: flex; align-items: center; gap: 14px; }
.logo-box {
  width: 60px; height: 60px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.6rem;
}
.brand-text h1 { font-size: 1.4rem; color: var(--primary); font-weight: 800; letter-spacing: 1px; }
.brand-text p  { font-size: .82rem; color: var(--gray); }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .88rem; color: var(--gray); }
.header-contact span { display: flex; align-items: center; gap: 6px; }
.header-contact i { color: var(--primary); }

/* ===== NAV ===== */
nav {
  background: var(--primary);
  padding: 0 5%;
  display: flex;
  justify-content: center;
}
nav ul { list-style: none; display: flex; flex-wrap: wrap; }
nav ul li a {
  display: block;
  padding: 14px 22px;
  color: rgba(255,255,255,.80);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color .2s, background .2s;
}
nav ul li a:hover,
nav ul li a:focus  { color: var(--accent); background: rgba(255,255,255,.07); outline: none; }
nav ul li a.active { color: var(--accent); border-bottom: 3px solid var(--accent); }

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%);
  color: var(--white);
  text-align: center;
  padding: 48px 5% 56px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.hero h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.hero p  { font-size: 1rem; opacity: .85; }

/* ===== MAIN ===== */
main { padding: 0 5% 60px; margin-top: -32px; }

/* ===== FORM CARD ===== */
.form-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 40px 48px;
  max-width: 820px;
  margin: 0 auto;
}
.form-card-header { text-align: center; margin-bottom: 32px; }
.form-card-header .icon-user {
  width: 64px; height: 64px;
  background: var(--light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.6rem; color: var(--primary);
}
.form-card-header h3 { font-size: 1.3rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.form-card-header p  { color: var(--gray); font-size: .88rem; margin-top: 4px; }

/* ===== FORM LAYOUT ===== */
.form-row { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.form-group { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.form-group.full { flex: 1 1 100%; }

label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
label .req { color: var(--accent); }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i {
  position: absolute; left: 12px;
  color: var(--gray); font-size: .9rem;
  pointer-events: none;
}
input, select {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: #222;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,110,.12);
}
input:hover, select:hover { border-color: #a0aec0; }
select { appearance: none; cursor: pointer; }
.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--gray); pointer-events: none;
}
.select-wrapper select { padding-left: 36px; }

/* ===== CHECKBOX ===== */
.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 12px 0 28px;
  font-size: .88rem; color: var(--gray);
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px; padding: 0;
  margin-top: 2px; cursor: pointer; accent-color: var(--primary);
  flex-shrink: 0;
}
.checkbox-row a { color: var(--primary); text-decoration: underline; font-weight: 600; }
.checkbox-row a:hover { color: var(--accent); }

/* ===== BUTTON ===== */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(232,160,32,.35);
}
.btn-submit:hover  { background: #cf8c12; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(232,160,32,.45); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:focus  { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ===== FOOTER ===== */
footer { background: var(--primary); color: rgba(255,255,255,.85); padding: 48px 5% 0; }
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding-bottom: 36px;
}
.footer-col { flex: 1; min-width: 160px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 14px; }
.footer-col p, .footer-col li { font-size: .84rem; line-height: 1.8; color: rgba(255,255,255,.75); }
.footer-col ul { list-style: none; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col .info-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; font-size: .84rem; }
.footer-col .info-item i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.social-icons { display: flex; gap: 10px; margin-top: 14px; }
.social-icons a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: .9rem;
  transition: background .2s;
}
.social-icons a:hover { background: var(--accent); }
.footer-bottom {
  text-align: center;
  padding: 16px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  header { flex-direction: column; align-items: flex-start; }
  .header-contact { align-items: flex-start; }
  .form-card { padding: 28px 20px; }
  .form-row { flex-direction: column; }
  .hero h2 { font-size: 1.5rem; }
  nav ul li a { padding: 12px 14px; font-size: .8rem; }
}