/* ============================================================
   VYEDI KUNDALI
   MAIN STYLESHEET

   NOTE:
   Header and Footer are intentionally NOT defined here.
   They are controlled by:
      ../css/style.css
============================================================ */


/* ============================================================
   KUNDALI VARIABLES
============================================================ */

:root {
  --products-primary: #9b4d20;
  --products-gold: #c89532;
  --products-dark: #2b211b;
  --products-light: #fffaf2;
  --products-border: #eadfce;
  --products-muted: #756b62;

  --brown-dark: #2b211d;
  --brown: #60351f;
  --brown-light: #8f4c28;
  --gold: #b56a2b;
  --gold-light: #d49a63;
  --cream: #faf7f1;
  --cream-dark: #eee6da;
  --border: #ddd0c1;
  --text: #2d211c;
  --muted: #776960;
  --white: #ffffff;
  --success: #4e7255;

  --shadow: 0 15px 45px rgba(63, 40, 25, 0.09);
}


/* ============================================================
   KUNDALI MAIN PAGE
============================================================ */

.kundali-page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 35px 0 70px;
}


/* ============================================================
   HERO
============================================================ */

.kundali-hero {
  min-height: 270px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 55px 60px;

  background:
    linear-gradient(
      120deg,
      #34241d 0%,
      #543020 50%,
      #7a4226 100%
    );

  color: white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  box-shadow: var(--shadow);
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;

  color: #e7bd8f;
}

.kundali-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.03;
  font-weight: 500;
  margin-bottom: 20px;
}

.kundali-hero p {
  max-width: 620px;

  color: #eaded3;
  font-size: 16px;
}

.hero-symbol {
  width: 170px;
  height: 170px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: Georgia, serif;
  font-size: 105px;

  color: #dca66d;
  opacity: 0.75;
}


/* ============================================================
   PROGRESS
============================================================ */

.progress-container {
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 35px 0;
  gap: 10px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;

  color: #8c8178;
}

.progress-step span {
  width: 32px;
  height: 32px;

  border-radius: 50%;
  border: 1px solid #cfc1b2;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 13px;

  background: #fff;
}

.progress-step small {
  font-size: 12px;
  white-space: nowrap;
}

.progress-step.active {
  color: var(--brown);
  font-weight: 700;
}

.progress-step.active span {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

.progress-line {
  width: 65px;
  height: 1px;
  background: #d6c8ba;
}


/* ============================================================
   MAIN LAYOUT
============================================================ */

.kundali-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    370px;

  gap: 28px;
  align-items: start;
}


/* ============================================================
   CARD
============================================================ */

.card-section {
  background: var(--cream);

  border: 1px solid var(--border);
  border-radius: 16px;

  padding: 30px;
  margin-bottom: 22px;

  box-shadow:
    0 7px 25px rgba(65, 43, 29, 0.045);
}


/* ============================================================
   SECTION HEADING
============================================================ */

.section-heading {
  display: flex;
  gap: 17px;

  margin-bottom: 27px;
}

.section-number {
  width: 43px;
  height: 43px;

  flex: 0 0 43px;

  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eee1d4;
  color: var(--brown);

  font-size: 13px;
  font-weight: 800;
}

.section-heading h2 {
  font-family: Georgia, serif;

  font-size: 23px;
  font-weight: 600;

  margin-bottom: 4px;
}

.section-heading p {
  font-size: 13px;
  color: var(--muted);
}


/* ============================================================
   FORM GRID
============================================================ */

.form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;

  color: #493a31;
}

.form-group label span {
  color: #a24f2b;
}


/* ============================================================
   FORM INPUTS
============================================================ */

.form-group input,
.form-group select,
.form-group textarea,
.notes-input {
  width: 100%;

  border: 1px solid #d7c9bb;
  border-radius: 9px;

  background: #fffdf9;
  color: var(--text);

  padding: 13px 14px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group input,
.form-group select {
  height: 48px;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.notes-input:focus {
  border-color: var(--gold);

  box-shadow:
    0 0 0 3px rgba(181, 106, 43, 0.1);

  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.notes-input::placeholder {
  color: #a99e95;
}


/* ============================================================
   DYNAMIC FIELDS
============================================================ */

.hidden-field {
  display: none;
}

.hidden {
  display: none !important;
}

.hidden-field.show {
  display: flex;

  animation: fieldIn 0.2s ease;
}

@keyframes fieldIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================================
   DESIGN GRID
============================================================ */

.design-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 15px;
}

.design-card {
  position: relative;
  cursor: pointer;

  border: 1px solid var(--border);
  border-radius: 12px;

  padding: 9px;

  background: #fff;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.design-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 10px 25px rgba(60, 40, 25, 0.08);
}

.design-card:has(input:checked) {
  border-color: var(--gold);

  box-shadow:
    0 0 0 2px rgba(181, 106, 43, 0.12);
}

.design-card input {
  position: absolute;
  opacity: 0;
}


/* ============================================================
   DESIGN PREVIEW
============================================================ */

.design-preview {
  height: 190px;

  border-radius: 8px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 12px;

  overflow: hidden;
}

.classic-design {
  background:
    linear-gradient(
      145deg,
      #f7e8ce,
      #e9c99f
    );

  color: #67371e;
}

.royal-design {
  background:
    linear-gradient(
      145deg,
      #3a2118,
      #754225
    );

  color: #e9bd7c;
}

.minimal-design {
  background:
    linear-gradient(
      145deg,
      #f4f0e8,
      #ded3c4
    );

  color: #64432d;
}

.kundali-wheel {
  width: 85px;
  height: 85px;

  border-radius: 50%;
  border: 2px solid currentColor;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 34px;
}

.royal-symbol,
.minimal-symbol {
  font-family: Georgia, serif;
  font-size: 58px;
}

.preview-lines {
  text-align: center;

  font-size: 11px;
  line-height: 1.4;

  opacity: 0.8;
}


/* ============================================================
   DESIGN INFO
============================================================ */

.design-info {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 13px 5px 5px;
}

.design-info div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.design-info strong {
  font-size: 13px;
}

.design-info span {
  color: var(--muted);
  font-size: 11px;
}

.design-info b {
  color: var(--brown);
  font-size: 14px;
}


/* ============================================================
   OPTIONS
============================================================ */

.option-list {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 12px;

  margin-bottom: 18px;
}

.option-card {
  display: flex;
  align-items: center;

  gap: 13px;

  border: 1px solid var(--border);
  border-radius: 10px;

  padding: 14px;

  background: white;

  cursor: pointer;
}

.option-card:has(input:checked) {
  border-color: var(--gold);
  background: #fffaf3;
}

.option-card input {
  accent-color: var(--brown);
}

.option-card div {
  display: flex;
  flex-direction: column;
}

.option-card strong {
  font-size: 14px;
}

.option-card span {
  color: var(--muted);
  font-size: 11px;
}


/* ============================================================
   CHECKBOX
============================================================ */

.checkbox-row {
  min-height: 52px;

  border-top: 1px solid #e3d9ce;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.checkbox-row label {
  display: flex;
  align-items: center;

  gap: 10px;

  cursor: pointer;

  font-size: 13px;
}

.checkbox-row input {
  width: 17px;
  height: 17px;

  accent-color: var(--brown);
}

.checkbox-row strong {
  font-size: 13px;
  color: var(--brown);
}


/* ============================================================
   NOTES
============================================================ */

.notes-input {
  min-height: 130px;
  resize: vertical;
}

.notes-status {
  margin-top: 9px;

  color: #82756c;
  font-size: 11px;
}


/* ============================================================
   ORDER SIDEBAR
============================================================ */

.order-sidebar {
  position: sticky;
  top: 20px;
}


/* ============================================================
   SUMMARY CARD
============================================================ */

.summary-card {
  background: var(--cream);

  border: 1px solid var(--border);
  border-radius: 16px;

  padding: 22px;

  box-shadow: var(--shadow);
}


/* ============================================================
   SUMMARY HEADER
============================================================ */

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 15px;

  border-bottom: 1px solid var(--border);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;

  color: var(--brown);
}

.secure {
  font-size: 10px;
  color: var(--success);

  letter-spacing: 0;
}


/* ============================================================
   SUMMARY PREVIEW
============================================================ */

.selected-design {
  padding: 18px 0;
}

.summary-preview {
  height: 185px;

  border-radius: 11px;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  gap: 10px;
}

.summary-preview .kundali-wheel {
  width: 75px;
  height: 75px;
}

.summary-preview .preview-lines {
  font-size: 10px;
}


/* ============================================================
   SUMMARY PERSON
============================================================ */

.summary-person {
  padding: 15px 0;

  border-bottom: 1px solid var(--border);
}

.summary-person span,
.summary-location span {
  display: block;

  color: var(--muted);

  font-size: 11px;

  margin-bottom: 3px;
}

.summary-person strong {
  font-family: Georgia, serif;
  font-size: 17px;
}

.summary-location {
  padding: 13px 0;

  border-bottom: 1px solid var(--border);
}

.summary-location strong {
  font-size: 12px;
  font-weight: 600;
}


/* ============================================================
   SUMMARY ITEMS
============================================================ */

.summary-items {
  padding: 8px 0;
}

.summary-row {
  min-height: 39px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 15px;

  font-size: 12px;
}

.summary-row strong {
  color: var(--brown);
}


/* ============================================================
   TOTAL
============================================================ */

.summary-total {
  border-top: 1px solid var(--border);

  padding-top: 17px;
  margin-top: 7px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-total span {
  font-size: 13px;
  font-weight: 700;
}

.summary-total strong {
  font-family: Georgia, serif;

  color: var(--brown);

  font-size: 25px;
}


/* ============================================================
   PAYMENT BUTTON
============================================================ */

.pay-button {
  width: 100%;
  min-height: 53px;

  border: 0;
  border-radius: 9px;

  background: var(--brown);
  color: white;

  margin-top: 20px;
  padding: 12px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 14px;
  font-weight: 700;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.pay-button:hover {
  background: #42271b;
  transform: translateY(-1px);
}

.pay-button span {
  font-size: 21px;
}

.payment-note {
  text-align: center;

  color: var(--muted);

  font-size: 10px;

  margin-top: 11px;

  line-height: 1.5;
}


/* ============================================================
   BENEFITS
============================================================ */

.benefits-card {
  margin-top: 16px;

  background: #eee4d8;

  border: 1px solid #ddd0c1;
  border-radius: 15px;

  padding: 17px;
}

.benefits-card > div {
  display: flex;

  gap: 12px;

  padding: 11px 0;
}

.benefits-card > div + div {
  border-top: 1px solid #d9cbbc;
}

.benefits-card > div > span {
  color: var(--gold);
}

.benefits-card strong {
  display: block;

  font-size: 12px;
}

.benefits-card small {
  display: block;

  color: var(--muted);

  font-size: 10px;

  margin-top: 2px;
}


/* ============================================================
   MESSAGE BOX
============================================================ */

.message-box {
  position: fixed;

  left: 50%;
  bottom: 25px;

  transform: translate(-50%, 120px);

  background: var(--brown-dark);
  color: white;

  padding: 13px 20px;

  border-radius: 8px;

  font-size: 13px;

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.18);

  opacity: 0;
  pointer-events: none;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;

  z-index: 1000;

  max-width: calc(100% - 30px);

  text-align: center;
}

.message-box.show {
  transform: translate(-50%, 0);
  opacity: 1;
}


/* ============================================================
   ERROR INPUT
============================================================ */

.input-error {
  border-color: #b14c35 !important;

  box-shadow:
    0 0 0 3px rgba(177, 76, 53, 0.08) !important;
}


/* ============================================================
   KUNDALI CENTER IMAGE
============================================================ */

.kundali-center {
  width: 200px;
  height: 200px;

  border-radius: 50%;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
}

.kundali-center img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 50%;

  display: block;
}


/* ============================================================
   RESPONSIVE
============================================================ */


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1050px) {

  .kundali-layout {
    grid-template-columns:
      minmax(0, 1fr)
      320px;
  }

  .design-preview {
    height: 160px;
  }
}


/* ============================================================
   TABLET / SMALL LAPTOP
============================================================ */

@media (max-width: 850px) {

  .kundali-page {
    width: min(100% - 24px, 700px);
    padding-top: 20px;
  }

  .kundali-layout {
    grid-template-columns: 1fr;
  }

  .order-sidebar {
    position: static;
    order: -1;
  }

  .hero-symbol {
    width: 120px;
    height: 120px;

    font-size: 70px;
  }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 768px) {

  .kundali-center {
    width: 130px;
    height: 130px;

    border-radius: 50%;
    overflow: hidden;

    padding: 0;
  }

  .kundali-center img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    display: block;
  }
}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 650px) {

  .kundali-page {
    width: calc(100% - 20px);

    padding: 10px 0 40px;
  }

  .kundali-hero {
    min-height: 300px;

    padding: 32px 25px;

    border-radius: 14px;
  }

  .kundali-hero h1 {
    font-size: 38px;
  }

  .kundali-hero p {
    font-size: 13px;
  }

  .hero-symbol {
    display: none;
  }

  .progress-container {
    justify-content: flex-start;

    overflow-x: auto;

    padding-bottom: 5px;
  }

  .progress-step small {
    display: none;
  }

  .progress-line {
    width: 30px;
    flex: 0 0 30px;
  }

  .card-section {
    padding: 20px 17px;

    border-radius: 13px;
  }

  .section-heading {
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .section-heading p {
    font-size: 11px;
  }

  .section-number {
    width: 38px;
    height: 38px;

    flex-basis: 38px;
  }

  .form-grid {
    grid-template-columns: 1fr;

    gap: 17px;
  }

  .form-group.full {
    grid-column: auto;
  }

  .design-grid {
    grid-template-columns: 1fr;
  }

  .design-preview {
    height: 150px;
  }

  .option-list {
    grid-template-columns: 1fr;
  }

  .checkbox-row {
    align-items: flex-start;

    padding: 15px 0;
  }
}


/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media (max-width: 400px) {

  .kundali-hero h1 {
    font-size: 33px;
  }

  .summary-card {
    padding: 17px;
  }

  .pay-button {
    font-size: 13px;
  }
}

/* =====================================================
   ANNOUNCEMENT BAR
===================================================== */

.announcement {
  background:  #2b211d;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.announcement-content {
  max-width: 1240px;
  margin: auto;
  min-height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 6px 20px;
}



/* =====================================================
   SCROLLING ANNOUNCEMENT BAR
===================================================== */

.announcement {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.announcement-track {
  display: flex;
  width: max-content;
  animation: announcementScroll 30s linear infinite;
}

.announcement-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.announcement-content span {
  display: inline-flex;
  align-items: center;
  margin-right: 100px;
}

/* Continuous scrolling */

@keyframes announcementScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Mobile */

@media (max-width: 768px) {
  .announcement-track {
    animation-duration: 30s;
  }

  .announcement-content span {
    margin-right: 30px;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .announcement-track {
    animation: none;
  }
}

.kundali-center {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.kundali-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

@media (max-width: 768px) {
  .kundali-center {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
  }

  .kundali-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }
}