/* ---------- Grievance page (same background treatment as contact page) ---------- */
.grievance-body {
  background: #0f1946;
}

.gr-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background: #0f1946 url('../pm-surya-ghar/pm-surya-ghar-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  padding: 60px 40px 80px;
  overflow: hidden;
  margin-top: -74px;
  padding-top: 134px;
}

.gr-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,55,0.55) 0%, rgba(10,18,55,0.75) 100%);
  z-index: 0;
}

.gr-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Heading ---------- */
.gr-heading {
  text-align: center;
  color: #fff;
  margin-bottom: 28px;
}

.gr-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
}

.gr-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gr-subtext {
  margin: 14px auto 0;
  max-width: 520px;
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

/* ---------- Card (same theme as consultation form) ---------- */
.gr-card {
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.gr-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.gr-full {
  grid-column: 1 / -1;
}

.gr-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.gr-group > label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
}

.gr-group input[type="text"],
.gr-group input[type="tel"],
.gr-group input[type="email"],
.gr-group input[type="date"] {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #1a1a1a;
  transition: all 0.2s ease;
  width: 100%;
}

.gr-group input[type="date"] {
  cursor: pointer;
}

.gr-group input::placeholder {
  color: #999;
}

.gr-group input:focus {
  outline: none;
  background: #fff;
  border-color: #1a1a1a;
}

.gr-group input.invalid {
  border-color: #d32f2f;
  background: #fff5f5;
}

.gr-error {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: #d32f2f;
}

.gr-error:empty {
  display: none;
}

/* ---------- Problem chips (multi select) ---------- */
.gr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gr-chip {
  cursor: pointer;
}

.gr-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gr-chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #f5f5f5;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  color: #333;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.gr-chip:hover span {
  border-color: #1a1a1a;
}

.gr-chip input:checked + span {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.gr-chip input:focus-visible + span {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.gr-chips.invalid .gr-chip span {
  border-color: #d32f2f;
}

.gr-other-input {
  margin-top: 4px;
}

.gr-other-input[hidden] {
  display: none;
}

/* ---------- Radio ---------- */
.gr-radio-group {
  display: flex;
  gap: 20px;
}

.gr-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
}

.gr-radio input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1a1a1a;
}

/* ---------- Submit ---------- */
.gr-submit {
  margin-top: 4px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.gr-submit:hover {
  background: #333;
  transform: translateY(-2px);
}

.gr-submit:active {
  transform: translateY(0);
}

/* ---------- Thank-you glass card ---------- */
.gr-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 40px 28px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.gr-thanks[hidden] { display: none; }

.gr-thanks-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2e7d5b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gr-thanks-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.gr-thanks-text {
  margin-top: 10px;
  max-width: 380px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}

.gr-ticket-box {
  margin-top: 20px;
  padding: 14px 26px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gr-ticket-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}

.gr-ticket-no {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  user-select: all;
}

.gr-thanks-btn {
  margin-top: 24px;
  min-width: 160px;
  padding: 12px 32px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}

.gr-thanks-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
}

.gr-thanks-btn:active {
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gr-section {
    padding: 40px 24px 60px;
    padding-top: 120px;
    background-attachment: scroll;
  }

  .gr-group input[type="text"],
  .gr-group input[type="tel"],
  .gr-group input[type="email"],
  .gr-group input[type="date"] {
    font-size: 16px;
  }
}

@media (max-width: 620px) {
  .gr-form {
    grid-template-columns: 1fr;
  }
  .gr-card {
    padding: 26px 20px 22px;
  }
  .gr-radio-group {
    flex-direction: column;
    gap: 10px;
  }

  .gr-group input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 42px;
  }

  .gr-chip span {
    padding: 10px 14px;
    font-size: 13px;
  }

  .gr-thanks { padding: 32px 18px; }
  .gr-ticket-box { max-width: 100%; padding: 14px 18px; }
  .gr-ticket-no {
    font-size: 19px;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .gr-section { padding: 32px 18px 48px; padding-top: 110px; }
}