/* ── Yagya Form Styles ─────────────────────────────────────────────────────── */
:root {
  --saffron: #fd8535;
  --saffron-dark: #e06a1a;
  --gold: #ffb300;
  --yagya-bg: #fff8f0;
}

/* Hero */
.yagya-hero {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-bottom: 3px solid var(--saffron);
  padding: 2rem 0 1.5rem;
}
.yagya-logo { height: 70px; width: 70px; object-fit: contain; }
.yagya-org-name {
  font-size: .85rem;
  color: #7b4a00;
  font-weight: 600;
  letter-spacing: .3px;
}
.yagya-h1 {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 800;
  color: #c45000;
  line-height: 1.3;
}
.yagya-sub {
  font-size: .9rem;
  color: #6d4c41;
  max-width: 600px;
  margin: .5rem auto 0;
}
.yagya-cta-btn {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff;
  border-radius: 30px;
  padding: .55rem 1.8rem;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 4px 15px rgba(253,133,53,.35);
  transition: transform .2s, box-shadow .2s;
}
.yagya-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(253,133,53,.45); color:#fff; }

/* Container */
.yagya-container { max-width: 820px; margin: 0 auto; padding-bottom: 3rem; }

/* Cards */
.yagya-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid #ffe0b2;
}
.yagya-section-header {
  background: linear-gradient(90deg, #fff3e0, #ffe0b2);
  padding: .75rem 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  color: #c45000;
  border-bottom: 2px solid #ffcc80;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.yagya-section-header i { font-size: 1.05rem; color: var(--saffron-dark); }

/* Labels */
.yagya-label { font-weight: 600; color: #4a2c00; font-size: .9rem; margin-bottom: .3rem; }

/* Radio groups */
.yagya-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .3rem;
}
.yagya-radio-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: #fff8f0;
  border: 2px solid #ffcc80;
  border-radius: 30px;
  padding: .4rem 1rem;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}
.yagya-radio-label:has(input:checked) {
  border-color: var(--saffron);
  background: #fff3e0;
  color: #c45000;
}
.yagya-radio-label input[type="radio"] { accent-color: var(--saffron); }

/* Sankalp checkboxes */
.yagya-sankalp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .6rem;
}
.yagya-check-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff8f0;
  border: 2px solid #ffcc80;
  border-radius: 12px;
  padding: .5rem .9rem;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}
.yagya-check-label:has(input:checked) {
  border-color: var(--saffron);
  background: #fff3e0;
  color: #c45000;
}
.yagya-check-label input[type="checkbox"] { accent-color: var(--saffron); flex-shrink: 0; }

/* Image preview */
.yagya-img-preview { margin-top: .5rem; }
.yagya-img-preview img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 10px;
  border: 2px solid #ffcc80;
  object-fit: cover;
}
.yagya-compress-status {
  font-size: .8rem;
  margin-top: .3rem;
  color: #555;
  min-height: 1.2rem;
}
.compress-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid #ffcc80;
  border-top-color: var(--saffron);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

/* Error messages */
.yagya-err {
  color: #dc3545;
  font-size: .8rem;
  margin-top: .25rem;
  display: none;
}
.yagya-err:not(:empty) { display: block; }
.form-control.is-invalid, .form-select.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 .2rem rgba(220,53,69,.15);
}

/* Submit button */
.yagya-submit-btn {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: .75rem 3rem;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(253,133,53,.4);
  transition: transform .2s, box-shadow .2s;
}
.yagya-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(253,133,53,.5);
  color: #fff;
}
.yagya-submit-btn:disabled { opacity: .7; cursor: not-allowed; }

/* Spinner overlay */
.yagya-spinner-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yagya-spinner-box {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
}
.yagya-spinner {
  width: 52px; height: 52px;
  border: 5px solid #ffe0b2;
  border-top-color: var(--saffron);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.yagya-spinner-box p { font-weight: 600; color: #c45000; margin: 0; }

/* Form controls */
.yagya-container .form-control,
.yagya-container .form-select {
  border: 1.5px solid #ffcc80;
  border-radius: 10px;
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.yagya-container .form-control:focus,
.yagya-container .form-select:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 .2rem rgba(253,133,53,.2);
}

@media (max-width: 768px) {
  .yagya-hero { padding: 1.5rem 0 1rem; }
  .yagya-h1 { font-size: 1.4rem; }
  .yagya-card { border-radius: 12px; margin-bottom: 1rem; }
  .yagya-section-header { padding: .6rem 1rem; font-size: .95rem; }
  .yagya-container { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 576px) {
  .yagya-sankalp-grid { grid-template-columns: 1fr; }
  .yagya-submit-btn { width: 100%; padding: .75rem 1.5rem; }
  .yagya-radio-group { flex-direction: column; align-items: flex-start; }
  .yagya-radio-label { width: 100%; }
  .yagya-h1 { font-size: 1.25rem; }
  .yagya-sub { font-size: .85rem; }
}

/* ── SEO Content Section (Redesigned) ──────────────────────────────────────── */
.yagya-seo-content {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
  border-top: 3px solid #ffcc80;
  border-bottom: 3px solid #ffcc80;
}

.yagya-seo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fd8535, #ffb300);
  color: white;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(253,133,53,.3);
}

.yagya-seo-main-title {
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: #c45000;
  line-height: 1.3;
}

.yagya-seo-lead {
  font-size: .95rem;
  color: #6d4c41;
  max-width: 680px;
  margin: .6rem auto 0;
  line-height: 1.6;
}

/* Info cards */
.yagya-info-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border: 1px solid #ffe0b2;
  transition: transform .25s, box-shadow .25s;
}
.yagya-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(253,133,53,.15);
}
.yagya-info-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: white;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.yagya-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #c45000;
  margin-bottom: .5rem;
}
.yagya-info-card p {
  font-size: .88rem;
  color: #6d4c41;
  line-height: 1.55;
  margin: 0;
}

/* Highlight items */
.yagya-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  background: white;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  border: 1px solid #ffe0b2;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.yagya-highlight-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(253,133,53,.12);
}
.yagya-highlight-item > i {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.yagya-highlight-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: #4a2c00;
  margin-bottom: 4px;
}
.yagya-highlight-item p {
  font-size: .82rem;
  color: #7b4a00;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 576px) {
  .yagya-seo-content { padding: 2rem 0; }
  .yagya-info-card { padding: 1.1rem 1rem; }
  .yagya-highlight-item { padding: .8rem .9rem; }
  .yagya-highlight-item > i { font-size: 1.3rem; }
}
