/* =========================================================
   SCVSKM — DIRECTORY DEDICATED STYLESHEET (REFINED)
   Strict Theme: Cinnamon Maroon | Ivory Cream | Gold Accent
   Standard Uniform Typography Scale Applied
   Inherits Local Noto Sans & Global Layout from style.css
   ========================================================= */

/* --- 1. Main Directory Content Area --- */
.content-area {
  flex: 1 0 auto;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 16px 40px 16px;
}

/* --- 2. Search Instructional Header --- */
.search-intro {
  text-align: center;
  margin-bottom: 24px;
}

/* Small Text 1 (Desktop: 12px / Mobile: 10px) */
.intro-badge {
  display: inline-block;
  background: var(--cinnamon-bg, #fcdada);
  color: var(--cinnamon-dark, #771d1d);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--cinnamon-light, #faaaaa);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

/* Heading 2 (Desktop: 24px / Mobile: 20px) */
.intro-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--cinnamon-dark, #771d1d);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

/* Paragraph 2 (Desktop: 14px / Mobile: 12px) */
.intro-desc {
  font-size: 14px;
  color: var(--text-muted, #475569);
  line-height: 1.6;
  margin: 0 auto 16px auto;
  max-width: 520px;
}

.intro-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  text-align: left;
}

.step-item {
  background: #ffffff;
  border: 1.5px solid var(--card-border, #e2e8f0);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px; /* Small Text 1 Desktop */
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cinnamon-dark, #771d1d);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

/* --- 3. Verification Search Card --- */
.search-card {
  background: #ffffff;
  border: 1.5px solid var(--card-border, #e2e8f0);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(119, 29, 29, 0.05);
  margin-bottom: 24px;
}

.field-group {
  margin-bottom: 16px;
}

/* Paragraph 2 (Desktop: 14px / Mobile: 12px) */
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cinnamon-dark, #771d1d);
  margin-bottom: 6px;
}

.input-box {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  font-size: 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--text-main, #0f172a);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-box:focus {
  border-color: var(--cinnamon-dark, #771d1d);
  box-shadow: 0 0 0 3px rgba(119, 29, 29, 0.12);
}

.btn-submit {
  width: 100%;
  height: 48px;
  background-color: var(--cinnamon-dark, #771d1d);
  color: #ffffff;
  border: 1.5px solid var(--gold-accent, #dfc39a);
  border-radius: 10px;
  font-size: 14px; /* Paragraph 2 Desktop */
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(119, 29, 29, 0.2);
}

.btn-submit:hover {
  background-color: var(--cinnamon-primary, #a72626);
}

.btn-submit:active {
  transform: scale(0.99);
}

.btn-clear {
  width: 100%;
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--text-muted, #475569);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px;
  font-weight: 600;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid var(--cinnamon-light, #faaaaa);
  color: var(--cinnamon-primary, #a72626);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--cinnamon-dark, #771d1d);
  font-weight: 700;
}

/* --- 4. Result Member Card --- */
.card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 20px;
  border: 1.5px solid var(--card-border, #e2e8f0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

/* Small Text 1 Accent Badge */
.sabhasad-top-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #c2410c;
  background-color: #fff7ed;
  border: 1.5px solid #ffedd5;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.1);
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.name-village-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* Heading 3 / Subtitle (Desktop: 20px / Mobile: 16px) */
.card .member-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  margin: 0;
  line-height: 1.4;
}

.tag.village-only {
  font-size: 14px;
  font-weight: 700;
  color: #1d4ed8;
  background-color: #eff6ff;
  border: 1.5px solid #dbeafe;
  padding: 3px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}

.tag.remark {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Paragraph 2 (Desktop: 14px / Mobile: 12px) */
.info-line {
  font-size: 14px;
  color: var(--text-muted, #475569);
  margin: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.info-line span {
  color: var(--cinnamon-dark, #771d1d);
  min-width: 65px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.address-text {
  white-space: pre-line;
  line-height: 1.55;
  word-break: break-word;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s;
}

.btn-call {
  background-color: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.btn-call:hover {
  background-color: #e0f2fe;
}

.btn-whatsapp {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.btn-whatsapp:hover {
  background-color: #dcfce7;
}

.prompt-box {
  text-align: center;
  padding: 30px 16px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  color: var(--text-muted, #475569);
  font-size: 14px;
}

/* =========================================================
   5. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================= */

@media (max-width: 768px) {
  .content-area {
    padding: 20px 14px 34px;
  }

  /* Heading 2 Mobile: 20px */
  .intro-title {
    font-size: 20px;
  }

  /* Heading 3 / Subtitle Mobile: 16px */
  .card .member-name {
    font-size: 16px;
  }

  /* Paragraph 2 Mobile: 12px */
  .intro-desc,
  .field-label,
  .btn-submit,
  .info-line,
  .results-meta,
  .prompt-box {
    font-size: 12px;
  }

  .tag.village-only {
    font-size: 12px;
    padding: 2px 8px;
  }
}

@media (max-width: 600px) {
  .intro-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Small Text 1 Mobile: 10px */
  .intro-badge,
  .step-item,
  .sabhasad-top-badge,
  .tag.remark {
    font-size: 10px;
  }

  .search-card,
  .card {
    padding: 18px 14px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }
}