/* ===== Foundation / Tokens ===== */

:root { --nav-h: 70px; }
@media (min-width: 992px) {
  :root { --nav-h: 76px; } /* a touch more room on desktop */
}
body { padding-top: var(--nav-h); }

/* ===== Breadcrumb Fix ===== */
.breadcrumb {
  background-color: transparent;
  padding: var(--sp-2) 0;
}
.breadcrumb-item a {
  color: rgba(212,175,55,.85);
  text-decoration: none;
  transition: color .2s ease;
}
.breadcrumb-item a:hover {
  color: #DAA520;
}
.breadcrumb-item.active {
  color: rgba(255,255,255,.6);
}
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,.4);
}
:root {
  /* Gold/Beige gradients */
  --primary-gradient: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  --accent-gradient:  linear-gradient(135deg, #F4E4BC 0%, #DAA520 100%);
  --success-gradient: linear-gradient(135deg, #DEB887 0%, #D2B48C 100%);
  --dark-gradient:    linear-gradient(135deg, #8D6E63 0%, #6B5B47 100%);
  --card-shadow: 0 10px 30px rgba(139, 110, 99, 0.3);
  --hover-shadow: 0 20px 40px rgba(139, 110, 99, 0.4);

  /* Keep existing sizing & type tokens */
  --radius: 16px;
  --radius-lg: 22px;
  --sp-1: 6px;
  --sp-2: 10px;
  --sp-3: 14px;
  --sp-4: 18px;
  --sp-5: 24px;
  --sp-6: 32px;

  --fs-xs: 0.80rem;
  --fs-sm: 0.9rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.05rem, 2.6vw, 1.2rem);
  --fs-xl: clamp(1.4rem, 4.5vw, 2rem);
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1a1611 0%, #2d2419 50%, #3d2f1e 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

main { flex: 1; position: relative; padding-bottom: 5rem; }

/* animated background stays, but subtle */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212,175,55,.09) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244,228,188,.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(222,184,135,.08) 0%, transparent 50%);
  z-index: -1;
  animation: backgroundMove 20s ease-in-out infinite;
}
@keyframes backgroundMove {
  0%,100% { transform: translateX(0) translateY(0); }
  33%     { transform: translateX(-16px) translateY(-14px); }
  66%     { transform: translateX(16px)  translateY(-8px); }
}

/* ===== Navbar (visuals only – sizing in styles2) ===== */
.navbar {
  background: linear-gradient(135deg, rgba(26,22,17,.95) 0%, rgba(45,36,25,.95) 100%) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transition: all .3s ease;
}

/* ===== Inputs ===== */
.form-control {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: #fff;
  transition: all .3s ease;
  backdrop-filter: blur(10px);
}

.form-control::placeholder { 
  color: rgba(255,255,255,.7); 
}

.form-control:focus {
  background: rgba(244,228,188,.13);
  border-color: rgba(212,175,55,.55);
  box-shadow: 0 0 0 3px rgba(212,175,55,.28);
  outline: none;
}

/* Autofill override */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover, 
.form-control:-webkit-autofill:focus, 
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #2d2419 inset !important; /* Use a dark color from the theme */
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ===== Form Check (Checkbox) ===== */
.form-check-input {
  background-color: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
}

.form-check-input:checked {
  background-color: #DAA520;
  border-color: #DAA520;
}

.form-check-input:focus {
  border-color: #DAA520;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(218, 165, 32, 0.25);
}

.btn-nowrap {
  white-space: nowrap;
  min-width: 80px; /* Adjust as needed */
}

/* ===== Base Card ===== */
.card {
  background: linear-gradient(135deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.06) 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
  position: relative;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--success-gradient);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.card:hover::before { transform: scaleX(1); }
@media (hover:hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--hover-shadow); border-color: rgba(79,172,254,.3); }
}


/* ===== List Group Customization ===== */
.list-group-item {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}

.list-group-item .text-muted {
  color: rgba(255,255,255,.65) !important;
}

/* ===== Terms Card Styling ===== */
.terms-card {
  border: 2px solid rgba(212,175,55,.3) !important;
  background: linear-gradient(135deg, rgba(212,175,55,.08) 0%, rgba(244,228,188,.05) 100%) !important;
}

.terms-card .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  background-color: rgba(255,255,255,.2);
  border: 2px solid rgba(212,175,55,.4);
  border-radius: 4px;
}

.terms-card .form-check-input:checked {
  background-color: #DAA520;
  border-color: #DAA520;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.terms-card .form-check-label {
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

.terms-card .text-muted {
  color: rgba(255,255,255,.6) !important;
  font-size: 0.875rem;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
  .terms-card {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .terms-card .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .terms-card .form-check-label {
    font-size: 1.1rem;
    font-weight: 600;
  }
}

/* ===== Helpful utilities ===== */
.price { 
  color: #DAA520; 
  font-weight: 600; 
  font-size: var(--fs-lg); 
}
.muted { color: rgba(255,255,255,.75); }
.text-balance { text-wrap: balance; }
