/* Dr. R. J. Rathi Award nominate form (scoped to #rathi-form-root) */
#rathi-form-root,
.rathi-award-page--form {
  --rathi-award-color: #5d8068;
  --rathi-banner: #6a8e61;
  --rathi-accent: #00685f;
  --rathi-accent-dark: #00544d;
  --rathi-bg-0: #f8f5ee;
  --rathi-bg-1: #fdfbf7;
  --rathi-bg-gradient: linear-gradient(135deg, #f8f5ee 0%, #f2efe6 100%);
  --rathi-text-1: #1a1a1a;
  --rathi-text-2: #2d4d4b;
  --rathi-text-muted: #5c677d;
  --rathi-eyebrow: #4a5560;
  --rathi-border: #d9dde3;
  --rathi-gold: #b08d57;
  --rathi-blue-dim: #eff4f6;
  --rathi-radius: 14px;
  --rathi-wrap: 900px;
  --rathi-form-header-clearance: 1.25rem;

  font-family: 'Montserrat', sans-serif;
  color: var(--rathi-text-1);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--rathi-bg-gradient);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#rathi-form-root h1 {
  position: relative;
  background: transparent !important;
  box-shadow: none !important;
}

#rathi-form-root h1::before,
#rathi-form-root h1::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: none !important;
  background: none !important;
}

#rathi-form-root h1 span {
  background: transparent !important;
  padding: 0 !important;
}

/* Full-bleed cream shell; hide Institutions sidebar on this form only */
.category-container:has(#rathi-form-root) {
  background: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100%;
  overflow-x: hidden;
}

.category-container:has(#rathi-form-root) .col-md-3 {
  display: none !important;
}

.category-container:has(#rathi-form-root) .col-md-9 {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

.category-container:has(#rathi-form-root) .container.mt-4.pb-5,
.category-container:has(#rathi-form-root) .container.mob-file-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.category-container:has(#rathi-form-root) .row.pt-5 {
  margin: 0 !important;
  padding: 0 !important;
}

.category-container:has(#rathi-form-root) hr,
.category-container:has(#rathi-form-root) .publication-border-mobile {
  display: none !important;
}

#rathi-form-root *,
#rathi-form-root *::before,
#rathi-form-root *::after {
  box-sizing: border-box;
}

#rathi-form-root a {
  text-decoration: none;
}

.rathi-nom-wrap {
  max-width: var(--rathi-wrap);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.rathi-nom-wrap.rathi-nom-header-inner {
  padding-top: var(--rathi-form-header-clearance);
  padding-bottom: 1.75rem;
}

.rathi-nom-page {
  padding-bottom: 3.5rem;
  background: var(--rathi-bg-gradient);
  min-height: 60vh;
}

.rathi-nom-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rathi-accent);
}

.rathi-nom-back:hover {
  color: var(--rathi-accent-dark);
}

.rathi-nom-eyebrow {
  margin: 0 0 0.65rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rathi-eyebrow);
}

.rathi-nom-title {
  margin: 0.2rem 0 0;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rathi-accent);
}

.rathi-nom-subtitle {
  margin: 0.65rem 0 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--rathi-text-1);
}

/* Standalone eligibility card — separate from the form card */
.rathi-nom-preview {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0 0 1.5rem;
  padding: 1.75rem 1.85rem 1.85rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--rathi-radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.rathi-nom-preview__tag {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 0.55rem 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rathi-banner);
  border-radius: 999px;
}

.rathi-nom-preview__body {
  padding: 0;
}

.rathi-nom-preview__elig {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1a2744;
}

.rathi-nom-preview__elig strong {
  font-weight: 700;
}

.rathi-nom-preview__prize {
  margin: 1.1rem 0 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2744;
}

.rathi-nom-preview__prize strong {
  font-weight: 700;
}

/* Form card — separate white card below eligibility */
.rathi-nom-card {
  margin-top: 0;
  margin-bottom: 2rem;
  padding: 2.25rem 2.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--rathi-radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

#rathi-form-root .rathi-required-note {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--rathi-text-muted);
}

#rathi-form-root .rathi-required {
  color: #a11b1b;
  font-weight: 700;
}

#rathi-form-root .rathi-section {
  margin: 0 0 2rem;
  padding: 1.5rem 0 0;
  border: none;
  border-top: 2px solid #f0f0f0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#rathi-form-root .rathi-section:first-of-type,
#rathi-form-root .rathi-required-note + .rathi-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

#rathi-form-root .rathi-section--highlight {
  background: transparent;
  border-color: #f0f0f0;
}

#rathi-form-root .rathi-section__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

#rathi-form-root .rathi-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: #6a8e61;
}

#rathi-form-root .rathi-section__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rathi-accent);
}

#rathi-form-root .rathi-section__desc {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--rathi-text-muted);
}

#rathi-form-root .formlabel,
#rathi-form-root .form-group > label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--rathi-accent);
}

#rathi-form-root .sub-lable {
  font-weight: 500;
  color: var(--rathi-text-muted);
}

/* Two-column field alignment (match reference form-grid) */
#rathi-form-root .row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  margin-left: -0.55rem !important;
  margin-right: -0.55rem !important;
}

#rathi-form-root .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  padding-left: 0.55rem !important;
  padding-right: 0.55rem !important;
  margin-bottom: 0;
}

#rathi-form-root .form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin-bottom: 1.25rem !important;
  text-align: left;
}

#rathi-form-root .form-group > .formlabel,
#rathi-form-root .form-group > label.formlabel,
#rathi-form-root .form-group > label:not(.invalid-feedback):first-of-type {
  display: block;
  min-height: 0;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

#rathi-form-root .form-group > .form-control,
#rathi-form-root .form-group > input.form-control,
#rathi-form-root .form-group > select.form-control,
#rathi-form-root .form-group > textarea.form-control,
#rathi-form-root .form-group > .input-group {
  width: 100% !important;
  max-width: 100%;
  margin-top: 0;
}

/* Inputs: prevent Bootstrap height clipping on text + selects */
#rathi-form-root .form-control,
#rathi-form-root select.form-control,
#rathi-form-root textarea.form-control,
#rathi-form-root input.form-control {
  width: 100% !important;
  height: auto !important;
  min-height: 2.85rem;
  max-height: none !important;
  padding: 0.7rem 0.9rem !important;
  line-height: 1.5 !important;
  font-size: 1rem !important;
  overflow: visible !important;
  background: #fff;
  color: #000;
  border: 1px solid var(--rathi-border);
  border-radius: 6px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

#rathi-form-root select.form-control {
  padding-right: 2.25rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px 8px;
}

#rathi-form-root textarea.form-control {
  min-height: 8rem;
}

#rathi-form-root .form-control:focus {
  border-color: var(--rathi-accent);
  box-shadow: 0 0 0 2px rgba(0, 104, 95, 0.18);
  outline: none;
}

#rathi-form-root .input-group .form-control {
  height: 2.85rem !important;
  min-height: 2.85rem !important;
  max-height: 2.85rem !important;
  box-sizing: border-box;
}

/* Country-code / landline prefix — same height as number box */
#rathi-form-root .input-group-prepend select.form-control,
#rathi-form-root #inputState,
#rathi-form-root .input-group-prepend .form-control {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  padding: 0.55rem 1.75rem 0.55rem 0.55rem !important;
  height: 2.85rem !important;
  min-height: 2.85rem !important;
  max-height: 2.85rem !important;
  max-width: 5.5rem;
  box-sizing: border-box;
}

#rathi-form-root .input-group-prepend {
  display: flex;
  align-items: center;
  max-width: 5.5rem;
  height: 2.85rem;
  flex: 0 0 auto;
}

#rathi-form-root .input-group-prepend.w-25 {
  max-width: 5.5rem;
  width: auto !important;
  flex: 0 0 auto;
}

#rathi-form-root .input-group {
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

#rathi-form-root .input-group > .form-group {
  position: relative;
  margin-bottom: 0 !important;
  flex: 1 1 auto;
  height: auto !important;
  min-height: 0;
  justify-content: flex-start;
}

#rathi-form-root .input-group > .form-group > .form-control {
  height: 2.85rem !important;
  min-height: 2.85rem !important;
  max-height: 2.85rem !important;
}

#rathi-form-root .input-group > .form-group > .invalid-feedback {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.15rem;
}

#rathi-form-root .rathi-form-process-note {
  margin: 1.75rem 0 0;
  padding: 1.1rem 1.25rem 1.1rem 1.85rem;
  list-style: disc;
  background: var(--rathi-blue-dim);
  border-radius: 10px;
  color: var(--rathi-text-2);
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.65;
}

#rathi-form-root .rathi-form-process-note li {
  list-style: disc;
  margin: 0.35rem 0;
}

#rathi-form-root .rathi-submit-area {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 2px solid #f0f0f0;
  background: transparent;
  box-shadow: none;
}

#rathi-form-root .rathi-submit-area__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  width: 100%;
}

#rathi-form-root .rathi-submit-area__inner .g-recaptcha {
  display: inline-block;
  margin: 0 auto;
}

#rathi-form-root .rathi-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #12343c !important;
  background: linear-gradient(135deg, #d4af37, #e1c17f) !important;
  border: none !important;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

#rathi-form-root .rathi-btn-primary:hover {
  background: linear-gradient(135deg, #e1c17f, #e9cf98) !important;
  color: #12343c !important;
}

#rathi-form-root .hall-deposit-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--rathi-text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  #rathi-form-root {
    --rathi-form-header-clearance: 1.5rem;
  }

  .rathi-nom-card {
    padding: 1.5rem 1.25rem;
  }

  .rathi-nom-title {
    font-size: clamp(1.55rem, 6.5vw, 2.15rem);
  }
}

@media (max-width: 576px) {
  .rathi-nom-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .rathi-nom-back {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .rathi-nom-eyebrow {
    font-size: 0.78rem;
  }

  #rathi-form-root .rathi-section__head {
    gap: 0.65rem;
  }

  #rathi-form-root .rathi-nom-preview__tag {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}
