:root {
  --rose: #C4714F;
  --rose-lt: #F5E8E0;
  --rose-dk: #7A3A22;
  --gold: #B89A6A;
  --gold-lt: #F7F0E4;
  --cream: #FDF8F3;
  --ink: #2B1F18;
  --muted: #8C7468;
  --border: #E2CEC3;
  --white: #FFFFFF;
  --step-w: 44px;
  --radius: 16px;
}



/* ── Hidden radio inputs that drive the stepper ── */
#step1,
#step2,
#step3,
#step4 {
  display: none;
}

/* ── Layout ── */
.wrapper {
  width: 100%;

}

/* ── Branding ── */
.brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--rose);
}

.brand-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

/* ── Progress bar container ── */
.progress-bar1 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  margin-bottom: 2.5rem !important;
  position: relative !important;
}

.progress-bar1::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 120px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.step-circle {
  width: var(--step-w);
  height: var(--step-w);
  border-radius: 50%;
  background:
    linear-gradient(135deg, #fff, #f9f1eb);

  border: 2px solid #ead6cc;

  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, .8),
    0 4px 10px rgba(0, 0, 0, .04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.3s ease;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
}

.step-label {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b1e3f;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* ── Card ── */
.card {
  background: linear-gradient(135deg, #fffdfb, #f8eee8);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 4px 32px rgba(196, 113, 79, 0.06);

}

/* ── Step panels — all hidden by default ── */
.panel {
  display: none;
}

/* ── Show correct panel based on radio state ── */
#step1:checked~.wrapper .panel-1,
#step2:checked~.wrapper .panel-2,
#step3:checked~.wrapper .panel-3,
#step4:checked~.wrapper .panel-4 {
  display: block;
}

/* ── Active step indicator ── */
#step1:checked~.wrapper .s1 .step-circle,
#step2:checked~.wrapper .s2 .step-circle,
#step3:checked~.wrapper .s3 .step-circle,
#step4:checked~.wrapper .s4 .step-circle {
  background:
    linear-gradient(135deg, #8b1e3f, #b64d73);

  border-color: transparent;

  box-shadow:
    0 0 0 8px rgba(139, 30, 63, .08),
    0 8px 20px rgba(139, 30, 63, .2);
  color: var(--white);

}

#step1:checked~.wrapper .s1 .step-label,
#step2:checked~.wrapper .s2 .step-label,
#step3:checked~.wrapper .s3 .step-label,
#step4:checked~.wrapper .s4 .step-label {
  color: #8b1e3f;
  font-weight: 600;
  font-size: 15px;

}

/* Completed steps (prior to active) */
#step2:checked~.wrapper .s1 .step-circle,
#step3:checked~.wrapper .s1 .step-circle,
#step4:checked~.wrapper .s1 .step-circle,
#step3:checked~.wrapper .s2 .step-circle,
#step4:checked~.wrapper .s2 .step-circle,
#step4:checked~.wrapper .s3 .step-circle {
  background: var(--gold-lt);
  border-color: var(--gold);
  color: #8b1e3f;
}

#step2:checked~.wrapper .s1 .step-label,
#step3:checked~.wrapper .s1 .step-label,
#step4:checked~.wrapper .s1 .step-label,
#step3:checked~.wrapper .s2 .step-label,
#step4:checked~.wrapper .s2 .step-label,
#step4:checked~.wrapper .s3 .step-label {
  color: var(--gold);
}

/* ── Panel header ── */
.panel-header {
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rose-lt);
}

.panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: #8b1e3f;
  margin-bottom: 4px;
}

.panel-subtitle {
  font-size: 16px;
  color: #111111;
  letter-spacing: 0.02em;
}

.step-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--rose-lt);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}

/* ── Form fields ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.form-row.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px !important;

  border: 1px solid #ead6cc !important;

  background-color: #fff !important;

  transition: all .25s ease;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #111111;

  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C7468' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8b1e3f !important;

  box-shadow:
    0 0 0 4px rgba(139, 30, 63, .08);

  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: #C5B4AC;
}

/* ── Photo upload ── */
.photo-upload {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--cream);
}

.photo-upload:hover {
  border-color: var(--rose);
  background: var(--rose-lt);
}

.photo-icon {
  width: 48px;
  height: 48px;
  background: var(--rose-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.photo-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--rose);
  fill: none;
  stroke-width: 1.5;
}

.photo-text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.photo-text strong {
  color: #8b1e3f;
  font-weight: 500;
}

.photo-upload input[type="file"] {
  display: none;
}

/* ── Religion / chips selector ── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip input[type="radio"],
.chip input[type="checkbox"] {
  display: none;
}

.chip label {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid #8b1e3f;
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #8b1e3f;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}

.chip input:checked+label {
  background: #8b1e3f;
  border-color: #8b1e3f;
  color: var(--white);


}

.chip label:hover {
  border-color: #8b1e3f;
  color: #8b1e3f;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--rose-lt);
  margin: 1.5rem 0;
}

.section-label {

  font-size: 21px;
  color: #8b1e3f;
  margin-bottom: 1rem;

  font-weight: 600;

}

/* ── Navigation buttons ── */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rose-lt);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid #8b1e3f;
}

.btn-ghost:hover {
  border-color: #8b1e3f;
  color: #8b1e3f;
}

.btn-primary {
  background: linear-gradient(135deg, #8b1e3f, #b21f4a, #f6e6ea);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(196, 113, 79, 0.3);
}

.btn-primary:hover {
  background: #f3bc87;
  box-shadow: 0 4px 18px rgba(196, 113, 79, 0.4);
}

.btn-success {
  background: #4A7C59;
  color: var(--white);
  box-shadow: 0 2px 12px rgba(74, 124, 89, 0.3);
}

.btn-success:hover {
  background: #376044;
}

label.btn {
  display: inline-flex;
}

/* ── Success screen ── */
.success-screen {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #EAF3DE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 38px;
  height: 38px;
  stroke: #4A7C59;
  fill: none;
  stroke-width: 2;
}

.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: #8b1e3f;
  margin-bottom: 8px;
}

.success-msg {
  font-size: 16px;
  color: #111111;
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto 2rem;
}

.success-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--rose-lt);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #8b1e3f;
}

/* ── Terms ── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 1rem;
}

.terms-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #8b1e3f;
}

.terms-row span {
  font-size: 16px;
  color: #111111;
  line-height: 1.6;
}

.terms-row a {
  color: #8b1e3f;
  text-decoration: underline;
}

/* ── Footer ── */
.footer-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 18px;

  color: #111111;
}

.footer-note a {
  color: #8b1e3f;
  text-decoration: none;
}

/* ── Ornament ── */
.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  margin: 0.5rem 0 1.5rem;
  opacity: 0.6;
}

@media (max-width: 520px) {
  .card {
    padding: 1.5rem 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row.three {
    grid-template-columns: 1fr 1fr;
  }

  .brand-name {
    font-size: 2.2rem;
  }

  .progress-bar::before {
    width: calc(100% - 80px);
  }

  .step-label {
    font-size: 0.6rem;
  }
}

.fr-servce {

  display: flex;
  align-items: flex-start;
  justify-content: center;

  margin-top: 60px;
  margin-bottom: 60px;

}


/* ── Checkbox Group ── */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

/* ── Checkbox Item ── */
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #8b1e3f;
  font-weight: 400;
  line-height: 1.4;
}

/* Hover */
.checkbox-group label:hover {
  border-color: var(--rose);
  background: var(--rose-lt);
  transform: translateY(-1px);
}

/* Hide default checkbox */
.checkbox-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* Checked style */
.checkbox-group input[type="checkbox"]:checked {
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(196, 113, 79, 0.12);
}

/* Tick mark */
.checkbox-group input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Active card effect */
.checkbox-group label:has(input:checked) {
  border-color: var(--rose);
  background: linear-gradient(135deg, #fff, var(--rose-lt));
  box-shadow: 0 4px 18px rgba(196, 113, 79, 0.08);
}

/* Mobile */
@media (max-width: 520px) {
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .checkbox-group label {
    padding: 11px 12px;
    font-size: 0.82rem;
  }
}

/* ── Horoscope / Dhosham toggle rows ── */
.horo-radio {
  display: none;
}

.horo-block {
  margin-top: 0.5rem;
}

.horo-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}

.horo-field-name {
  font-size: 18px;
  font-weight: 500;
  color: #8b1e3f;
}

.horo-toggle-chips {
  display: flex;
  gap: 6px;
}

.toggle-chip {
  display: inline-block;
  padding: 5px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  color: #8b1e3f;
  cursor: pointer;
  transition: all 0.18s;
  background: var(--white);
  text-transform: none;
  letter-spacing: 0.02em;
}

.toggle-chip:hover {
  border-color: #8b1e3f;
  color: #8b1e3f;
}

.horo-radio:checked+.toggle-chip {
  background: #8b1e3f;
  border-color: #8b1e3f;
  color: var(--white);
}

/* ── Rasi chart — hidden until horoscope = Yes ── */
.rasi-chart-wrap {
  display: none;
  margin: 1rem 0 0.5rem;
  overflow-x: auto;
  /* added */
  -webkit-overflow-scrolling: touch;
  /* added */
}

.horo-block:has(#horo-yes:checked) .rasi-chart-wrap {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.horo-block:has(#horo-yes:checked) .rasi-chart-wrap {
  animation: slideDown 0.28s ease;
}

.rasi-chart-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: #8b1e3f;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rasi-chart-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rose-lt);
}

.rasi-hint {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 1rem;
  background: var(--gold-lt);
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}

.rasi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 165px);     /* koncham inka peddaga chesa */
  border: 2px solid var(--rose);
  border-radius: 10px;
  overflow: visible;
  max-width: 100%;
  min-width: 480px;
  margin: 0 auto;
  gap: 4px;
}

.rhouse {
    border: 0.5px solid var(--border);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--white);
    justify-content: flex-start;
    overflow: visible; /* hidden -> visible */
}

.rhouse .hno {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  color: #8b1e3f;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;           /* thakkuva chesa */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rhouse input[type="text"] {
  padding: 5px 6px;
  border: 1px solid var(--border);

  line-height: 1.4;
  border-radius: 6px;
  font-size: 19px;
  background: var(--cream);
  color: #8b1e3f;
  width: 100%;
  outline: none;
  box-shadow: none;
  height: auto;
  flex: 1;
}

.rhouse input[type="text"]:focus {
  border-color: var(--rose);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139, 30, 63, 0.08);
}

.rhouse input[type="text"]::placeholder {
  color: #D5C5BC;
  font-size: 0.65rem;
}

.rhouse.rh12 {
  grid-area: 1 / 1;
}

.rhouse.rh1 {
  grid-area: 1 / 2;
}

.rhouse.rh2 {
  grid-area: 1 / 3;
}

.rhouse.rh3 {
  grid-area: 1 / 4;
}

.rhouse.rh11 {
  grid-area: 2 / 1;
}

.rhouse.rh4 {
  grid-area: 2 / 4;
}

.rhouse.rh10 {
  grid-area: 3 / 1;
}

.rhouse.rh5 {
  grid-area: 3 / 4;
}

.rhouse.rh9 {
  grid-area: 4 / 1;
}

.rhouse.rh8 {
  grid-area: 4 / 2;
}

.rhouse.rh7 {
  grid-area: 4 / 3;
}

.rhouse.rh6 {
  grid-area: 4 / 4;
}

.rhouse.rcenter {
  grid-area: 2 / 2 / 4 / 4;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0.5px solid var(--border);
}

.rcenter-label {
  font-size: 26px;
  line-height: 1.4;
}

.rasi-legend {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
  font-size: 17px;
}

.rasi-legend span::before {
  content: attr(data-num);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rose-lt);
  color: #8b1e3f;
  font-size: 15px;
  font-weight: 600;
  margin-right: 4px;
  font-family: 'Cormorant Garamond', serif;
}

.dhosham-section {
  margin-top: 1rem;
}

.cms-trigger {
  min-height: 34px;
  padding: 5px 30px 5px 10px;
  font-size: 12.5px;
  border: 1px solid #d4b8a8;
  border-radius: 6px;
  background: white;
}

/* Lagna select */
.lagna-select {
  padding: 6px 8px;
  font-size: 13px;
}

.rhouse .fld-label {
  font-size: 11px;
  color: #777;
  margin: 2px 0 3px 0;
}


@media (max-width: 520px) {
  .rasi-grid {
    grid-template-rows: repeat(4, 90px);
    /* was 58px */
  }

}

/* ── "Other" education conditional field ── */
.other-edu-input {
  display: none;
  margin-top: 8px;
}

#edu:has(option[value="Other_education"]:checked)~.other-edu-input {
  display: block;
  animation: slideDown 0.28s ease;
}

/* ── Location chip row ── */
.loc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loc-chip input[type="radio"] {
  display: none;
}

.loc-chip label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid #8b1e3f;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #8b1e3f;
  cursor: pointer;
  transition: all 0.18s;
  background: var(--white);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.loc-chip input:checked+label {
  background: var(--rose-lt);
  border-color: #8b1e3f;
  color: #8b1e3f;
  font-weight: 500;
}

.loc-chip label:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.loc-chip label svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 400px) {
  .form-row.three {
    grid-template-columns: 1fr;
  }
}





/* ── Responsive Stepper ── */
@media (max-width: 768px) {

  .progress-bar1 {
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start !important;

    padding: 10px 40px 14px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    position: relative;
  }

  .progress-bar1::-webkit-scrollbar {
    display: none;
  }

  /* line */
  .progress-bar1::before {
    width: 620px;
    left: 40px;
    transform: none;
  }

  .step-item {
    min-width: 160px;
    flex: 0 0 auto;
  }

  .step-label {
    font-size: 12px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.4;
  }

  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* fade effect */
  .progress-bar1::after {
    content: '';
    position: sticky;
    right: -1px;
    top: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0),
        #fff 75%);
    pointer-events: none;
    flex-shrink: 0;
  }

  /* swipe hint */
  .progress-bar1::marker {
    display: none;
  }

}

/* swipe text */
@media (max-width: 768px) {

  .progress-bar1-wrapper {
    position: relative;
  }

  .progress-bar1-wrapper::after {
    content: '⇠ Swipe';
    position: absolute;
    right: 10px;
    top: -8px;
    font-size: 11px;
    color: #8b1e3f;
    background: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #eee;
    animation: swipeMove 1.5s infinite;
  }

  @keyframes swipeMove {
    0% {
      transform: translateX(0);
      opacity: .5;
    }

    50% {
      transform: translateX(-6px);
      opacity: 1;
    }

    100% {
      transform: translateX(0);
      opacity: .5;
    }
  }

}

/* Required star */
.req {
  color: #c0392b;
  font-weight: 700;
  margin-left: 2px;
}

/* Photo grid — 3 columns side by side */
.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 1rem;
}

/* Wrapper for badge + upload box */
.photo-slot {
  position: relative;
}

/* Badge (Required / Optional) */
.photo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  pointer-events: none;
}

.photo-badge.mandatory {
  background: #fde8e8;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}

.photo-badge.optional {
  background: var(--gold-lt);
  color: var(--gold);
  border: 1px solid #e2d1b3;
}

/* Make the upload box fill the slot height */
.photo-slot .photo-upload {
  /* height: 100%; */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Required slot gets a slightly different border */
.photo-slot:first-child .photo-upload {
  border-color: #e8a0a0;
  border-style: dashed;
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
  .photo-upload-grid {
    grid-template-columns: 1fr;
  }
}

input:invalid,
select:invalid {
  border-color: #4a7c59 !important;
}

input:valid,
select:valid {
  border-color: #4A7C59 !important;
}

/* ── Dhosham 3-column compact grid ── */
.dhosham-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 1rem;
}

.dhosham-grid .horo-toggle-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
}

.terms-field-error{
  color: #e53e3e;
}

@media (max-width: 768px) {
  .dhosham-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rhouse .hno {

    font-size: 16px;


  }
}

@media (max-width: 480px) {
  .dhosham-grid {
    grid-template-columns: 1fr;
  }
}