/* =========================================================
   Moniphy Energy & Commodities — Application Form
   ========================================================= */

:root{
  --navy: #0b1e33;
  --navy-dark: #071522;
  --green: #1fae4b;
  --green-dark: #158a3a;
  --green-light: #eafaf0;
  --amber: #f5a623;
  --grey-bg: #f4f6f8;
  --border: #d9e1e7;
  --text-dark: #16232f;
  --text-mid: #52646f;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11,30,51,.15);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--grey-bg);
  line-height: 1.5;
}
a{ text-decoration:none; color: inherit; }
h1,h2,h3{ margin:0 0 .5em; font-weight: 800; }
p{ margin:0 0 1em; }
img{ max-width:100%; display:block; }

/* ---------- Header ---------- */
.site-header{
  background: var(--navy);
  color:#fff;
  padding: 14px 24px;
}
.header-inner{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.brand{ display:flex; align-items:baseline; gap:10px; }
.brand-icon{ color: var(--green); font-size: 1.3rem; }
.brand-name{ font-size:1.4rem; font-weight:800; letter-spacing:.5px; }
.brand-division{ font-size:.7rem; letter-spacing:1.5px; color:#9fb4c6; font-weight:600; }
.header-contact{ text-align:right; font-size:.95rem; }
.header-contact a{ color:#fff; font-weight:700; display:block; }
.header-contact a i{ color: var(--green); margin-right:6px; }
.header-tagline{ font-size:.75rem; color:#9fb4c6; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: url('../images/hero-refinery.jpg') center center / cover no-repeat;
  color:#fff;
  padding: 80px 24px 70px;
  text-align:center;
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(7,21,34,.88), rgba(7,21,34,.93));
}
.hero-content{ position:relative; max-width: 820px; margin: 0 auto; }
.hero-eyebrow{
  color: var(--green);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: .8rem;
  margin-bottom: 14px;
}
.hero h1{ font-size: 2.3rem; line-height:1.25; margin-bottom: 16px; }
.hero-sub{ font-size: 1.05rem; color:#d3dde5; max-width: 640px; margin: 0 auto 26px; }
.hero-cta{ display:inline-flex; align-items:center; gap:10px; font-size:1.05rem; padding: 15px 30px; }
.hero-trust{
  margin-top: 36px;
  display:flex;
  justify-content:center;
  gap: 30px;
  flex-wrap: wrap;
  font-size:.85rem;
  color:#b9c8d4;
}
.hero-trust i{ color: var(--green); margin-right:6px; }

/* ---------- Buttons ---------- */
.btn{
  border:none;
  cursor:pointer;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  transition: all .15s ease;
}
.btn-primary{
  background: var(--green);
  color:#fff;
  padding: 14px 26px;
  font-size: 1rem;
}
.btn-primary:hover{ background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary{
  background:#fff;
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 14px 26px;
  font-size: 1rem;
}
.btn-secondary:hover{ background:#f1f4f6; }
.btn:disabled{ opacity:.55; cursor:not-allowed; }

/* ---------- Form Section / Card ---------- */
.form-section{
  padding: 40px 20px 60px;
  margin-top: -60px;
  position: relative;
  z-index: 5;
}
.form-card{
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-progress{ padding: 22px 30px 0; }
.progress-labels{
  display:flex; justify-content:space-between;
  font-size:.72rem; font-weight:700; letter-spacing:1px;
  color: var(--text-mid); margin-bottom:10px;
}
#step-label{ color: var(--navy); }
.progress-track{
  height:6px; background: var(--border); border-radius: 4px; overflow:hidden;
}
.progress-fill{
  height:100%; width:0%; background: var(--green);
  transition: width .3s ease;
}

#steps-container{ padding: 26px 30px 34px; }

.form-step{ display:none; animation: fadeIn .25s ease; }
.form-step.active{ display:block; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }

.step-question{
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.step-question .req{ color: var(--green); }
.step-help{ color: var(--text-mid); font-size:.9rem; margin-bottom: 20px; }

/* role select cards */
.role-choice{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 10px;
}
.role-card{
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align:center;
  cursor:pointer;
  transition: all .15s ease;
  background:#fafcfd;
}
.role-card i{ font-size: 1.8rem; color: var(--navy); margin-bottom: 10px; display:block; }
.role-card h4{ margin:0 0 6px; font-size:1.05rem; color: var(--navy); }
.role-card p{ margin:0; font-size:.82rem; color: var(--text-mid); }
.role-card.selected{ border-color: var(--green); background: var(--green-light); }
.role-card.selected i{ color: var(--green-dark); }

/* inputs */
.field-group{ margin-bottom: 18px; }
.field-row{ display:flex; gap:16px; flex-wrap:wrap; }
.field-row .field-group{ flex:1; min-width: 220px; }
label.field-label{ display:block; font-size:.82rem; font-weight:600; color: var(--text-mid); margin-bottom:6px; }

input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea{
  width:100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background:#fff;
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus{
  outline:none; border-color: var(--green);
}
textarea{ min-height: 100px; resize: vertical; }

/* choice pills (single choice buttons, non role) */
.pill-options{ display:flex; flex-wrap:wrap; gap:10px; }
.pill{
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 10px 18px;
  font-size:.92rem;
  cursor:pointer;
  background:#fff;
  color: var(--text-dark);
  font-weight:600;
  transition: all .15s ease;
}
.pill.selected{ border-color: var(--green); background: var(--green-light); color: var(--green-dark); }

/* checkbox / consent */
.consent-row{ display:flex; align-items:flex-start; gap:10px; margin-top: 6px; }
.consent-row input{ width:auto; margin-top:3px; }
.consent-row label{ font-size:.85rem; color: var(--text-mid); }

.error-msg{ color:#d64545; font-size:.8rem; margin-top:6px; display:none; }
.field-group.has-error input,
.field-group.has-error select,
.field-group.has-error textarea{ border-color:#d64545; }
.field-group.has-error .error-msg{ display:block; }

/* nav buttons */
.step-nav{
  display:flex; justify-content:space-between; margin-top: 26px; gap: 12px;
}
.step-nav .spacer{ flex:1; }

/* summary review */
.review-list{ border:1px solid var(--border); border-radius: 8px; overflow:hidden; margin-bottom: 20px; }
.review-row{
  display:flex; justify-content:space-between; gap:12px;
  padding: 10px 14px; font-size:.88rem; border-bottom:1px solid var(--border);
}
.review-row:last-child{ border-bottom:none; }
.review-row dt{ color: var(--text-mid); font-weight:600; }
.review-row dd{ margin:0; text-align:right; color: var(--text-dark); font-weight:600; max-width:60%; }

/* success screen */
.success-box{ text-align:center; padding: 20px 0; }
.success-box i{ font-size: 3.2rem; color: var(--green); margin-bottom: 16px; }
.success-box h2{ color: var(--navy); }
.success-box p{ color: var(--text-mid); }

/* ---------- Why section ---------- */
.why-section{ background:#fff; padding: 60px 20px; }
.why-inner{ max-width: 1080px; margin:0 auto; text-align:center; }
.why-section h2{ color: var(--navy); font-size: 1.7rem; margin-bottom: 34px; }
.why-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.why-card{
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align:left;
}
.why-card i{ color: var(--green-dark); font-size:1.5rem; margin-bottom: 10px; }
.why-card h3{ font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.why-card p{ font-size:.85rem; color: var(--text-mid); margin:0; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy-dark);
  color:#8ea3b3;
  text-align:center;
  padding: 18px 16px;
  font-size:.78rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .why-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px){
  .hero{ padding: 60px 18px 90px; }
  .hero h1{ font-size: 1.7rem; }
  .form-section{ margin-top: -50px; padding: 0 12px 50px; }
  #steps-container{ padding: 22px 18px 28px; }
  .role-choice{ grid-template-columns: 1fr; }
  .field-row{ flex-direction: column; }
  .why-grid{ grid-template-columns: 1fr; }
  .header-inner{ justify-content:center; text-align:center; }
  .header-contact{ text-align:center; }
}
