/* ==========================================================================
   Aurrum Careers — Checklist Form Official Brand Stylesheet
   Homepage Typography: "Cormorant Garamond" (Serif) + "Poppins" (Sans-Serif)
   ========================================================================== */

:root {
  --ac-navy-1: #003649;
  --ac-navy-2: #004564;
  --ac-navy-3: #002D3C;
  --ac-gold: #BC9B66;
  --ac-gold-dark: #A98B56;
  --ac-gold-light: #D4B87E;
  --ac-text: #FFFFFF;
  --ac-text-light: #C8E0EC;
  --ac-text-muted: #8FB8CC;
  --ac-text-on-gold: #1B2B33;
  --ac-line-gold: rgba(188, 155, 102, 0.35);
  --ac-font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ac-font-serif: "Cormorant Garamond", Georgia, serif;
  --ac-err: #FF6B6B;
  --ac-err-bg: rgba(255, 107, 107, 0.12);
  --ac-ok: #22965A;
  --ac-radius-sm: 10px;
  --ac-radius-card: 20px;
  --ac-radius-pill: 999px;
  --ac-shadow: 0 24px 50px rgba(0, 20, 28, 0.35);
}

.aurrum-checklist-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px) clamp(48px, 6vw, 96px);
  font-family: var(--ac-font-sans);
  color: var(--ac-text);
  background: var(--ac-navy-1);
  box-sizing: border-box;
}

/* Header Masthead */
.aurrum-checklist-wrap header.masthead {
  border-bottom: 1px solid var(--ac-line-gold);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.aurrum-checklist-wrap .masthead-eyebrow {
  font-family: var(--ac-font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ac-gold-light);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

.aurrum-checklist-wrap h1 {
  font-family: var(--ac-font-serif);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 46px);
  margin: 0 0 12px;
  letter-spacing: 0.01em;
  color: var(--ac-text);
  line-height: 1.15;
}

.aurrum-checklist-wrap .lede {
  font-family: var(--ac-font-sans);
  color: var(--ac-text-light);
  font-size: clamp(14px, 1.8vw, 16px);
  max-width: 58ch;
  margin: 0;
  line-height: 1.6;
  font-weight: 300;
}

/* Progress Rail */
.aurrum-checklist-wrap .rail {
  display: flex;
  justify-content: space-between;
  margin: 32px 0 40px;
  position: relative;
}

.aurrum-checklist-wrap .rail::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--ac-line-gold);
  z-index: 0;
}

.aurrum-checklist-wrap .rail-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.aurrum-checklist-wrap .rail-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ac-line-gold);
  background: var(--ac-navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ac-text-muted);
  font-weight: 600;
  font-family: var(--ac-font-sans);
  transition: all 0.3s ease;
}

.aurrum-checklist-wrap .rail-step.done .rail-dot {
  background: var(--ac-gold);
  border-color: var(--ac-gold);
  color: var(--ac-text-on-gold);
}

.aurrum-checklist-wrap .rail-step.active .rail-dot {
  border-color: var(--ac-gold-light);
  background: var(--ac-navy-1);
  color: var(--ac-gold-light);
  box-shadow: 0 0 12px rgba(188, 155, 102, 0.4);
}

.aurrum-checklist-wrap .rail-label {
  font-family: var(--ac-font-sans);
  font-size: 12px;
  color: var(--ac-text-muted);
  text-align: center;
  transition: color 0.3s ease;
}

.aurrum-checklist-wrap .rail-step.active .rail-label {
  color: var(--ac-gold-light);
  font-weight: 600;
}

/* Card Panel */
.aurrum-checklist-wrap .card {
  background: linear-gradient(145deg, var(--ac-navy-2), var(--ac-navy-3));
  border: 1px solid var(--ac-line-gold);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--ac-radius-card);
  box-shadow: var(--ac-shadow);
}

.aurrum-checklist-wrap .section-title {
  font-family: var(--ac-font-serif);
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 600;
  color: var(--ac-text);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.aurrum-checklist-wrap .section-note {
  font-family: var(--ac-font-sans);
  color: var(--ac-text-muted);
  font-size: 14px;
  margin: 0 0 28px;
  line-height: 1.5;
  font-weight: 300;
}

/* Fields & Input Text Visibility Fixes */
.aurrum-checklist-wrap .field {
  margin-bottom: 22px;
}

.aurrum-checklist-wrap .field label {
  display: block;
  font-family: var(--ac-font-sans);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #FFFFFF !important;
}

.aurrum-checklist-wrap .field label .req {
  color: var(--ac-gold-light);
  margin-left: 3px;
  font-weight: 700;
}

/* INPUT VISIBILITY OVERRIDE — High Specificity & Webkit Fixes */
.aurrum-checklist-wrap input[type="text"],
.aurrum-checklist-wrap input[type="email"],
.aurrum-checklist-wrap input[type="tel"],
.aurrum-checklist-wrap input[type="date"],
.aurrum-checklist-wrap input[type="number"],
.aurrum-checklist-wrap textarea,
.aurrum-checklist-wrap select {
  width: 100% !important;
  padding: 13px 16px !important;
  border: 1.5px solid var(--ac-line-gold) !important;
  border-radius: var(--ac-radius-sm) !important;
  font-size: 15px !important;
  font-family: var(--ac-font-sans) !important;
  background-color: #002D3C !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  line-height: 1.5 !important;
}

/* Placeholder Styling */
.aurrum-checklist-wrap input::placeholder,
.aurrum-checklist-wrap textarea::placeholder {
  color: #8FB8CC !important;
  -webkit-text-fill-color: #8FB8CC !important;
  opacity: 0.75 !important;
}

/* Webkit Autofill Override (Fixes black text on dark background when browser autofills) */
.aurrum-checklist-wrap input:-webkit-autofill,
.aurrum-checklist-wrap input:-webkit-autofill:hover, 
.aurrum-checklist-wrap input:-webkit-autofill:focus,
.aurrum-checklist-wrap textarea:-webkit-autofill,
.aurrum-checklist-wrap select:-webkit-autofill {
  -webkit-text-fill-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0px 1000px #002D3C inset !important;
  border-color: var(--ac-gold) !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* Webkit Date Picker Icon Color */
.aurrum-checklist-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(1) saturate(3) hue-rotate(5deg);
  cursor: pointer;
  opacity: 0.9;
}

/* Input Focus States */
.aurrum-checklist-wrap input:focus,
.aurrum-checklist-wrap textarea:focus,
.aurrum-checklist-wrap select:focus {
  outline: none !important;
  border-color: var(--ac-gold) !important;
  background-color: #00222E !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(188, 155, 102, 0.4) !important;
}

/* Select Dropdown Option Items */
.aurrum-checklist-wrap select option {
  background-color: #003649 !important;
  color: #FFFFFF !important;
  padding: 10px !important;
}

.aurrum-checklist-wrap .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Error States */
.aurrum-checklist-wrap .field.error input,
.aurrum-checklist-wrap .field.error select,
.aurrum-checklist-wrap .field.error textarea {
  border-color: var(--ac-err) !important;
  background-color: rgba(255, 107, 107, 0.08) !important;
}

.aurrum-checklist-wrap .error-msg {
  display: none;
  font-family: var(--ac-font-sans);
  color: var(--ac-err);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

.aurrum-checklist-wrap .field.error .error-msg {
  display: block;
}

/* Toggle Checkbox Row */
.aurrum-checklist-wrap .toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--ac-line-gold);
  background: rgba(0, 45, 60, 0.6);
  border-radius: var(--ac-radius-sm);
  margin-bottom: 22px;
}

.aurrum-checklist-wrap .toggle-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--ac-gold);
  cursor: pointer;
}

.aurrum-checklist-wrap .toggle-label {
  font-family: var(--ac-font-sans);
  font-size: 14px;
  color: var(--ac-text-light);
  cursor: pointer;
  margin: 0;
}

/* Conditional Field Blocks */
.aurrum-checklist-wrap .conditional {
  border-left: 3px solid var(--ac-gold);
  padding-left: 20px;
  margin: 8px 0 24px;
  display: none;
}

.aurrum-checklist-wrap .conditional.shown {
  display: block;
}

/* Document Upload Zone */
.aurrum-checklist-wrap .upload {
  border: 2px dashed var(--ac-line-gold);
  padding: 22px;
  text-align: left;
  background: rgba(0, 45, 60, 0.6);
  border-radius: var(--ac-radius-sm);
  transition: border-color 0.2s ease;
}

.aurrum-checklist-wrap .upload:hover {
  border-color: var(--ac-gold-light);
}

.aurrum-checklist-wrap .upload input[type=file] {
  display: none;
}

.aurrum-checklist-wrap .upload-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--ac-gold);
  background: linear-gradient(135deg, var(--ac-gold), var(--ac-gold-dark));
  color: var(--ac-text-on-gold);
  font-family: var(--ac-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--ac-radius-pill);
  transition: all 0.2s ease;
}

.aurrum-checklist-wrap .upload-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(188, 155, 102, 0.4);
}

.aurrum-checklist-wrap .upload-name {
  display: block;
  margin-top: 10px;
  font-family: var(--ac-font-sans);
  font-size: 13.5px;
  color: var(--ac-text-muted);
}

/* Form Buttons & Navigation */
.aurrum-checklist-wrap .nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  gap: 16px;
}

.aurrum-checklist-wrap button.primary,
.aurrum-checklist-wrap button.ghost {
  font-family: var(--ac-font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--ac-radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.aurrum-checklist-wrap button.primary {
  background: linear-gradient(135deg, var(--ac-gold), var(--ac-gold-dark));
  border: none;
  color: var(--ac-text-on-gold);
  box-shadow: 0 4px 16px rgba(188, 155, 102, 0.35);
}

.aurrum-checklist-wrap button.primary:hover {
  background: linear-gradient(135deg, var(--ac-gold-light), var(--ac-gold));
  box-shadow: 0 6px 20px rgba(188, 155, 102, 0.5);
  transform: translateY(-1px);
}

.aurrum-checklist-wrap button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.aurrum-checklist-wrap button.ghost {
  background: transparent;
  border: 1px solid var(--ac-line-gold);
  color: var(--ac-text);
}

.aurrum-checklist-wrap button.ghost:hover {
  border-color: var(--ac-gold-light);
  color: var(--ac-gold-light);
  background: rgba(212, 184, 126, 0.08);
}

/* Feedback Alert */
.aurrum-checklist-wrap .form-feedback-msg {
  padding: 14px 18px;
  background: var(--ac-err-bg);
  border: 1px solid var(--ac-err);
  color: var(--ac-err);
  font-size: 14px;
  border-radius: var(--ac-radius-sm);
  margin-top: 20px;
}

/* Success Panel */
.aurrum-checklist-wrap .success {
  text-align: center;
  padding: 60px 24px;
}

.aurrum-checklist-wrap .success .mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ac-ok);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 30px;
  box-shadow: 0 0 20px rgba(34, 150, 90, 0.4);
}

.aurrum-checklist-wrap .success h2 {
  font-family: var(--ac-font-serif);
  font-size: 32px;
  color: var(--ac-text);
  margin: 0 0 12px;
}

.aurrum-checklist-wrap .success p {
  font-family: var(--ac-font-sans);
  color: var(--ac-text-light);
  font-size: 16px;
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.6;
}

.aurrum-checklist-wrap .step {
  display: none;
}

.aurrum-checklist-wrap .step.active {
  display: block;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .aurrum-checklist-wrap {
    padding-top: 20px;
  }
  .aurrum-checklist-wrap .row2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .aurrum-checklist-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
  .aurrum-checklist-wrap .card {
    padding: 20px 16px;
  }
  .aurrum-checklist-wrap .rail {
    margin: 20px 0 28px;
  }
  .aurrum-checklist-wrap .rail-dot {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .aurrum-checklist-wrap .rail-label {
    display: none;
  }
  .aurrum-checklist-wrap .rail-step.active .rail-label {
    display: block;
    font-size: 10.5px;
  }
  .aurrum-checklist-wrap .nav-btns {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .aurrum-checklist-wrap button.primary,
  .aurrum-checklist-wrap button.ghost {
    width: 100%;
    text-align: center;
  }
}
