:root {
      --orange: #ff9700;
      --orange-dark: #f06600;
      --gold: #ffd469;
      --ink: #161616;
      --muted: #686868;
      --cream: #fff8ee;
      --line: #eadbc8;
      --shadow: 0 18px 45px rgba(32, 20, 8, .14);
      --radius: 8px;
    }
    * { box-sizing: border-box; }
    body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; line-height: 1.55; }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    .wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
    .topbar { background: #121212; color: #fff; font-size: 14px; }
    .topbar .wrap { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; flex-wrap: wrap; }
    .topbar span { color: #f7d28c; }
    .nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(0,0,0,.08); backdrop-filter: blur(10px); }
    .nav .wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
    .logo img { width: 300px; height: 120px; object-fit: contain; }
    .links { display: flex; align-items: center; justify-content: flex-end; gap: 24px; color: #262626; font-size: 15px; text-transform: capitalize; white-space: nowrap; }
    .links a:hover, .links a.active { color: var(--orange-dark); }
    .dropdown { position: relative; display: inline-flex; align-items: center; min-height: 78px; }
    .dropdown-toggle { display: inline-flex; align-items: center; gap: 7px; color: #262626; font: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; text-transform: capitalize; }
    .dropdown-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
    .dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); width: 220px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .18s ease; }
    .dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .dropdown-menu a { display: block; padding: 10px 12px; border-radius: 6px; color: #262626; white-space: normal; }
    .dropdown-menu a:hover, .dropdown-menu a.active { color: #fff; background: linear-gradient(180deg, var(--orange), var(--orange-dark)); }
    .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 6px; background: linear-gradient(180deg, var(--orange), var(--orange-dark)); color: #fff; font-weight: 700; box-shadow: 0 10px 20px rgba(240,102,0,.28); }
    .hero { min-height: 200px; color: #fff; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.38)), url("../slider/header-banner-2.jpg") center / cover; display: flex; align-items: center; }
    .hero-copy { width: min(760px, 100%); padding: 32px 0; }
    .eyebrow { display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
    h1, h2, h3, p { margin-top: 0; }
    h1 { font-size: clamp(21px, 3vw, 35px); line-height: 1.08; margin-bottom: 10px; }
    .hero p { font-size: clamp(14px, 1.5vw, 17px); max-width: 620px; margin-bottom: 22px; font-weight: 700; }
    section { padding: 76px 0; }
    .kundali-panel {
      width: min(1500px, calc(100% - 48px));
      margin: 0 auto;
      padding: 42px 86px 74px;
      color: #fff;
      background:
        radial-gradient(circle at 85% 8%, rgba(255, 212, 105, .24), transparent 26%),
        linear-gradient(180deg, #3a1807 0%, #7a3107 48%, #f06600 100%);
      border-radius: 10px;
      box-shadow: 30px 30px 0 rgba(82, 43, 8, .24);
    }
    .kundali-panel h2 {
      margin: 0 0 38px;
      text-align: center;
      color: #fff7dc;
      font-size: clamp(16px, 2vw, 21px);
      font-weight: 900;
      font-style: italic;
      letter-spacing: .04em;
      text-transform: uppercase;
    }
    .form-row-center,
    .panchanga-fields {
      width: min(625px, 100%);
      margin: 0 auto;
    }
    .panchanga-fields {
      display: grid;
      gap: 28px;
      margin-top: 26px;
    }
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 58px 74px;
      align-items: start;
    }
    .person-title {
      grid-column: 1 / -1;
      text-align: center;
      color: #fff;
      font-size: 18px;
      font-weight: 900;
      text-transform: uppercase;
      margin: 0 0 20px;
    }
    .person-fields {
      display: grid;
      gap: 22px;
    }
    .field label {
      display: block;
      margin-bottom: 8px;
      color: #fff;
      font-size: 13px;
      line-height: 1.2;
      font-weight: 800;
    }
    .field input,
    .field select {
      width: 100%;
      min-height: 64px;
      padding: 0 36px;
      border: 2px solid transparent;
      border-radius: 5px;
      background: #fff;
      color: #111;
      font-size: 14px;
      outline: none;
      transition: border-color .15s ease, box-shadow .15s ease;
    }
    .field input::placeholder { color: #8aa8c3; }
    .field input:focus,
    .field select:focus {
      border-color: #ffd469;
      box-shadow: 0 0 0 4px rgba(255, 212, 105, .24);
    }
    .field.invalid input,
    .field.invalid select {
      border-color: #ffdddd;
      box-shadow: 0 0 0 4px rgba(255, 77, 77, .18);
    }
    .error {
      display: none;
      margin-top: 6px;
      color: #fff5ad;
      font-size: 14px;
      font-weight: 700;
    }
    .field.invalid .error { display: block; }
    .submit-row {
      text-align: center;
      margin-top: 50px;
    }
    .kundali-submit {
      min-width: 198px;
      min-height: 50px;
      border: 0;
      border-radius: 10px;
      background: #ffa300;
      color: #fff;
      font-size: 14px;
      font-weight: 800;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(0,0,0,.14);
    }
    .kundali-submit:hover { background: #ff9300; }
    .dialog-backdrop {
      position: fixed;
      inset: 0;
      z-index: 60;
      display: none;
      place-items: center;
      padding: 24px;
      background: rgba(0, 0, 0, .54);
    }
    .dialog-backdrop.open { display: grid; }
    .success-dialog {
      width: min(430px, 100%);
      padding: 30px;
      text-align: center;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 24px 70px rgba(0,0,0,.32);
    }
    .success-mark {
      display: grid;
      place-items: center;
      width: 58px;
      height: 58px;
      margin: 0 auto 16px;
      border-radius: 50%;
      background: #18b84d;
      color: #fff;
      font-size: 34px;
      font-weight: 900;
    }
    .success-dialog h3 { font-size: 26px; margin-bottom: 8px; }
    .success-dialog p { color: var(--muted); margin-bottom: 22px; }
    .dialog-close {
      min-width: 120px;
      min-height: 42px;
      border: 0;
      border-radius: 6px;
      background: linear-gradient(180deg, var(--orange), var(--orange-dark));
      color: #fff;
      font-weight: 800;
      cursor: pointer;
    }
    footer { background: linear-gradient(rgba(0,0,0,.86), rgba(0,0,0,.9)), url("../images/bg-footer.jpg") center / cover; color: #f4f4f4; padding: 58px 0 26px; }
    .footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
    footer img.logo-footer { width: 300px; height: 120px; object-fit: contain; margin-bottom: 18px; }
    footer h3 { color: var(--gold); font-size: 18px; margin-bottom: 14px; }
    footer p, footer li { color: #d8d8d8; font-size: 15px; }
    footer ul { list-style: none; margin: 0; padding: 0; }
    footer li { margin-bottom: 9px; }
    .copyright { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; color: #bdbdbd; font-size: 14px; text-align: center; }
    @media (max-width: 900px) {
      .links { display: none; }
      .kundali-panel { padding: 34px 28px 56px; box-shadow: 14px 14px 0 rgba(0,0,0,.22); }
      .form-grid { grid-template-columns: 1fr; gap: 28px; }
      .footer-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 620px) {
      .topbar .wrap { justify-content: center; text-align: center; }
      .nav .wrap { min-height: 66px; }
      .logo img { width: 220px; height: 88px; }
      section { padding: 58px 0; }
      .kundali-panel { width: min(100% - 24px, 1500px); padding: 28px 18px 46px; }
      .kundali-panel h2 { margin-bottom: 28px; }
      .field label { font-size: 13px; }
      .field input, .field select { min-height: 56px; padding: 0 18px; }
      .submit-row { margin-top: 34px; }
      .footer-grid { grid-template-columns: 1fr; }
    }
