
/* ─── GHH Refund Portal – Public Styles ─────────────────── */
:root {
  --ghh-green:      #1B5E20;
  --ghh-green-mid:  #2E7D32;
  --ghh-green-light:#E8F5E9;
  --ghh-gold:       #C8960C;
  --ghh-gold-light: #FFF8E1;
  --ghh-white:      #FFFFFF;
  --ghh-gray:       #6B7280;
  --ghh-gray-light: #F3F4F6;
  --ghh-border:     #D1D5DB;
  --ghh-danger:     #C62828;
  --ghh-warning:    #E65100;
  --ghh-success:    #1B5E20;
  --ghh-radius:     10px;
  --ghh-shadow:     0 2px 12px rgba(0,0,0,.09);
  --ghh-font:       'Segoe UI', Roboto, Arial, sans-serif;
}

/* Reset & Base */
.ghh-portal-wrap *,
.ghh-portal-wrap *::before,
.ghh-portal-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }
.ghh-portal-wrap { font-family: var(--ghh-font); color: #1F2937; max-width: 820px; margin: 0 auto; padding: 16px; }

/* Header */
.ghh-portal-header {
  background: linear-gradient(135deg, var(--ghh-green) 0%, #388E3C 100%);
  color: var(--ghh-white);
  border-radius: var(--ghh-radius) var(--ghh-radius) 0 0;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 4px solid var(--ghh-gold);
}
.ghh-header-logo .ghh-logo-icon { font-size: 48px; opacity: .95; }
.ghh-portal-header h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.ghh-portal-header p  { font-size: .85rem; opacity: .85; }

/* Notice bar */
.ghh-notice-bar {
  background: var(--ghh-gold-light);
  border-left: 4px solid var(--ghh-gold);
  padding: 10px 16px;
  font-size: .9rem;
  color: #4E342E;
}

/* Cards */
.ghh-card {
  background: var(--ghh-white);
  border: 1px solid var(--ghh-border);
  border-radius: var(--ghh-radius);
  padding: 24px 28px;
  margin-top: 18px;
  box-shadow: var(--ghh-shadow);
}
.ghh-card h3 { font-size: 1.1rem; color: var(--ghh-green); margin-bottom: 12px; font-weight: 700; }
.ghh-card h4 { font-size: 1rem; color: var(--ghh-green-mid); margin-bottom: 14px; font-weight: 600; }

/* Applicant header */
.ghh-applicant-card { border-top: 4px solid var(--ghh-green); }
.ghh-applicant-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.ghh-applicant-avatar i { font-size: 52px; color: var(--ghh-green-mid); }
.ghh-applicant-header h3 { font-size: 1.3rem; color: var(--ghh-green); margin-bottom: 4px; }
.ghh-applicant-header p  { font-size: .88rem; color: var(--ghh-gray); margin: 2px 0; }

/* Info grid */
.ghh-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; }
.ghh-info-item { background: var(--ghh-gray-light); border-radius: 8px; padding: 10px 14px; }
.ghh-info-label { display: block; font-size: .75rem; color: var(--ghh-gray); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ghh-info-value { font-size: .95rem; font-weight: 600; color: #111827; }

/* Bank card */
.ghh-bank-card { border-top: 4px solid var(--ghh-gold); }
.ghh-bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; margin-bottom: 18px; }
.ghh-bank-item { background: var(--ghh-green-light); border-radius: 8px; padding: 12px 16px; }
.ghh-bank-label { display: block; font-size: .75rem; color: var(--ghh-green); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.ghh-bank-value { font-size: 1rem; font-weight: 700; color: #1F2937; }
.ghh-account-no { font-family: 'Courier New', monospace; letter-spacing: .1em; }

/* Badges */
.ghh-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.ghh-badge-success  { background: #E8F5E9; color: #1B5E20; }
.ghh-badge-warning  { background: #FFF3E0; color: #E65100; }
.ghh-badge-danger   { background: #FFEBEE; color: #C62828; }
.ghh-badge-secondary{ background: #F3F4F6; color: #6B7280; }

/* Actions */
.ghh-bank-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.ghh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px; border: none; cursor: pointer;
  font-size: .95rem; font-weight: 600; font-family: var(--ghh-font);
  transition: all .2s; text-decoration: none;
}
.ghh-btn:focus { outline: 3px solid var(--ghh-gold); outline-offset: 2px; }
.ghh-btn-primary  { background: var(--ghh-green); color: var(--ghh-white); }
.ghh-btn-primary:hover  { background: var(--ghh-green-mid); }
.ghh-btn-success  { background: #2E7D32; color: var(--ghh-white); }
.ghh-btn-success:hover  { background: #1B5E20; }
.ghh-btn-warning  { background: var(--ghh-gold); color: var(--ghh-white); }
.ghh-btn-warning:hover  { background: #A67C00; }
.ghh-btn-outline  { background: transparent; color: var(--ghh-green); border: 2px solid var(--ghh-green); }
.ghh-btn-outline:hover  { background: var(--ghh-green-light); }
.ghh-btn-danger   { background: var(--ghh-danger); color: #fff; }
.ghh-btn-sm { padding: 7px 14px; font-size: .85rem; }

/* Alerts */
.ghh-alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; font-weight: 500; }
.ghh-alert-danger  { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.ghh-alert-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #C8E6C9; }
.ghh-alert-warning { background: #FFF3E0; color: #E65100; border: 1px solid #FFE0B2; }

/* Form */
.ghh-intro-text { color: var(--ghh-gray); margin-bottom: 18px; font-size: .92rem; }
.ghh-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.ghh-full-col { grid-column: 1 / -1; }
.ghh-form-row { margin-bottom: 16px; }
.ghh-form-row label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: #374151; }
.ghh-form-row input,
.ghh-form-row textarea,
.ghh-form-row select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--ghh-border);
  border-radius: 8px; font-size: .95rem; font-family: var(--ghh-font);
  transition: border-color .2s; background: #fff; color: #111827;
}
.ghh-form-row input:focus,
.ghh-form-row textarea:focus { border-color: var(--ghh-green); outline: none; box-shadow: 0 0 0 3px rgba(27,94,32,.12); }
.ghh-form-row small { font-size: .8rem; color: var(--ghh-gray); margin-top: 4px; display: block; }
.ghh-form-row .required { color: var(--ghh-danger); }
.ghh-form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* IFSC hint */
.ghh-ifsc-status { color: var(--ghh-green); font-weight: 600; }

/* Upload */
.ghh-upload-section { background: var(--ghh-gray-light); border-radius: 8px; padding: 18px; margin: 18px 0; }
.ghh-upload-section h4 { margin-bottom: 6px; }
.ghh-upload-section p  { font-size: .85rem; color: var(--ghh-gray); margin-bottom: 10px; }
.ghh-upload-info { font-weight: 500; color: #4B5563 !important; }
.ghh-upload-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 22px; border: 2px dashed var(--ghh-border); border-radius: 8px;
  cursor: pointer; background: #fff; text-align: center; transition: border-color .2s;
  color: var(--ghh-gray); font-size: .9rem;
}
.ghh-upload-label i { font-size: 2rem; color: var(--ghh-green); }
.ghh-upload-label:hover { border-color: var(--ghh-green); }
#ghh-file-preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
#ghh-file-preview img { max-height: 80px; border-radius: 6px; border: 1px solid var(--ghh-border); }
#ghh-file-name { font-size: .85rem; color: var(--ghh-green); font-weight: 600; }

/* Declaration */
.ghh-declaration-box { background: var(--ghh-gold-light); border: 1px solid #FFD54F; border-radius: 8px; padding: 14px 18px; margin-top: 16px; }
.ghh-declaration-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; color: #4E342E; }
.ghh-declaration-label input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--ghh-green); }

/* Remarks */
.ghh-remarks-box { background: #FFF3E0; border-left: 4px solid var(--ghh-gold); padding: 10px 14px; border-radius: 0 8px 8px 0; margin-top: 12px; font-size: .9rem; }

/* Reference number */
.ghh-ref-number { font-family: 'Courier New', monospace; font-size: 1rem; font-weight: 700; color: var(--ghh-green); }

/* Confirmation card */
.ghh-confirmation-card { text-align: center; border-top: 4px solid var(--ghh-green); }
.ghh-confirmation-icon i { font-size: 60px; color: var(--ghh-green); }
.ghh-confirmation-card h3 { font-size: 1.4rem; margin: 14px 0 10px; color: var(--ghh-green); }
.ghh-conf-message { background: var(--ghh-green-light); border-radius: 8px; padding: 14px; font-size: .95rem; color: #1B5E20; margin: 14px 0; }
.ghh-conf-details { display: inline-flex; flex-direction: column; gap: 10px; text-align: left; background: var(--ghh-gray-light); border-radius: 8px; padding: 16px 24px; margin: 14px auto; }
.ghh-conf-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; font-size: .95rem; }
.ghh-conf-row span { color: var(--ghh-gray); }
.ghh-conf-note { font-size: .88rem; color: var(--ghh-gray); margin: 14px 0; }

/* Portal closed */
.ghh-portal-closed { text-align: center; padding: 48px 24px; }
.ghh-closed-icon { font-size: 56px; color: var(--ghh-gray); margin-bottom: 14px; }
.ghh-portal-closed h3 { font-size: 1.3rem; color: var(--ghh-green); margin-bottom: 10px; }
.ghh-portal-closed p { color: var(--ghh-gray); font-size: .95rem; }

/* Verify card */
.ghh-verify-card { border-top: 4px solid var(--ghh-green); }

/* Spinner */
.ghh-spinner { margin-left: 4px; }

/* Responsive */
@media (max-width: 600px) {
  .ghh-portal-header { padding: 16px; gap: 12px; }
  .ghh-portal-header h2 { font-size: 1rem; }
  .ghh-header-logo .ghh-logo-icon { font-size: 34px; }
  .ghh-card { padding: 16px; }
  .ghh-form-grid { grid-template-columns: 1fr; }
  .ghh-bank-actions,
  .ghh-form-actions { flex-direction: column; }
  .ghh-btn { width: 100%; justify-content: center; }
  .ghh-bank-grid { grid-template-columns: 1fr; }
}

/* ── v1.2 Additions ─────────────────────────────────────── */

/* 3-status badge colours */
.ghh-badge-grey      { background:#F3F4F6; color:#6B7280; border:1px solid #E5E7EB; }
.ghh-badge-submitted { background:#EFF6FF; color:#1D4ED8; border:1px solid #BFDBFE; }
.ghh-badge-uv        { background:#FFF7ED; color:#C2410C; border:1px solid #FED7AA; }
.ghh-badge-verified  { background:#F0FDF4; color:#166534; border:1px solid #BBF7D0; }
.ghh-badge-rejected  { background:#FFF1F2; color:#BE123C; border:1px solid #FECDD3; }

/* Haj year badge in header */
.ghh-haj-year-badge {
  display:inline-block; background:#C8960C; color:#fff;
  font-size:.8rem; font-weight:700; letter-spacing:.08em;
  padding:3px 12px; border-radius:20px; margin-bottom:6px;
  text-transform:uppercase;
}

/* Timeline */
.ghh-timeline { display:flex; flex-direction:column; gap:0; padding:4px 0; }
.ghh-tl-step  {
  display:flex; align-items:flex-start; gap:14px;
  padding-bottom:20px; position:relative;
}
.ghh-tl-step:not(:last-child)::before {
  content:''; position:absolute; left:15px; top:32px;
  width:2px; height:calc(100% - 14px); background:#E5E7EB;
}
.ghh-tl-step.done::before    { background:#2E7D32; }
.ghh-tl-step.current::before { background:linear-gradient(#2E7D32,#E5E7EB); }
.ghh-tl-icon {
  width:32px; height:32px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:.85rem; z-index:1;
  background:#E5E7EB; color:#9CA3AF;
}
.ghh-tl-step.done    .ghh-tl-icon { background:#2E7D32; color:#fff; }
.ghh-tl-step.current .ghh-tl-icon {
  background:#C2410C; color:#fff;
  animation:ghh-pulse 1.5s infinite;
}
@keyframes ghh-pulse {
  0%,100% { box-shadow:0 0 0 0 rgba(194,65,12,.4); }
  50%      { box-shadow:0 0 0 7px rgba(194,65,12,0); }
}
.ghh-tl-body   { padding-top:4px; }
.ghh-tl-label  { font-weight:600; font-size:.93rem; color:#374151; }
.ghh-tl-sub    { font-size:.8rem; color:#9CA3AF; margin-top:3px; line-height:1.4; }
.ghh-tl-step.done    .ghh-tl-label { color:#1B5E20; }
.ghh-tl-step.current .ghh-tl-label { color:#C2410C; }

.ghh-timeline-footer {
  background:#FFF7ED; border:1px solid #FED7AA; border-radius:8px;
  padding:10px 14px; margin-top:12px; font-size:.85rem; color:#7C2D12;
}

/* Existing details box */
.ghh-existing-details-box {
  background:#F0FDF4; border:1px solid #BBF7D0; border-radius:10px;
  padding:16px 20px; margin-bottom:20px;
}
.ghh-existing-details-box h4 { color:#166534; margin-bottom:12px; font-size:.95rem; }
.ghh-detail-table { width:100%; border-collapse:collapse; }
.ghh-detail-table th {
  text-align:left; padding:8px 12px; background:#DCFCE7;
  font-size:.82rem; color:#166534; width:40%;
  border:1px solid #BBF7D0; font-weight:600;
}
.ghh-detail-table td {
  padding:8px 12px; border:1px solid #BBF7D0;
  font-weight:700; font-size:.95rem; color:#111827;
}
.ghh-account-mono { font-family:"Courier New",monospace; letter-spacing:.08em; }

/* Confirmation step indicators */
.ghh-status-steps {
  display:flex; align-items:center; justify-content:center;
  gap:8px; flex-wrap:wrap; margin:20px 0; font-size:.82rem;
}
.ghh-step-indicator {
  text-align:center; padding:8px 14px;
  border-radius:8px; background:#F3F4F6;
  color:#6B7280; border:1px solid #E5E7EB; line-height:1.4;
}
.ghh-step-indicator.done {
  background:#F0FDF4; color:#166534;
  border-color:#BBF7D0; font-weight:600;
}
.ghh-step-arrow { color:#9CA3AF; font-size:1.1rem; }

/* Search year header */
.ghh-search-year-header h3 { color:#1B5E20; }

/* btn-success */
.ghh-btn-success       { background:#2E7D32; color:#fff; }
.ghh-btn-success:hover { background:#1B5E20; }
