   /* ---------- HERO / FORM LAYOUT ---------- */
    .hero {
      background-image: url('/images/MandaCare_BG.png');
      background-size: cover;
      background-position: center;
      min-height: 100dvh;
      color: #fff;
      position: relative;
      display: flex;
      align-items: center;
    }
    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.5);
    }
    .hero-content { 
		position: relative; 
		z-index: 1; 
		padding: 3rem 0; 
	}
    .hero-row {
      display: flex;
      gap: 0;
      flex-wrap: wrap;
    }

    /* Info box */
    .info-box {
      background-color: rgba(0, 66, 119, 0.85);
      padding: 2rem;
      border-radius: 30px 0 0 30px;
      flex: 1 1 320px;
      max-width: 400px;
      box-sizing: border-box;
      max-height: 380px;
      overflow: hidden;
      margin-top: 150px;
      border-right: 3px solid #004277;
    }
    
    .mb-30{
    border-bottom: solid;
    border-bottom-color: #adadaa;
    padding-bottom: 20px;
    }
    
    .text-danger-optional{
        color: #004277;
    }

    /* Complaint form */
    .form-section {
      background-color: rgba(255, 255, 255, 0.9);
      color: #333;
      border-radius: 15px;
      padding: 2rem;
      flex: 2 1 500px;
      max-width: 600px;
      box-sizing: border-box;
      box-shadow: 0 0 15px rgba(0,0,0,0.3);
      margin-left: 0;
	  gap: 10px;
    }
    .form-section h4 { color: #004277; }
    .form-control, .form-select { border-radius: 10px; }

    /* START: Added styles for file input icons */
    .textarea-wrapper {
      position: relative;
    }
    #complaintDetails {
      padding-right: 70px; /* Space for icons */
    }
    .textarea-actions {
      position: absolute;
      bottom: 12px;
      right: 12px;
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }
    .textarea-actions .file-upload-label {
      color: #6c757d;
      font-size: 1.2rem;
      cursor: pointer;
      transition: color 0.2s ease-in-out;
    }
    .textarea-actions .file-upload-label:hover {
      color: var(--mc-primary);
    }
    /* END: Added styles for file input icons */

    /* Submit button */
    .submit-btn {
      background-color: #f2d200;
      color: #fff; /* Text color is white */
      border: none;
      border-radius: 10px;
      padding: 0.5rem 1.5rem;
      transition: background-color 0.3s ease, box-shadow 0.3s ease, transform .05s ease;
      cursor: pointer;
    }
    .submit-btn:hover { background-color: #d4b500; box-shadow: 0 4px 12px rgba(242,210,0,0.6); }
    .submit-btn:active { transform: translateY(1px); }

    /* ---------- FOOTER ---------- */
    footer { background-color: #1a1a1a; color: #ccc; }
    footer a { color: #ccc; text-decoration: none; }
    footer a:hover { color: #fff; text-decoration: underline; }

    /* ---------- UTILITIES ---------- */
    .white-space-prewrap { white-space: pre-wrap; }

    /* ===================================================
        MODAL STYLES
    =================================================== */
    .mc-modal .modal-dialog {
      margin: 1.5rem auto;
    }

    .mc-modal .modal-content {
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 20px 50px rgba(2,6,23,0.22);
      border: 0;
    }

    /* Modal Header */
    .mc-modal .modal-header {
      background: #004277;
      color: #fff;
      border-bottom: none;
      padding: 1rem 1.25rem;
      align-items: center;
      gap: .75rem;
    }
    .mc-modal .modal-header .modal-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 10px;
      background: rgba(255,255,255,0.08);
      font-size: 1.3rem;
    }
    .mc-modal .modal-header .modal-title {
      margin: 0;
      font-size: 1.125rem;
      font-weight: 700;
    }

    /* Universal 'X' Close Button Style */
    .mc-modal .modal-header .btn-close {
      background-color: transparent; /* No background by default */
      border: 1px solid transparent;  /* Transparent border to prevent layout shift */
      border-radius: 0.25rem;
      padding: 0.3em;
      opacity: 0.9;
      filter: brightness(0) invert(1); /* Makes the default black 'X' white */
      transition: all 0.2s ease;
      margin-left: auto; /* Pushes to the right */
    }
    .mc-modal .modal-header .btn-close:hover {
      opacity: 1;
      border-color: rgba(255, 255, 255, 0.75); /* Add border on hover */
      background-color: rgba(255, 255, 255, 0.1); /* Add subtle background on hover */
    }


    /*OTP Modal Header */
    #otpModal .modal-header {
       background: linear-gradient(90deg, var(--mc-nav), var(--mc-primary));
    }
    

    /* Success Modal Header */
    #successModal .modal-header {
      background: #28a745;
      border-top-left-radius: 12px;
      border-top-right-radius: 12px;
    }
    #successModal .modal-content {
      border-radius: 12px;
    }
    
    /* ===================================================
        REVIEW MODAL
    =================================================== */
    #reviewModal .modal-dialog { max-width: 920px; }
    #reviewModal .modal-body {
      padding: 1.15rem;
      background: #f8fafc;
    }
    .review-container {
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      width: 100%;
      flex-wrap: wrap;
    }
    .review-left {
      flex: 0 0 260px;
      background: linear-gradient(180deg, #fff, #fbfdff);
      border-radius: 10px;
      padding: 1rem;
      box-shadow: 0 6px 18px rgba(6,21,47,0.04);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      min-width: 200px;
    }
    .review-left .icon-wrap { font-size: 2rem; color: var(--mc-primary-dark); margin-bottom: .5rem; }
    .review-left .summary-title { font-weight: 700; margin-bottom: 0.35rem; }
    .review-left .summary-sub { font-size: .9rem; color: #556170; }
    .review-right { flex: 1 1 520px; min-width: 220px; display: block; }
    .review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; align-items: start; }
    .rv-item { display:flex; flex-direction:column; gap:0.35rem; }
    .rv-label { font-size: .82rem; color: #6b7280; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
    .rv-value { background: #fff; border: 1px solid #e6eef9; border-radius: 8px; padding: 0.5rem 0.65rem; font-size: .95rem; color: #0f172a; min-height: 38px; display: flex; align-items: center; word-break: break-word; white-space: normal; }
    .rv-item.rv-complaint { grid-column: 1 / -1; }
    .complaint-box { max-height: 220px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
    #reviewModal .modal-footer { background: transparent; border-top: none; padding: 0.9rem 1.25rem; display:flex; gap:.6rem; justify-content:flex-end; align-items:center; }
    #reviewModal .modal-footer .btn { min-width: 92px; padding: .45rem .9rem; border-radius: 8px; font-weight: 600; }
    #reviewModal .modal-footer .btn-edit { background: transparent; border: 1px solid #cfd8e9; color: #374151; }
    #reviewModal .modal-footer .btn-submit { background: linear-gradient(90deg, var(--mc-primary), var(--mc-primary-dark)); color: #fff; border: 0; box-shadow: 0 10px 24px rgba(0,86,179,0.12); }

    /* ===================================================
        SUCCESS MODAL 
    =================================================== */
    #successModal.mc-modal .modal-dialog {
      max-width: 500px;
    }
    #successModal .modal-body { padding-top: 2rem; padding-bottom: 1.25rem; text-align: left; }
    .success-head { display:flex; align-items:flex-start; gap:.75rem; margin-top:.5rem; margin-bottom:1rem; }
    #successModal .ref-wrap { display:flex; align-items:center; gap:0.6rem; margin:0.4rem 0 0.6rem; justify-content:flex-start; flex-wrap: wrap; }
    #successModal .ref-wrap .form-label { margin-bottom:0; margin-right:0.25rem; font-weight:600; color:#374151; white-space:nowrap; font-size:0.95rem; }
    #successModal .ref-code { display:inline-block; padding:0.45rem 0.75rem; border-radius:999px; font-weight:700; font-size:0.95rem; }
    #successModal .copy-btn { display:inline-flex; align-items:center; gap:0.35rem; padding:0.35rem 0.6rem; border-radius:8px; font-size:0.92rem; cursor:pointer; background:transparent; border:1px solid rgba(0,0,0,0.08); }
    .success-details { background:#f6f9ff; border:1px solid #e5eefb; border-radius:10px; padding:0.9rem 1rem; margin-top:.5rem; }
    .success-details ul {
      list-style-type: disc;
      padding-left: 1.5rem;
    }
    #successModal .modal-footer .btn { background: var(--mc-accent) !important; color: #fff !important; border: 0 !important; font-weight: 700; padding: 0.45rem 1rem; border-radius: 8px; box-shadow: 0 6px 18px rgba(255,215,0,0.24); }
    
/* --- Complaint OTP Modal Styles --- */
/* --- Complaint OTP Modal Styles --- */
#complaintOtpModal {
  z-index: 2300;
}

#complaintOtpModal .modal-dialog {
  max-width: 460px;
  border-radius: 16px;
  overflow: hidden;
}

#complaintOtpModal .modal-content {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 16px;
  background-color: #fff;
}

/* Header */
#complaintOtpModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f6;
  background: linear-gradient(90deg, #003b6d 0%, #00539f 100%);
  color: #fff;
}

#complaintOtpModal .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  margin: 0;
}

/* Body */
#complaintOtpModal .modal-body {
  padding: 24px 18px;
  text-align: center;
}

#complaintOtpModal .modal-note {
  font-size: 14px;
  color: #444;
  margin-bottom: 16px;
}

/* PIN Input Fields */
.pin-input-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.pin-digit {
  width: 48px;
  height: 58px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pin-digit:focus {
  outline: none;
  border-color: #003b6d;
  box-shadow: 0 0 0 3px rgba(0, 59, 109, 0.15);
}

/* Error Message */
.error-message {
  font-size: 12px;
  color: #b00020;
  margin-top: 3px;
  display: none;
}

.error-message.active {
  display: block;
}

/* Timer container (optional resend display) */
.pin-timer-container {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Footer buttons */
#complaintOtpModal .modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #eef2f6;
  justify-content: flex-end;
  background: #fff;
}

#complaintOtpModal .btn-secondary {
  background: #f1f1f1;
  color: #003b6d;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

#complaintOtpModal .btn-secondary:hover {
  background: #e3e3e3;
}

#complaintOtpModal .btn-primary {
  background: #003b6d;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

#complaintOtpModal .btn-primary:disabled {
  background: #8ea9c4;
  cursor: not-allowed;
}


    
    /* ===================================================
        LOADING MODAL (Processing State)
    =================================================== */
    #loadingModal .modal-content {
      background: linear-gradient(180deg, #ffffff, #f8fbff);
      border-radius: 16px;
      box-shadow: 0 20px 40px rgba(0, 66, 119, 0.25);
      border: 1px solid rgba(0, 66, 119, 0.1);
      padding: 2rem 1.5rem;
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
    
    #loadingModal .spinner-border {
      width: 3.5rem !important;
      height: 3.5rem !important;
      color: #004277 !important;
      animation: spinPulse 1s linear infinite;
    }
    
    @keyframes spinPulse {
      0% { transform: rotate(0deg) scale(1); opacity: 1; }
      50% { transform: rotate(180deg) scale(1.1); opacity: 0.85; }
      100% { transform: rotate(360deg) scale(1); opacity: 1; }
    }
    
    #loadingModal h6 {
      color: #004277;
      font-weight: 700;
      margin-bottom: 0.4rem;
      letter-spacing: 0.02em;
    }
    
    #loadingModal p {
      color: #6b7280;
      font-size: 0.9rem;
      line-height: 1.45;
      margin: 0;
    }
    
    /* Optional subtle background blur for entire screen while loading */
    #loadingModal.show .modal-backdrop {
      backdrop-filter: blur(5px);
    }
    
    /* Mobile responsiveness */
    @media (max-width: 575.98px) {
      #loadingModal .modal-content {
        padding: 1.5rem 1.25rem;
      }
      #loadingModal h6 {
        font-size: 1rem;
      }
      #loadingModal p {
        font-size: 0.85rem;
      }
    }

    
    /* ---------- RESPONSIVE ADJUSTMENTS ---------- */
    @media (max-width: 767.98px) {
      /* Mobile header fix */
      .top-header {
        padding: 16px 16px 8px;
    }
      .top-header h1 {
        font-size: 1.75rem;
    }
    .hero-row { 
		flex-direction: column; 
		gap: 1.5rem; 
	}
		
    .info-box { 
      margin-top: 10px; 
      border-radius: 20px; 
      border-right: none; 
      max-height: none; 
      max-width: none;
      overflow: visible;
	}
    .form-section { 
      margin-left: 0; 
      margin-bottom: 25px; 
      max-width: none; /* ADD THIS LINE */
	}
		
    .review-container { flex-direction: column; }
    .review-left { width: 100%; flex-basis: auto; }
    .review-right { width: 100%; }
    .review-grid { grid-template-columns: 1fr; }
    .rv-item .rv-value { min-height: auto; }
    .complaint-box { max-height: 160px; }
    }
    
    @media (max-width: 480px) {
      .otp-input { width: 52px; height: 52px; font-size:1.1rem; }
      .otp-resend-wrap { width:100%; justify-content:center; gap:0.4rem; }
      .btn-resend { min-width: 90px; }
      .otp-note { text-align:center; }
    }
    
    /* This rule ensures modals don't touch the screen edge on small devices. */
    @media (max-width: 575.98px) {
      .mc-modal .modal-dialog {
        margin: 1rem;
      }
    }
