/* ============================================================
   property-check.css
   Shared styles for PropertyVerification.jsp / PropertySelection.jsp /
   PropertyDetails.jsp. Include AFTER css/responsive.css so these
   overrides win.
   ============================================================ */

:root {
  --sebi: #08317C;
  --sebi-light: rgba(8,49,124,0.08);
  --sebi-mid: rgba(8,49,124,0.18);
  --red: #E53935;
  --green: #2e7d32;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(8,49,124,0.10);
}

#main-content.pc-main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 40px 16px 60px !important;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.sebi-check-card2 {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  //max-width: 640px;
  padding: 32px 28px 28px;
  margin: 0 auto;
  font-family: 'Sora', sans-serif;
}

.sebi-check-card3 {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 30%;
  //max-width: 640px;
  padding: 32px 28px 28px;
  margin: 0 auto;
  font-family: 'Sora', sans-serif;
}
.sebi-check-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 640px;
  padding: 32px 28px 28px;
  margin: 0 auto;
  font-family: 'Sora', sans-serif;
}

.card-logo { display: block; margin: 0 auto 10px; height: 58px; }

.badge-check {
  text-align: center; font-size: 30px; font-weight: 900;
  color: var(--sebi); letter-spacing: 3px; line-height: 1; margin: 0;
}
.badge-sub {
  text-align: center; font-size: 1.8rem; font-weight: 600;
  color: var(--sebi); margin-top: 4px; margin-bottom: 5px;
}

.badge-sub2 {
  text-align: center; font-size: 1.2rem; font-weight: 600;
  color: var(--sebi); margin-top: 4px; margin-bottom: 28px;
}

.field-label {
  font-size: 13px; font-weight: 600; color: var(--sebi);
  margin-bottom: 7px; display: flex; gap: 3px; align-items: center;
}
.field-label .req { color: var(--red); font-weight: 700; }
.field-label .req-tag { color: var(--red); }

.field-group { margin-bottom: 20px; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field-group { flex: 1 1 220px; }

.sebi-check-card input[type="text"],
.sebi-check-card select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d0d8e8;
  border-radius: var(--radius); background: #f7f9fc;
  font-family: 'DM Mono', monospace; font-size: 15px; font-weight: 500;
  color: #111; outline: none; transition: border 0.2s, box-shadow 0.2s;
  letter-spacing: 0.04em; box-sizing: border-box;
}
.sebi-check-card select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%2308317C' stroke-width='2' fill='none' fill-rule='evenodd' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.sebi-check-card select:disabled { cursor: not-allowed; opacity: 0.6; }
.sebi-check-card input:focus, .sebi-check-card select:focus {
  border-color: var(--sebi); box-shadow: 0 0 0 3px var(--sebi-light); background-color: #fff;
}
.sebi-check-card input.error, .sebi-check-card select.error {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,57,53,0.09);
}
.error-msg { color: var(--red); font-size: 12px; margin-top: 5px; font-weight: 500; display: none; }
.error-msg.show { display: block; }

#captcha-section {
  margin-bottom: 20px; padding: 18px; border: 1.5px dashed var(--sebi-mid);
  border-radius: var(--radius); background: var(--sebi-light);
}
.captcha-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.captcha-img-wrap { position: relative; display: inline-flex; }
#captcha-img { width: 206px; height: 64px; border-radius: 6px; border: 1.5px solid #c0cde0; background: #fff; display:block; }
.captcha-img-overlay {
  position: absolute; inset: 0; background: rgba(255,255,255,0.65); border-radius: 6px;
  display: none; align-items: center; justify-content: center;
}
.captcha-img-overlay.show { display: flex; }
.captcha-btns { display: flex; gap: 6px; }
.icon-btn {
  background: #fff; border: 1.5px solid #d0d8e8; border-radius: 8px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--sebi);
  font-size: 16px; transition: background 0.15s, border 0.15s;
}
.icon-btn:hover { background: #f0f4ff; border-color: var(--sebi); }
.icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.refresh-icon { display: inline-block; transition: transform 0.5s cubic-bezier(.4,2,.55,.8); }
.refresh-icon.spin { transform: rotate(360deg); }
.mini-spin {
  width: 22px; height: 22px; border: 2.5px solid rgba(8,49,124,0.2); border-top-color: var(--sebi);
  border-radius: 50%; animation: pc-spin 0.7s linear infinite;
}

.submit-btn {
  width: 100%; background: var(--sebi); color: #fff; border: none; border-radius: var(--radius);
  padding: 14px; font-size: 15px; font-weight: 800; cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 10px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 2px 10px rgba(8,49,124,0.2); letter-spacing: 0.01em; margin-top: 6px;
}
.submit-btn:hover:not(:disabled) { background: #0a3f9e; box-shadow: 0 4px 18px rgba(8,49,124,0.28); transform: translateY(-1px); }
.submit-btn:active:not(:disabled) { transform: translateY(0); }
.submit-btn:disabled { background: rgba(8,49,124,0.35); box-shadow: none; cursor: not-allowed; transform: none; }

.spin-loader {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: pc-spin 0.7s linear infinite;
}
@keyframes pc-spin { to { transform: rotate(360deg); } }

.info-box {
  background: #eef3ff; 
  border-radius: 10px; 
  padding: 14px 16px; 
  text-align: center;
  font-size: 13px; 
  color: #444;
  margin: 10px 0; /* Adds spacing above and below the box */
}

.result-banner {
  border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: 13.5px; font-weight: 600;
}
.result-banner.error { background: #fdeaea; color: #c62828; border: 1.5px solid #f3c1c1;  margin: 10px 0;}
.result-banner.info  { background: #eef3ff; color: var(--sebi); border: 1.5px solid var(--sebi-mid); }

.emp-header { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.info-row {
  text-align: left; border: 1.5px solid #81c784; border-radius: 10px; padding: 11px 14px;
  margin-bottom: 0; background: #e6f4ea;
}
.info-row.span-2 { grid-column: 1 / -1; }
.info-row .lbl { font-size: 11.5px; color: #558b2f; font-weight: 600; display: block; margin-bottom: 2px; }
.info-row .val { font-size: 14px; font-weight: 700; color: #2e7d32; font-family: 'DM Mono', monospace; word-break: break-all; display: block; }

.result-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; text-align: center; color: var(--sebi); }

.employee-list { display: flex; flex-direction: column; gap: 10px; }
.employee-item {
  display: flex; align-items: center; justify-content: space-between; text-align: left; width: 100%;
  border: 1.5px solid #c7d3ea; border-radius: var(--radius); background: #fff; padding: 13px 16px;
  cursor: pointer; transition: border 0.15s, background 0.15s;
}
.employee-item:hover { border-color: var(--sebi); background: #f4f7ff; }
.employee-item .emp-name { font-size: 14.5px; font-weight: 700; color: var(--sebi); display: block; }
.employee-item .emp-desig { font-size: 12.5px; color: #667; margin-top: 2px; display: block; }
.employee-item .emp-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.employee-item .emp-status.available { background: #e6f4ea; color: #2e7d32; }
.employee-item .emp-status.unavailable { background: #fdeaea; color: #c62828; }
.employee-item i.fa-chevron-right { color: #99a; margin-left: 10px; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  color: var(--sebi); font-size: 13px; font-weight: 700; cursor: pointer; padding: 0 0 16px; margin: -6px 0 4px;
}
.back-link:hover { text-decoration: underline; }

.property-block { border: 1.5px solid #d7deec; border-radius: 14px; padding: 16px 16px 6px; margin-bottom: 14px; background: #fbfcff; }
.property-block-title { font-size: 13.5px; font-weight: 800; color: var(--sebi); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.property-block-title .num-badge {
  background: var(--sebi); color: #fff; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800;
}
.property-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.property-field { margin-bottom: 10px; }
.property-field.span-2 { grid-column: 1 / -1; }
.property-field .lbl { font-size: 11px; color: #667; font-weight: 600; display: block; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
.property-field .val { font-size: 13.5px; font-weight: 600; color: #1a1a2e; word-break: break-word; }

.no-disclosure-note { text-align: center; font-size: 13px; color: #ff0000; padding: 6px 0 4px; font-style: italic; }

/* ── Annexure-1 style property table (PropertyDetails.jsp) ── */
.annexure-title { color: #5b90d9; font-size: 20px; font-weight: 700; margin: 4px 0 22px; }

/* Separate, bordered info box for Employee Name / Designation / As On —
   kept visually distinct from the property table below it. */
.annexure-meta {
  display: flex; flex-wrap: wrap; gap: 12px 36px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1.5px solid var(--sebi-mid);
  border-radius: var(--radius);
  background: var(--sebi-light);
}
.annexure-meta .meta-item { display: flex; align-items: baseline; gap: 6px; flex: 1 1 190px; }
.annexure-meta .lbl { font-weight: 800; color: #2e4a86; font-size: 14px; white-space: nowrap; }
.annexure-meta .val { font-weight: 600; color: #1a1a2e; font-size: 14px; word-break: break-word; }

.annexure-table-wrap { overflow-x: auto; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
table.annexure-table {
  border-collapse: collapse !important;
  width: 100%;
  min-width: 1100px;
  table-layout: fixed;
  font-size: 12.5px;
}
table.annexure-table th, table.annexure-table td {
  border: 1px solid rgba(26,26,46,0.25) !important;
  padding: 10px 10px !important;
  text-align: left; vertical-align: top;
  word-wrap: break-word; overflow-wrap: break-word; white-space: normal;
}
table.annexure-table thead th { background: #5b7fc4; color: #fff; font-weight: 700; line-height: 1.3; }
table.annexure-table tbody td { background: #dde8fb; color: #1a1a2e; }
table.annexure-table tbody tr:nth-child(even) td { background: #eaf1fc; }
table.annexure-table td.sl-no { text-align: center; white-space: nowrap; }

@media (max-width: 560px) {
  .sebi-check-card { padding: 24px 14px 20px; }
  #main-content.pc-main { padding: 24px 10px 40px !important; }
  .emp-header, .property-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .annexure-meta { flex-direction: column; gap: 8px; }
}
