/* Dedicated Grievance Redressal page */

.grv-page {
  --grv-brand: #d32328;
  --grv-brand-dark: #a81b1f;
  --grv-ink: #1a1a1a;
  --grv-muted: #5c5c5c;
  --grv-line: #e6e6e6;
  --grv-surface: #ffffff;
  --grv-bg: #f7f5f3;
  --grv-ok: #1b7a3d;
  --grv-radius: 14px;
  --grv-shadow: 0 18px 50px rgba(26, 26, 26, 0.08);
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(211, 35, 40, 0.08), transparent 55%),
    radial-gradient(900px 380px at 100% 0%, rgba(26, 26, 26, 0.04), transparent 50%),
    linear-gradient(180deg, #faf8f6 0%, var(--grv-bg) 40%, #f3f1ee 100%);
  padding: 0 0 4.5rem;
  min-height: 70vh;
}

.grv-hero {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 2.75rem;
  color: #fff;
  background:
    linear-gradient(125deg, #1f1f1f 0%, #2c2c2c 42%, #d32328 100%);
}

.grv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}

.grv-hero .container {
  position: relative;
  z-index: 1;
}

.grv-hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.grv-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff !important;
}

.grv-hero__title span {
  color: #fff;
  opacity: 0.92;
}

.grv-hero__lead {
  max-width: 38rem;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.grv-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.grv-hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.grv-hero__meta i {
  color: #ffd2d4;
}

.grv-shell {
  margin-top: -1.75rem;
  position: relative;
  z-index: 2;
}

.grv-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.grv-aside {
  position: sticky;
  top: 7.5rem;
  background: var(--grv-surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--grv-radius);
  box-shadow: var(--grv-shadow);
  padding: 1.35rem 1.15rem;
  animation: grv-rise 0.55s ease both;
}

.grv-aside__title {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grv-muted);
  font-weight: 700;
}

.grv-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.grv-step {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.65rem 0;
  position: relative;
  color: #8a8a8a;
}

.grv-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 2.35rem;
  bottom: -0.1rem;
  width: 2px;
  background: var(--grv-line);
}

.grv-step.is-done:not(:last-child)::after,
.grv-step.is-active:not(:last-child)::after {
  background: rgba(211, 35, 40, 0.35);
}

.grv-step-dot {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 2px solid #d0d0d0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease;
}

.grv-step-label {
  padding-top: 0.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.grv-step-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: #9a9a9a;
}

.grv-step.is-active {
  color: var(--grv-brand);
}

.grv-step.is-active .grv-step-dot {
  background: var(--grv-brand);
  border-color: var(--grv-brand);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(211, 35, 40, 0.15);
}

.grv-step.is-done {
  color: var(--grv-ink);
}

.grv-step.is-done .grv-step-dot {
  background: var(--grv-brand);
  border-color: var(--grv-brand);
  color: #fff;
}

.grv-main {
  background: var(--grv-surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--grv-radius);
  box-shadow: var(--grv-shadow);
  padding: 1.75rem 1.75rem 2rem;
  animation: grv-rise 0.65s ease 0.08s both;
}

.grv-panel-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--grv-line);
}

.grv-panel-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--grv-ink);
  letter-spacing: -0.01em;
}

.grv-panel-head p {
  margin: 0;
  color: var(--grv-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.grv-section {
  margin-bottom: 1.75rem;
}

.grv-section:last-of-type {
  margin-bottom: 1rem;
}

.grv-section__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grv-brand);
}

.grv-section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(211, 35, 40, 0.25), transparent);
}

.grv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

.grv-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.grv-field--full {
  grid-column: 1 / -1;
}

.grv-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
}

.grv-label .req {
  color: var(--grv-brand);
  margin-left: 0.15rem;
}

.grv-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #8b8b8b;
  line-height: 1.4;
}

.grv-input,
.grv-select,
.grv-textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fcfcfc;
  color: var(--grv-ink);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.grv-input:focus,
.grv-select:focus,
.grv-textarea:focus {
  outline: none;
  border-color: var(--grv-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(211, 35, 40, 0.12);
}

.grv-input:disabled,
.grv-select:disabled {
  background: #f1f1f1;
  color: #555;
  cursor: not-allowed;
}

.grv-textarea {
  min-height: 110px;
  resize: vertical;
}

.grv-error {
  color: var(--grv-brand);
  font-size: 0.78rem;
  margin: 0;
}

.grv-otp {
  display: grid;
  gap: 0.55rem;
}

.grv-otp__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.grv-otp__row .grv-input {
  flex: 1 1 180px;
}

.grv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.7rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.grv-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.grv-btn:not(:disabled):active {
  transform: translateY(1px);
}

.grv-btn--primary {
  background: var(--grv-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(211, 35, 40, 0.22);
}

.grv-btn--primary:hover:not(:disabled) {
  background: var(--grv-brand-dark);
  color: #fff;
}

.grv-btn--ghost {
  background: #fff;
  border-color: #d5d5d5;
  color: #333;
}

.grv-btn--ghost:hover:not(:disabled) {
  border-color: #bbb;
  background: #fafafa;
}

.grv-btn--outline {
  background: #fff;
  border-color: var(--grv-brand);
  color: var(--grv-brand);
}

.grv-btn--outline:hover:not(:disabled) {
  background: var(--grv-brand);
  color: #fff;
}

.grv-btn--otp {
  background: #222;
  color: #fff;
  min-width: 7.5rem;
}

.grv-btn--otp:hover:not(:disabled) {
  background: #000;
  color: #fff;
}

.grv-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: center;
  color: var(--grv-ok);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  background: rgba(27, 122, 61, 0.08);
  border-radius: 999px;
}

.grv-alert {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
  animation: grv-fade 0.3s ease;
}

.grv-alert--error {
  background: #fff1f1;
  color: #9d1c20;
  border: 1px solid #f3c3c5;
}

.grv-alert--success {
  background: #effaf2;
  color: #1b7a3d;
  border: 1px solid #c7e8d1;
}

.grv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grv-line);
}

.grv-upload {
  border: 1.5px dashed #d0d0d0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #fcfcfc 0%, #f7f7f7 100%);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.grv-upload:hover {
  border-color: rgba(211, 35, 40, 0.45);
  background: #fffafa;
}

.grv-upload__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(211, 35, 40, 0.08);
  color: var(--grv-brand);
  font-size: 1.15rem;
}

.grv-upload__title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: var(--grv-ink);
}

.grv-upload__hint {
  margin: 0 0 1rem;
  color: var(--grv-muted);
  font-size: 0.88rem;
}

.grv-upload input[type="file"] {
  max-width: 100%;
  margin: 0 auto;
}

.grv-files {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.grv-files li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #f6f6f6;
  font-size: 0.88rem;
  color: #333;
}

.grv-files i {
  color: var(--grv-brand);
}

.grv-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 0;
}

.grv-review__item {
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #efefef;
}

.grv-review__item--full {
  grid-column: 1 / -1;
}

.grv-review__item dt {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
}

.grv-review__item dd {
  margin: 0;
  color: var(--grv-ink);
  font-size: 0.95rem;
  line-height: 1.45;
  word-break: break-word;
}

.grv-success {
  text-align: center;
  padding: 2rem 0.5rem 1rem;
}

.grv-success__badge {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1b7a3d, #2f9d55);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 12px 28px rgba(27, 122, 61, 0.28);
  animation: grv-pop 0.5s ease both;
}

.grv-success h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  color: var(--grv-ink);
}

.grv-success p {
  margin: 0 auto 0.75rem;
  max-width: 28rem;
  color: var(--grv-muted);
  line-height: 1.55;
}

.grv-ref {
  display: inline-block;
  margin: 0.75rem 0 1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px dashed rgba(211, 35, 40, 0.35);
  color: var(--grv-brand);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.grv-care-link {
  display: inline-flex;
  margin-top: 0.5rem;
  color: var(--grv-brand);
  font-weight: 600;
  text-decoration: none;
}

.grv-care-link:hover {
  text-decoration: underline;
  color: var(--grv-brand-dark);
}

.grv-footer-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

.grv-footer-note a {
  color: var(--grv-brand);
}

@keyframes grv-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grv-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes grv-pop {
  from {
    opacity: 0;
    transform: scale(0.75);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 991px) {
  .grv-layout {
    grid-template-columns: 1fr;
  }

  .grv-aside {
    position: static;
    padding: 1rem;
  }

  .grv-stepper {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
  }

  .grv-step {
    grid-template-columns: auto;
    min-width: 6.5rem;
    padding: 0.35rem 0.5rem;
    text-align: center;
    justify-items: center;
  }

  .grv-step:not(:last-child)::after {
    display: none;
  }

  .grv-step-hint {
    display: none;
  }

  .grv-step-label {
    font-size: 0.78rem;
    padding-top: 0.35rem;
  }
}

@media (max-width: 640px) {
  .grv-hero {
    padding: 2.4rem 0 2.2rem;
  }

  .grv-shell {
    margin-top: -1.25rem;
  }

  .grv-main {
    padding: 1.25rem 1rem 1.5rem;
  }

  .grv-grid,
  .grv-review {
    grid-template-columns: 1fr;
  }

  .grv-actions {
    justify-content: stretch;
  }

  .grv-actions .grv-btn {
    flex: 1 1 auto;
  }
}
