@charset "UTF-8";
:root {
  --orange: #f3a004;
  --orange-dark: #ed8900;
  --teal: #05a7b6;
  --teal-dark: #008e9d;
  --text: #151515;
  --muted: #676767;
  --line: #e6e6e6;
  --soft: #f7f7f7;
  --red: #f04b45;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", "Noto Sans", Arial, Tahoma, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background: #ececec;
}
.page-shell {
  max-width: 1535px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  overflow: hidden;
}
.hero {
  height: 304px;
  background: url("assets/hero.jpg") center top / cover no-repeat;
}
.form-zone {
  background: linear-gradient(#f4f4f4, #fafafa 62%, #f2f2f2);
  padding: 16px 34px 10px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card {
  min-height: 426px;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 10px rgba(0,0,0,.025);
}
.card-head {
  display: flex;
  align-items: center;
  min-height: 98px;
  gap: 18px;
  padding: 14px 24px 8px;
  border-bottom: 1px solid #efefef;
}
.upload-card .card-head { gap: 27px; padding-left: 27px; }
.circle-icon {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 22%, #11bac5, var(--teal-dark));
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.08), 0 2px 5px rgba(0,0,0,.08);
}
.circle-icon svg {
  width: 36px;
  height: 34px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: .2px;
  font-weight: 800;
}
.card-head p {
  margin: 8px 0 0;
  color: #111;
  font-size: 13.5px;
}
.shareholder-form { padding: 9px 18px 14px 28px; }
.form-row {
  display: grid;
  align-items: center;
  min-height: 54px;
  gap: 12px;
  border-bottom: 1px solid #f2f2f2;
}
.form-row.full { grid-template-columns: 44px 110px 1fr; }
.form-row.two-col { grid-template-columns: 44px 108px minmax(0, 1fr) 118px 152px; }
.form-row.contact-row {
  grid-template-columns: 44px 108px minmax(0, 1fr) 118px 152px;
  min-height: 54px;
  gap: 12px;
  padding: 0;
}
.form-row.contact-row .line-icon { align-self: center; padding-top: 0; }
.form-row.contact-row label[for="phone"] {
  white-space: nowrap;
  line-height: 1.12;
  font-size: 14px;
}
.form-row.contact-row .zalo-label { justify-content: flex-start; gap: 10px; white-space: nowrap; }
.form-row.contact-row .zalo-label svg { width: 26px; height: 26px; flex: 0 0 26px; }

.form-row.person-row label[for="ho-ten"] { white-space: nowrap; }
.form-row.person-row .mini-label { justify-content: flex-start; gap: 10px; white-space: nowrap; }
.form-row.person-row .mini-label svg { width: 26px; height: 26px; flex: 0 0 26px; }
.form-row.person-row input#ngay-sinh::placeholder,
.form-row.two-col input#ngay-cap::placeholder { font-size: 13.5px; }
.form-row.address-row { align-items: start; padding-top: 9px; min-height: 74px; border-bottom: none; }
.form-row label {
  font-size: 14px;
  font-weight: 500;
  color: #161616;
}
.form-row input, .form-row textarea {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: #333;
  font-family: inherit;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.02);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #8f8f8f; opacity: 1; }
.form-row input[type="tel"]::placeholder, #ngay-cap::placeholder { font-size: 14px; }
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,167,182,.12);
}
.form-row textarea {
  height: 72px;
  padding: 11px 14px;
  resize: vertical;
}
.line-icon {
  width: 28px;
  height: 28px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.line-icon svg, .mini-label svg, .doc-icon svg {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line-icon svg { width: 27px; height: 27px; }
.mini-label {
  display: flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}
.mini-label svg { width: 26px; height: 26px; flex: 0 0 26px; }
.upload-list { padding: 8px 20px 0 18px; }
.upload-item {
  display: grid;
  grid-template-columns: 38px minmax(255px, 1fr) 96px 88px;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #f1f1f1;
}
.upload-item strong {
  font-size: 14px;
  font-weight: 700;
}
.upload-item em {
  justify-self: start;
  padding: 5px 9px;
  border: 1px solid #f4dad9;
  border-radius: 6px;
  background: #fff;
  color: var(--red);
  font-style: normal;
  font-size: 13.5px;
  font-weight: 600;
}
.upload-item em.optional {
  border-color: #d5eeee;
  background: #f6ffff;
  color: var(--teal-dark);
}

.status-spacer {
  display: block;
  width: 96px;
  height: 1px;
}
.doc-icon { display: flex; justify-content: center; }
.doc-icon svg { width: 30px; height: 30px; }
.file-button {
  width: 88px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.file-button input { display: none; }
.file-button:hover { border-color: #bbb; background: #fafafa; }
.confirm-card {
  display: grid;
  grid-template-columns: 390px 1fr 430px;
  align-items: center;
  min-height: 98px;
  margin-top: 8px;
  padding: 0 24px 0 22px;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  background: rgba(255,255,255,.96);
}
.confirm-title {
  display: flex;
  align-items: center;
  gap: 18px;
}
.confirm-title h2 { font-size: 23px; }
.circle-icon.shield svg { width: 39px; height: 39px; }
.confirm-checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 3px;
}
.confirm-checks label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: #222;
}
.confirm-checks input {
  appearance: none;
  width: 19px;
  height: 19px;
  border: 1px solid #a8a8a8;
  border-radius: 3px;
  background: #fff;
}
.confirm-checks input:checked {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: inset 0 0 0 3px #fff;
}
.action-area {
  display: grid;
  grid-template-columns: 194px 196px;
  column-gap: 28px;
  align-items: center;
  justify-content: end;
}
.action-area button {
  height: 48px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  font-family: Tahoma, Arial, "Segoe UI", "Noto Sans", Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.preview-btn {
  border: 1px solid #dedede;
  color: #1d1d1d;
  background: #fff;
}
.preview-btn .btn-icon {
  display: inline-block;
  transform: scale(1.35);
  margin-right: 9px;
  color: #0a0a0a;
}
.send-btn {
  border: 1px solid var(--orange);
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: 0 2px 5px rgba(236,140,0,.25);
}
.send-btn .btn-icon { display: inline-block; margin-right: 10px; font-size: 21px; }
.preview-btn .btn-text, .send-btn .btn-text {
  font-family: Tahoma, Arial, "Segoe UI", "Noto Sans", Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: .1px;
  line-height: 1;
  unicode-bidi: plaintext;
}
.action-area p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  text-align: center;
  color: #333;
  font-size: 13.5px;
}
.action-area p span { color: var(--orange); margin-right: 8px; }
.footer-image {
  height: 152px;
  background: url("assets/footer.jpg") center top / cover no-repeat;
}

.card.info-card { overflow: hidden; }
.card.upload-card { overflow: hidden; }
.upload-card .card-head { padding-left: 22px; }
.card-head h2 { white-space: nowrap; }
.form-row.full > input,
.form-row.two-col > input,
.form-row.two-col > textarea { max-width: 100%; }
#ho-ten { min-width: 0; }
#ngay-sinh, #ngay-cap { text-align: left; }
#phone, #zalo { max-width: 100%; }
.upload-item:last-child { border-bottom: none; }
.upload-item strong { line-height: 1.22; }
.upload-item .file-button { margin-left: auto; }
.confirm-checks { align-self: center; }
.action-area { padding-top: 4px; }
.preview-btn, .send-btn { white-space: nowrap; }
.preview-btn { box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.footer-image { border-top: 1px solid #ececec; }
.preview-dialog {
  width: min(620px, calc(100vw - 30px));
  border: 0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 22px 80px rgba(0,0,0,.25);
  font-family: "Segoe UI", "Noto Sans", Arial, Tahoma, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.preview-dialog::backdrop { background: rgba(0,0,0,.35); }
.preview-dialog h3 { margin: 0 0 14px; font-size: 22px; }
.preview-dialog dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.preview-dialog, .preview-dialog h3, .preview-dialog dt, .preview-dialog dd, .preview-dialog button { font-family: "Segoe UI", "Noto Sans", Arial, Tahoma, Helvetica, sans-serif; }
.preview-dialog dd { overflow-wrap: anywhere; }
.preview-dialog dt { font-weight: 700; }
.preview-dialog dd { margin: 0; color: #333; }
.preview-dialog button { margin-top: 20px; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font-weight: 700; cursor: pointer; }
@media (max-width: 1180px) {
  .form-zone { padding-left: 18px; padding-right: 18px; }
  .content-grid { grid-template-columns: 1fr; }
  .confirm-card { grid-template-columns: 1fr; gap: 16px; padding: 18px 24px; }
  .action-area { justify-content: start; }
}
@media (max-width: 980px) and (min-width: 761px) {
  .form-row.contact-row {
    grid-template-columns: 44px 115px minmax(0, 1fr) 105px 139px;
    gap: 8px;
  }
  .form-row.contact-row label[for="phone"] { font-size: 13px; }
  .form-row.contact-row input[type="tel"]::placeholder { font-size: 13px; }
}
@media (max-width: 760px) {
  .hero { height: 155px; }
  .form-zone { padding: 10px; }
  .card-head, .confirm-title { gap: 15px; padding-left: 15px; }
  .circle-icon { width: 54px; height: 54px; flex-basis: 54px; }
  .circle-icon svg { width: 31px; height: 31px; }
  h2, .confirm-title h2 { font-size: 19px; }
  .shareholder-form { padding: 8px 12px; }
  .form-row.full, .form-row.two-col, .form-row.contact-row { grid-template-columns: 34px 1fr; gap: 8px; padding: 9px 0; }
  .form-row.contact-row { grid-template-areas: none; min-height: auto; }
  .form-row.contact-row .line-icon, .form-row.contact-row label, .form-row.contact-row input { grid-area: auto; padding-top: 0; }
  .form-row.full input, .form-row.full textarea, .form-row.two-col input, .form-row.contact-row input { grid-column: 2; }
  .mini-label { grid-column: 2; }
  .upload-list { padding: 8px 12px; }
  .upload-item { grid-template-columns: 34px 1fr; gap: 8px; padding: 10px 0; }
  .upload-item em, .file-button { grid-column: 2; justify-self: start; }
  .status-spacer { display: none; }
  .action-area { grid-template-columns: 1fr; gap: 10px; }
  .action-area button { width: 100%; }
  .footer-image { height: 90px; }
}

/* Trường bẫy bot chống spam: người dùng thật không thấy và không cần nhập. */
.spam-field-wrap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}


/* Tinh chỉnh sát mockup v3 */
.page-shell {
  border-radius: 0;
}
.hero {
  background-position: center top;
}
.form-zone {
  padding-top: 18px;
}
.content-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.95fr);
  align-items: start;
}
.info-card {
  min-height: 458px;
}
.upload-card {
  min-height: 458px;
}
.card-head {
  border-bottom-color: #f0f0f0;
}
.card-head h2 {
  letter-spacing: 0;
}
.card-head p {
  font-size: 13.5px;
  color: #1c1c1c;
}
.shareholder-form {
  padding-top: 10px;
}
.form-row.full {
  grid-template-columns: 42px 118px 1fr;
}
.form-row.two-col,
.form-row.contact-row {
  grid-template-columns: 42px 118px minmax(0, 1fr) 112px 146px;
}
.form-row {
  min-height: 56px;
}
.form-row label {
  font-size: 14px;
}
.form-row input,
.form-row textarea {
  height: 38px;
  font-size: 14px;
  border-color: #ebebeb;
  background: #fff;
}
.form-row textarea {
  height: 74px;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #a0a0a0;
}
.form-row.contact-row label[for="phone"],
.form-row.contact-row .zalo-label,
.form-row.person-row .mini-label,
.mini-label {
  font-size: 14px;
}
.line-icon svg,
.mini-label svg,
.doc-icon svg {
  stroke-width: 1.95;
}
.upload-list {
  padding-top: 10px;
  padding-right: 22px;
}
.upload-item {
  grid-template-columns: 34px minmax(245px, 1fr) 88px 88px;
  min-height: 54px;
}
.upload-item strong {
  font-size: 13.8px;
  font-weight: 500;
  color: #222;
}
.upload-item em {
  padding: 5px 8px;
  font-size: 12.5px;
  font-weight: 600;
  border-color: #f1d8d8;
  border-radius: 5px;
}
.status-spacer {
  width: 88px;
}
.file-button {
  width: 88px;
  height: 32px;
  font-size: 13.5px;
  border-color: #d8d8d8;
  border-radius: 6px;
}
.confirm-card {
  grid-template-columns: 380px 1fr 430px;
  min-height: 100px;
  margin-top: 10px;
  background: rgba(255,255,255,.98);
}
.confirm-title {
  gap: 20px;
}
.confirm-title h2 {
  font-size: 20px;
}
.confirm-checks label {
  font-size: 13.5px;
}
.action-area {
  grid-template-columns: 192px 228px;
  column-gap: 28px;
}
.action-area button {
  height: 50px;
  font-size: 15px;
}
.preview-btn {
  background: #fff;
  border-color: #dfdfdf;
}
.preview-btn .btn-icon,
.send-btn .btn-icon {
  transform: none;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.preview-btn .btn-icon svg,
.send-btn .btn-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}
.preview-btn .btn-icon svg {
  stroke: #111;
}
.send-btn .btn-icon svg {
  stroke: #fff;
  fill: rgba(255,255,255,.18);
}
.action-area p {
  font-size: 13px;
}
.preview-dialog h3 {
  font-size: 20px;
}
@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .confirm-card {
    grid-template-columns: 1fr;
  }
}
