/* Trang tài liệu miễn phí về Giao việc. Ưu tiên điện thoại (YC-1). */

:root {
  --navy: #1A2B4A;
  --navy-dam: #111D33;
  --nen: #F5F6F9;
  --the: #FFFFFF;
  --chu: #1F2633;
  --chu-phu: #55607A;
  --vien: #C9CFDB;
  --loi: #B42318;
  --bo-goc: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--nen);
  color: var(--chu);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.khung {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Đầu trang */
.dau-trang {
  background: var(--navy);
  color: #fff;
  padding: 40px 0 36px;
}
h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}
.mo-ta {
  margin: 14px 0 24px;
  font-size: 18px;
  line-height: 1.55;
  color: #DCE2EE;
}
/* Nút ở đầu trang: nền trắng để nổi trên nền navy */
.nut.nut-dau {
  background: #fff;
  color: var(--navy);
}
.nut.nut-dau:hover { background: #E8ECF4; }

/* Các phần nội dung */
main.khung { padding-top: 8px; padding-bottom: 40px; }
.phan { margin-top: 32px; }
h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--navy);
}
.phan p { margin: 0; }

.danh-sach-loi-ich {
  list-style: none;
  margin: 0;
  padding: 0;
}
.danh-sach-loi-ich li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
}
.danh-sach-loi-ich li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.danh-sach-tai-lieu {
  margin: 0;
  padding-left: 22px;
}
.danh-sach-tai-lieu li { margin-bottom: 8px; padding-left: 4px; }
.danh-sach-tai-lieu li::marker { color: var(--navy); }

/* Biểu mẫu */
.the-bieu-mau {
  scroll-margin-top: 16px;
  background: var(--the);
  border-radius: var(--bo-goc);
  padding: 24px 16px;
  box-shadow: 0 1px 3px rgba(26, 43, 74, 0.12);
  border-top: 5px solid var(--navy);
}
.gioi-thieu-bieu-mau { color: var(--chu-phu); margin-bottom: 20px !important; }

.o { margin-bottom: 18px; }
.o > label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.bat-buoc { color: var(--loi); }

input[type="text"],
input[type="email"],
select,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 17px; /* từ 16px trở lên để iPhone không tự phóng to khi bấm vào ô */
  color: var(--chu);
  background: #fff;
  border: 1.5px solid var(--vien);
  border-radius: 8px;
  padding: 12px;
  min-height: 50px;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A2B4A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
textarea { resize: vertical; line-height: 1.5; }

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(26, 43, 74, 0.25);
  border-color: var(--navy);
}
.o.co-loi input, .o.co-loi select { border-color: var(--loi); }

.goi-y, .dem-ky-tu {
  margin: 6px 0 0 !important;
  font-size: 16px;
  color: var(--chu-phu);
}
.dem-ky-tu { text-align: right; }

.loi {
  margin: 6px 0 0 !important;
  font-size: 16px;
  color: var(--loi);
  font-weight: 600;
}
.loi-chung {
  background: #FEF3F2;
  border: 1px solid #FDA29B;
  color: var(--loi);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 18px !important;
  font-weight: 600;
}

.o-danh-dau {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.o-danh-dau input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}
.o-danh-dau label { font-weight: 400; margin: 0; }

/* Bẫy thư rác: đưa ra khỏi màn hình, không dùng display:none để máy tự động vẫn thấy */
.bay {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nut {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.nut:hover { background: var(--navy-dam); }
.nut:disabled { opacity: 0.6; cursor: default; }

.rieng-tu {
  margin: 12px 0 0 !important;
  font-size: 16px;
  line-height: 1.5;
  color: var(--chu-phu);
}
.rieng-tu a { color: var(--navy); }

/* Sau khi gửi */
.cam-on:focus { outline: none; }
.cam-on p { margin-bottom: 20px !important; }
.huong-dan-tai {
  margin: 12px 0 0 !important;
  font-size: 16px;
  line-height: 1.5;
  color: var(--chu-phu);
}

[hidden] { display: none !important; }


/* Máy tính */
@media (min-width: 720px) {
  .dau-trang { padding: 64px 0 56px; }
  h1 { font-size: 40px; }
  .nut.nut-dau { display: inline-block; width: auto; padding-left: 32px; padding-right: 32px; }
  .the-bieu-mau { padding: 32px; }
}
