/* ADSPHCDA Recruitment Portal — portal.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f0f4f0; color: #1a2e1f; min-height: 100vh; }
.adsr-wrap { max-width: 940px; margin: 0 auto; padding: 1.5rem 1rem 5rem; }
.adsr-hdr { margin-bottom: 1.5rem; }
.adsr-hdr h2 { font-size: 20px; font-weight: 700; margin-bottom: .25rem; color: #006837; }
.adsr-hdr p  { color: #4a6351; font-size: 13px; }

/* Steps */
.adsr-steps { display: flex; align-items: center; margin-bottom: 2rem; overflow-x: auto; padding-bottom: 4px; }
.adsr-step-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.adsr-dot { width: 30px; height: 30px; border-radius: 50%; background: #d4e4da; color: #4a6351; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.adsr-dot-active { background: #006837; color: #fff; box-shadow: 0 0 0 4px rgba(0,104,55,.18); }
.adsr-dot-done   { background: #00a651; color: #fff; }
.adsr-step-lbl   { font-size: 11px; color: #4a6351; white-space: nowrap; }
.adsr-step-line  { flex: 1; height: 2px; background: #d4e4da; margin: 0 4px 18px; min-width: 20px; transition: background .3s; }

/* Card */
.adsr-card { background: #fff; border-radius: 10px; padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: 0 2px 8px rgba(0,104,55,.07); }
.adsr-sec-title { font-weight: 700; font-size: 12px; color: #006837; border-bottom: 2px solid #e8f5ee; padding-bottom: 8px; margin-bottom: 1.1rem; text-transform: uppercase; letter-spacing: .4px; }

/* Grid */
.adsr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 580px) { .adsr-grid { grid-template-columns: 1fr; } }
.adsr-fld { display: flex; flex-direction: column; gap: 4px; }
.adsr-fld label { font-size: 13px; font-weight: 600; color: #1a2e1f; }
.adsr-fld input,
.adsr-fld select { padding: 9px 11px; border: 1.5px solid #d4e4da; border-radius: 6px; font-size: 14px; font-family: inherit; color: #1a2e1f; background: #fff; transition: border-color .2s, box-shadow .2s; width: 100%; }
.adsr-fld textarea { padding: 9px 11px; border: 1.5px solid #d4e4da; border-radius: 6px; font-size: 14px; font-family: inherit; color: #1a2e1f; background: #fff; transition: border-color .2s; width: 100%; resize: vertical; min-height: 60px; }
.adsr-fld input:focus, .adsr-fld select:focus, .adsr-fld textarea:focus { outline: none; border-color: #006837; box-shadow: 0 0 0 3px rgba(0,104,55,.12); }
.adsr-hint      { font-size: 11px; color: #4a6351; margin-top: 2px; display: block; }
.adsr-file-note { font-size: 11px; color: #4a6351; margin-top: 5px; display: block; }
.req { color: #c0392b; }

/* Photo */
.adsr-photo-row    { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.5rem; }
.adsr-photo-col    { flex-shrink: 0; }
.adsr-photo-fields { flex: 1; min-width: 250px; }
.adsr-photo-box    { display: block; width: 120px; height: 150px; border: 2px dashed #b0c9b8; border-radius: 10px; cursor: pointer; overflow: hidden; transition: border-color .2s; }
.adsr-photo-box:hover { border-color: #006837; }
.adsr-photo-preview { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background-size: cover; background-position: center; }

/* Table form */
.adsr-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.adsr-tbl th { background: #f0f9f4; padding: 8px 10px; font-weight: 600; font-size: 12px; color: #006837; border-bottom: 2px solid #d4e4da; text-align: left; white-space: nowrap; }
.adsr-tbl td { padding: 4px 5px; border-bottom: 1px solid #f0f4f0; }
.adsr-tbl-hd { padding: 7px 8px !important; font-size: 12px; font-weight: 600; background: #f0f9f4; color: #1a2e1f; min-width: 150px; }
.adsr-tbl td input { width: 100%; padding: 6px 8px; border: 1.5px solid #d4e4da; border-radius: 5px; font-size: 12px; font-family: inherit; min-width: 90px; }
.adsr-tbl td input:focus { outline: none; border-color: #006837; }

/* Doc notice */
.adsr-doc-notice { background: #fdf6e8; border: 1px solid #c8a84b; border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.adsr-doc-notice strong { color: #5a3e00; font-size: 14px; display: block; margin-bottom: .3rem; }

/* Declaration */
.adsr-decl-text { background: #f0f9f4; border-left: 3px solid #006837; border-radius: 0 8px 8px 0; padding: 1rem 1.2rem; font-size: 13px; color: #1a2e1f; line-height: 1.6; margin-bottom: 1rem; }
.adsr-chk-row { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13px; line-height: 1.5; margin-top: .75rem; user-select: none; }
.adsr-chk-row input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; cursor: pointer; accent-color: #006837; }

/* Buttons */
.adsr-btns   { display: flex; justify-content: flex-end; gap: 10px; margin-top: .5rem; }
.adsr-btns-2 { justify-content: space-between; }
.adsr-btn-p  { background: #006837; color: #fff; border: none; border-radius: 6px; padding: 11px 24px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .2s; white-space: nowrap; }
.adsr-btn-p:hover    { background: #00521e; }
.adsr-btn-p:disabled { background: #7aab8a; cursor: not-allowed; }
.adsr-btn-s  { background: #f0f4f0; color: #1a2e1f; border: 1.5px solid #d4e4da; border-radius: 6px; padding: 11px 22px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .2s; white-space: nowrap; }
.adsr-btn-s:hover { background: #e8f5ee; }

/* Progress */
#adsr-prog { display: none; position: fixed; inset: 0; background: rgba(0,40,20,.72); z-index: 9999; align-items: center; justify-content: center; }
.adsr-spinner { width: 40px; height: 40px; border: 4px solid #d4e4da; border-top-color: #006837; border-radius: 50%; animation: adsr-spin .8s linear infinite; margin: 0 auto; }
@keyframes adsr-spin { to { transform: rotate(360deg); } }

/* Closed */
.adsr-closed { background: #fff; border-radius: 10px; padding: 4rem 2rem; text-align: center; box-shadow: 0 2px 8px rgba(0,104,55,.07); margin-top: 2rem; }
.adsr-closed h2 { font-size: 22px; color: #006837; margin: 1rem 0 .5rem; }
.adsr-closed p  { color: #4a6351; font-size: 15px; }

/* Toasts */
#adsr-toasts { position: fixed; bottom: 24px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.adsr-toast { padding: 12px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; max-width: 360px; box-shadow: 0 4px 16px rgba(0,0,0,.18); pointer-events: all; animation: adsr-toast-in .3s ease; transition: opacity .4s; }
.adsr-toast-out     { opacity: 0; }
.adsr-toast-error   { background: #fdedec; color: #c0392b; border-left: 4px solid #e74c3c; }
.adsr-toast-success { background: #eafaf1; color: #006837; border-left: 4px solid #00a651; }
.adsr-toast-info    { background: #f0f9f4; color: #006837; border-left: 4px solid #006837; }
@keyframes adsr-toast-in { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

#adsr-app { font-family: 'DM Sans', -apple-system, sans-serif; color: #1a2e1f; }
#adsr-app .adsr-wrap { padding-top: 1rem; }
@media (max-width: 480px) {
  .adsr-card { padding: 1rem; }
  .adsr-photo-row { gap: 1rem; }
  .adsr-photo-box { width: 100px; height: 125px; }
  .adsr-btn-p, .adsr-btn-s { padding: 10px 16px; font-size: 13px; }
}
