/* ===== REVIVE MOTORZ GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --orange: #C9A227;
  --orange-light: #E8C766;
  --orange-glow: rgba(201, 162, 39, 0.15);
  --dark: #111111;
  --dark-2: #1C1C1C;
  --dark-3: #252525;
  --gray: #6B6B6B;
  --gray-light: #B0B0B0;
  --white: #FFFFFF;
  --off-white: #F7F7F5;
  --border: rgba(255,255,255,0.08);
  --border-light: #E5E5E5;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-orange: 0 4px 24px rgba(201, 162, 39, 0.3);
}

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

body {
  font-family: 'Times New Roman', Times, serif;
  background: var(--off-white);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Times New Roman', Times, serif; }

a { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
nav {
  background: var(--dark);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
}

.nav-logo span { color: var(--orange); }

.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--gray-light);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  padding: 9px 18px !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--orange-light) !important; transform: translateY(-1px); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge {
  width: 34px; height: 34px;
  background: var(--orange-glow);
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'Times New Roman', Times, serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,162,39,0.4); }

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--white); }

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}

input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

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='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gray); font-size: 1rem;
}
.input-icon-wrap input { padding-left: 42px; }

/* ===== PAGE HEADER ===== */
.page-hero {
  background: var(--dark);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,162,39,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.page-hero h1 span { color: var(--orange); }
.page-hero p {
  color: var(--gray-light);
  margin-top: 12px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* ===== CARD ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: var(--gray-light);
  padding: 48px 24px 24px;
  margin-top: 80px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo { font-family: 'Times New Roman', Times, serif; font-size: 1.4rem; font-weight: 800; color: var(--white); }
.footer-brand .logo span { color: var(--orange); }
.footer-brand p { margin-top: 12px; font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.3rem; }
.toast-text { font-size: 0.9rem; font-weight: 500; }

/* ===== STEP BADGE ===== */
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== MOBILE NAV DRAWER ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--dark);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--gray-light);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.mobile-menu a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.mobile-menu .btn { margin-top: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Global Revive Motorz native feedback popup */
#rmNativePopup {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,.55); z-index: 20000;
}
#rmNativePopup.show { display: flex; }
.rm-native-popup-card {
  width: min(92vw, 420px); background: var(--white, #fff); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.24); padding: 24px; text-align: center;
  animation: rmPopupIn .18s ease;
}
.rm-native-popup-title { color: var(--dark, #16213e); font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.rm-native-popup-message { color: var(--gray, #5b6478); font-size: .92rem; line-height: 1.55; white-space: pre-wrap; }
.rm-native-popup-btn {
  margin-top: 18px; border: 0; border-radius: 11px; padding: 10px 24px;
  background: var(--orange, #da7101); color: #111; font-weight: 800; cursor: pointer;
}
.rm-native-popup-btn:hover { filter: brightness(1.05); }
@keyframes rmPopupIn { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---- Global centered loading spinner (loading.js) ---- */
#rmLoadingOverlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(2px);
  z-index: 9999;
}
#rmLoadingOverlay.show { display: flex; }
.rm-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--orange);
  animation: rm-spin 0.8s linear infinite;
}
@keyframes rm-spin { to { transform: rotate(360deg); } }
