/* ── Settipally Orphans Home — Frontend Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --soh-primary:   #1a4731;
  --soh-accent:    #e8a838;
  --soh-light:     #f7f3ed;
  --soh-border:    #d8cfc4;
  --soh-text:      #2c2c2c;
  --soh-muted:     #7a7a7a;
  --soh-error:     #c0392b;
  --soh-success:   #27ae60;
  --soh-radius:    14px;
  --soh-shadow:    0 8px 40px rgba(0,0,0,.12);
}

.soh-wrap * { box-sizing: border-box; }

.soh-wrap {
  font-family: 'Poppins', sans-serif;
  color: var(--soh-text);
  max-width: 560px;
  margin: 30px auto;
  padding: 0 16px;
}

/* Card */
.soh-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--soh-shadow);
  overflow: hidden;
}

/* Header */
.soh-header {
  background: linear-gradient(135deg, var(--soh-primary) 0%, #2d6a4f 100%);
  color: #fff;
  text-align: center;
  padding: 36px 24px 28px;
}
.soh-logo { font-size: 3em; margin-bottom: 8px; }
.soh-header h1 {
  font-family: 'Noto Serif', serif;
  font-size: 1.5em;
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.soh-header p {
  margin: 0;
  font-size: .85em;
  opacity: .8;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Fields */
.soh-field {
  padding: 28px 28px 12px;
  border-bottom: 1px solid #f0ece6;
  transition: all .3s ease;
  animation: sohFadeIn .4s ease;
}
.soh-field:last-child { border-bottom: none; }
.soh-field.hidden { display: none !important; }

@keyframes sohFadeIn {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}

.soh-field label {
  display: block;
  font-weight: 600;
  font-size: .85em;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--soh-muted);
  margin-bottom: 10px;
}
.soh-field label .req { color: var(--soh-error); margin-left: 2px; }
.soh-field label .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--soh-muted);
  font-size: .9em;
}

.soh-field input[type="text"],
.soh-field input[type="number"],
.soh-field input[type="tel"] {
  width: 100%;
  border: 2px solid var(--soh-border);
  border-radius: var(--soh-radius);
  padding: 13px 16px;
  font-size: 1em;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--soh-light);
}
.soh-field input:focus {
  border-color: var(--soh-primary);
  box-shadow: 0 0 0 3px rgba(26,71,49,.1);
  background: #fff;
}

/* Radio Groups */
.soh-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.soh-radio-group.vertical { flex-direction: column; gap: 8px; }
.soh-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soh-light);
  border: 2px solid var(--soh-border);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: .9em;
  transition: all .2s;
  font-weight: 500;
}
.soh-radio:has(input:checked) {
  border-color: var(--soh-primary);
  background: #e8f4ee;
  color: var(--soh-primary);
}
.soh-radio input { display: none; }

/* Aadhar */
.soh-aadhar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.soh-aadhar-part {
  width: 80px !important;
  text-align: center;
  font-size: 1.2em !important;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 12px 8px !important;
}
.soh-aadhar-sep { font-size: 1.4em; color: var(--soh-border); font-weight: 700; }

.soh-check-btn {
  display: block;
  margin-top: 14px;
  background: var(--soh-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  font-family: 'Poppins', sans-serif;
}
.soh-check-btn:hover { background: #d49330; }
.soh-check-btn:active { transform: scale(.97); }

.soh-aadhar-display {
  margin-top: 14px;
  font-size: 2em;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--soh-primary);
  background: var(--soh-light);
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  border: 2px solid var(--soh-primary);
  animation: sohFadeIn .3s ease;
}

/* Mobile */
.soh-mobile-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--soh-border);
  border-radius: var(--soh-radius);
  overflow: hidden;
  background: var(--soh-light);
  transition: border-color .2s;
}
.soh-mobile-wrap:focus-within { border-color: var(--soh-primary); background:#fff; }
.soh-mobile-prefix {
  padding: 0 14px;
  font-weight: 700;
  color: var(--soh-primary);
  border-right: 2px solid var(--soh-border);
  background: #e8f4ee;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.soh-mobile-wrap input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Photo */
.soh-photo-wrap { display: flex; gap: 16px; align-items: flex-start; }
.soh-photo-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--soh-light);
  border: 3px dashed var(--soh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color .2s;
}
.soh-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.soh-photo-btns { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.soh-photo-btn {
  display: inline-block;
  background: var(--soh-primary);
  color: #fff;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: .9em;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .2s;
}
.soh-photo-btn:hover { background: #2d6a4f; }

/* Next Btn */
.soh-next-btn-wrap { margin-top: 16px; margin-bottom: 8px; }
.soh-next-btn {
  background: var(--soh-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: .95em;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background .2s, transform .1s;
}
.soh-next-btn:hover { background: #2d6a4f; }
.soh-next-btn:active { transform: scale(.97); }

/* Submit */
.soh-summary {
  background: var(--soh-light);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: .88em;
  line-height: 1.9;
}
.soh-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--soh-primary), #2d6a4f);
  color: #fff;
  border: none;
  border-radius: var(--soh-radius);
  padding: 16px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: opacity .2s, transform .1s;
  letter-spacing: .04em;
}
.soh-submit-btn:hover { opacity: .9; }
.soh-submit-btn:active { transform: scale(.98); }

/* Success */
.soh-success {
  text-align: center;
  padding: 20px;
  animation: sohFadeIn .5s ease;
}
.soh-success-icon { font-size: 3em; margin-bottom: 10px; }
.soh-success h3 { color: var(--soh-success); font-size: 1.3em; margin-bottom: 8px; }

/* Error */
.soh-error {
  color: var(--soh-error);
  font-size: .83em;
  margin-top: 6px;
  min-height: 18px;
  font-weight: 500;
}

/* Progress */
.soh-progress {
  height: 4px;
  background: #eee;
  margin-top: 12px;
}
.soh-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--soh-primary), var(--soh-accent));
  transition: width .4s ease;
  border-radius: 2px;
}
.soh-step-indicator {
  text-align: center;
  font-size: .75em;
  color: var(--soh-muted);
  padding: 6px 0 16px;
  letter-spacing: .06em;
}

/* ── Public List ── */
.soh-public { max-width: 700px; }
.soh-public-header {
  background: linear-gradient(135deg, var(--soh-primary), #2d6a4f);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  padding: 30px 20px;
  margin-bottom: 24px;
}
.soh-public-header h2 {
  font-family: 'Noto Serif', serif;
  font-size: 1.6em;
  margin: 8px 0 4px;
}
.soh-public-header p { margin: 0; opacity: .8; font-size: .85em; }

.soh-list { display: flex; flex-direction: column; gap: 0; }
.soh-list-item {
  background: #fff;
  border: 1px solid var(--soh-border);
  border-radius: 0;
  padding: 16px 22px;
  animation: sohFadeIn .4s ease both;
  transition: background .2s;
}
.soh-list-item:first-child { border-radius: 14px 14px 0 0; }
.soh-list-item:last-child { border-radius: 0 0 14px 14px; }
.soh-list-item:only-child { border-radius: 14px; }
.soh-list-item:hover { background: var(--soh-light); }

.soh-name-link {
  color: var(--soh-primary);
  font-weight: 600;
  font-size: 1.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.soh-name-link::before { content: '👤'; font-size: .85em; }
.soh-name-link:hover { color: #2d6a4f; text-decoration: underline; }

.soh-no-records {
  text-align: center;
  color: var(--soh-muted);
  padding: 40px;
}

/* Popup */
.soh-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  backdrop-filter: blur(3px);
  animation: sohFadeIn .2s ease;
}
.soh-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 9999;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 80px rgba(0,0,0,.3);
  width: 92vw;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  animation: sohPopIn .3s ease;
}
@keyframes sohPopIn {
  from { opacity:0; transform:translate(-50%,-48%) scale(.95); }
  to   { opacity:1; transform:translate(-50%,-50%) scale(1); }
}
.soh-popup-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 14px 14px 0 0;
  background: #f0ece6;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1em;
  cursor: pointer;
  z-index: 10;
}
.soh-popup-close:hover { background: #e0d8d0; }
.soh-popup-content { padding: 20px 24px 24px; clear: both; }
.soh-popup-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--soh-primary);
  display: block;
  margin: 0 auto 16px;
}
.soh-popup-avatar {
  font-size: 4em;
  text-align: center;
  margin-bottom: 12px;
}
.soh-popup-name {
  font-family: 'Noto Serif', serif;
  font-size: 1.5em;
  font-weight: 700;
  text-align: center;
  color: var(--soh-primary);
  margin-bottom: 16px;
}
.soh-popup-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.soh-popup-item {
  background: var(--soh-light);
  border-radius: 10px;
  padding: 12px 14px;
}
.soh-popup-item-label {
  font-size: .72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--soh-muted);
  margin-bottom: 3px;
}
.soh-popup-item-value {
  font-size: .95em;
  font-weight: 600;
  color: var(--soh-text);
}
.soh-popup-aadhar {
  text-align: center;
  font-size: .8em;
  color: var(--soh-muted);
  margin-top: 14px;
  letter-spacing: .1em;
}

.hidden { display: none !important; }
