/* ============================================================
   Prime Standard Solutions — Main Stylesheet
   Brand Colors: Safety Cone Orange (#E85D04), Black (#111111)
   ============================================================ */

:root {
  --orange:       #E85D04;
  --orange-dark:  #C44D00;
  --orange-light: #FF7A2F;
  --black:        #111111;
  --dark-gray:    #222222;
  --mid-gray:     #555555;
  --light-gray:   #F5F5F5;
  --border:       #DDDDDD;
  --white:        #FFFFFF;
  --required:     #E85D04;
  --font-main:    'Segoe UI', Arial, sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Top Bar ──────────────────────────────────────────────── */
.top-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 8px 20px;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.top-bar a { color: var(--orange); font-weight: 600; }

/* ── Navigation ───────────────────────────────────────────── */
.navbar {
  background: var(--black);
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-logo-text {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.nav-logo-text span { color: var(--orange); }
.nav-logo-sub {
  color: #aaa;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); text-decoration: none; }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: 0.3s; }
.mobile-menu { display: none; background: var(--dark-gray); padding: 16px 24px; }
.mobile-menu a { display: block; color: var(--white); padding: 10px 0; font-size: 16px; border-bottom: 1px solid #333; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: block; }

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 50%, #2a1500 100%);
  color: var(--white);
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(232,93,4,0.03) 40px,
    rgba(232,93,4,0.03) 80px
  );
}
.hero-content { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--orange); }
.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #cccccc;
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 15px 34px;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 700;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--white); color: var(--black); text-decoration: none; }
.hero-phone {
  margin-top: 28px;
  font-size: 15px;
  color: #aaa;
}
.hero-phone a { color: var(--orange-light); font-weight: 700; font-size: 18px; }

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--orange);
  padding: 28px 24px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.stat-item { text-align: center; color: var(--white); }
.stat-num { font-size: 36px; font-weight: 900; line-height: 1; }
.stat-label { font-size: 13px; font-weight: 500; letter-spacing: 0.5px; opacity: 0.9; margin-top: 4px; }

/* ── Section Base ─────────────────────────────────────────── */
.section { padding: 72px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--black);
}
.section-title span { color: var(--orange); }
.section-sub {
  font-size: 17px;
  color: var(--mid-gray);
  margin-bottom: 48px;
  max-width: 640px;
}
.section-alt { background: var(--light-gray); }

/* ── Why Drive With Us ────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: 6px;
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 6px 24px rgba(232,93,4,0.12); }
.feature-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--mid-gray); }

/* ── How It Works ─────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
  text-align: center;
}
.step-item { position: relative; }
.step-num {
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-item p { font-size: 14px; color: var(--mid-gray); }

/* ── Requirements ─────────────────────────────────────────── */
.req-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.req-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
}
.req-check {
  width: 22px;
  height: 22px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.req-check::after {
  content: '✓';
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.req-item p { font-size: 15px; color: var(--dark-gray); }

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--black), var(--dark-gray));
  color: var(--white);
  text-align: center;
  padding: 72px 24px;
}
.cta-section h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.cta-section h2 span { color: var(--orange); }
.cta-section p { font-size: 18px; color: #ccc; margin-bottom: 36px; }
.cta-phone { font-size: 28px; font-weight: 900; color: var(--orange); margin-top: 20px; }
.cta-phone a { color: var(--orange); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--black);
  color: #aaa;
  padding: 40px 24px 24px;
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.footer-logo span { color: var(--orange); }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 16px 0; }
.footer-links a { color: #aaa; font-size: 14px; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 13px; color: #666; margin-top: 16px; border-top: 1px solid #333; padding-top: 16px; }

/* ── Page Header (inner pages) ────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--black), #1a1a1a);
  color: var(--white);
  padding: 48px 24px;
  border-bottom: 4px solid var(--orange);
}
.page-header-inner { max-width: 1100px; margin: 0 auto; }
.page-header h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; }
.page-header h1 span { color: var(--orange); }
.page-header p { color: #ccc; font-size: 16px; margin-top: 8px; }

/* ── Application Form ─────────────────────────────────────── */
.app-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.app-intro {
  background: var(--light-gray);
  border-left: 4px solid var(--orange);
  padding: 16px 20px;
  margin-bottom: 36px;
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  color: var(--mid-gray);
}
.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 28px;
  overflow: hidden;
}
.form-section-header {
  background: var(--black);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-section-header::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}
.form-section-header h2 { font-size: 17px; font-weight: 700; }
.form-section-body { padding: 24px 20px; }

.form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; flex: 1; min-width: 140px; }
.form-group.full { flex: 1 1 100%; }
.form-group.half { flex: 1 1 calc(50% - 8px); }
.form-group.third { flex: 1 1 calc(33% - 12px); }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.req-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--required);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,93,4,0.12);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
textarea { resize: vertical; min-height: 90px; }
.field-note { font-size: 12px; color: var(--mid-gray); margin-top: 5px; font-style: italic; }

/* Repeatable blocks */
.repeat-block {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 16px;
  background: #fafafa;
}
.repeat-block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.add-btn {
  background: transparent;
  border: 2px dashed var(--orange);
  color: var(--orange);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.add-btn:hover { background: rgba(232,93,4,0.06); }
.remove-btn {
  background: transparent;
  border: none;
  color: #cc0000;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  font-weight: 600;
  margin-top: 8px;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
}
.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--orange);
  cursor: pointer;
}
.checkbox-group label {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark-gray);
  cursor: pointer;
  flex: 1;
}

/* Endorsements multi-select hint */
.endorsement-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.end-tag {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.end-tag.selected { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* Submit button */
.submit-section { text-align: center; margin-top: 32px; }
.btn-submit {
  background: var(--orange);
  color: var(--white);
  padding: 18px 60px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
  max-width: 480px;
}
.btn-submit:hover { background: var(--orange-dark); transform: translateY(-1px); }
.submit-note { font-size: 13px; color: var(--mid-gray); margin-top: 10px; }
.privacy-link-note { font-size: 13px; color: var(--mid-gray); margin-top: 6px; }
.privacy-link-note a { color: var(--orange); }

/* ── Privacy Policy ───────────────────────────────────────── */
.policy-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.policy-body h2 { font-size: 22px; font-weight: 700; margin: 36px 0 10px; color: var(--black); }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p { font-size: 15px; color: var(--mid-gray); margin-bottom: 14px; line-height: 1.7; }
.policy-body ul { margin: 10px 0 14px 20px; }
.policy-body ul li { font-size: 15px; color: var(--mid-gray); margin-bottom: 6px; }
.policy-effective { font-size: 13px; color: #999; margin-bottom: 32px; }

/* ── Success Message ──────────────────────────────────────── */
.success-msg {
  display: none;
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 6px;
  padding: 20px 24px;
  text-align: center;
  margin-top: 20px;
}
.success-msg h3 { color: #2e7d32; font-size: 20px; margin-bottom: 8px; }
.success-msg p { color: #388e3c; font-size: 15px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .form-group.half,
  .form-group.third { flex: 1 1 100%; }
  .stats-inner { gap: 28px; }
  .stat-num { font-size: 28px; }
  .hero { padding: 56px 20px 64px; }
}
@media (max-width: 480px) {
  .form-row { flex-direction: column; }
  .form-group { min-width: 100%; }
  .btn-submit { padding: 16px 24px; font-size: 16px; }
}

/* ── SMS Opt-In Form ──────────────────────────────────────── */
.optin-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  padding: 36px 32px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.optin-checkbox-wrap {
  background: #fff8f0;
  border: 1px solid #f5c89a;
  border-radius: 6px;
  padding: 16px 18px;
  margin-top: 8px;
}
.optin-checkbox-wrap .checkbox-group label {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}
.optin-checkbox-wrap .checkbox-group label a {
  color: var(--orange);
  font-weight: 600;
}
.optin-note {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  margin-left: 32px;
  font-style: italic;
}
.optin-success {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 6px;
  padding: 18px 22px;
  text-align: center;
  color: #2e7d32;
  font-size: 16px;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .optin-form-wrap { padding: 24px 16px; }
}

.optin-error {
  background: #fdecea;
  border: 1px solid #f44336;
  border-radius: 6px;
  padding: 18px 22px;
  text-align: center;
  color: #c62828;
  font-size: 15px;
  margin-bottom: 16px;
}
.optin-error a { color: #c62828; font-weight: 700; }

.optin-policy-link {
  font-size: 13px;
  margin-top: 6px;
  margin-left: 32px;
}
.optin-policy-link a {
  color: var(--orange);
  font-weight: 600;
}
