@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif !important;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a[role="button"],
.btn-country,
.btn-purpose,
.btn-invite,
.btn-yes,
.btn-no,
.btn-submit,
.cta-button {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
a[role="button"]:focus,
.btn-country:focus,
.btn-purpose:focus,
.btn-invite:focus,
.btn-yes:focus,
.btn-no:focus,
.btn-submit:focus,
.cta-button:focus {
  outline: none;
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
a[role="button"]:focus-visible,
.btn-country:focus-visible,
.btn-purpose:focus-visible,
.btn-invite:focus-visible,
.btn-yes:focus-visible,
.btn-no:focus-visible,
.btn-submit:focus-visible,
.cta-button:focus-visible {
  outline: 2px solid rgba(3, 162, 78, 0.45);
  outline-offset: 2px;
}

body {
  margin: 0;
  background-color: #02813d;
}

:root {
  --fs-12: clamp(11px, 0.45vw + 9px, 12px);
  --fs-14: clamp(12px, 0.55vw + 10px, 14px);
  --fs-16: clamp(14px, 0.65vw + 11px, 16px);
  --fs-18: clamp(15px, 0.8vw + 12px, 18px);
  --fs-24: clamp(19px, 1.35vw + 14px, 24px);
  --fs-32: clamp(24px, 2vw + 16px, 32px);
  --fs-64: clamp(32px, 4.8vw + 14px, 64px);
}

/* Prevent iOS Safari from forcing blue styles on auto-detected links/text. */
a[x-apple-data-detectors],
.x-apple-data-detectors,
.x-apple-data-detectors a,
a[href^="tel"],
a[href^="mailto"] {
  color: inherit !important;
  text-decoration: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

#header.vietkite-header {
  background: #f0fff3;
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1296px;
  padding: 16px 20px;
  margin: 0 auto;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  width: auto;
}

.header-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-label {
  font-size: var(--fs-14);
  color: #212121;
  opacity: 0.5;
  font-weight: 400;
  line-height: 145%;
  letter-spacing: 1%;
}

.progress-value {
  font-size: var(--fs-24);
  color: #03a24e;
  font-weight: bold;
}

.progress-bar {
  height: 10px;
  background: #bee8cf;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #1da745;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.header-score {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  gap: 8px;
  align-items: center;
}

.score-label {
  font-size: var(--fs-14);
  color: #212121;
  opacity: 0.5;
  line-height: 145%;
  letter-spacing: 1%;
  font-weight: 400;
}

.score-value {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  border: 1px solid #03a24e;
  padding: 4px 12px;
  border-radius: 8px;
  background-color: #03a24e0d;
}

.score-number {
  font-size: var(--fs-32);
  color: #03a24e;
  font-weight: 600;
  line-height: 136%;
  letter-spacing: 1%;
}

.score-max {
  font-size: var(--fs-12);
  color: #212121;
  opacity: 0.3;
  line-height: 146%;
  letter-spacing: 1%;
  font-weight: 400;
}

/* Hero Section */
.hero-section {
  padding: 48px 0px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1076px;
  margin: 0 auto;
}
.hero-section-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.hero-section-subtitle {
  font-size: var(--fs-12);
  color: #ffffff;
  font-weight: 400;
  line-height: 146%;
  letter-spacing: 1%;
  background-color: #f37022;
  padding: 4px 16px;
  border-radius: 10px;
}
.hero-section-title h1 {
  font-size: var(--fs-64);
  font-weight: 700;
  line-height: 122%;
  letter-spacing: 2%;
  color: #ffffff;
}
.hero-section-title h1 span {
  color: #92ffb0;
}
.hero-section p {
  font-size: var(--fs-16);
  line-height: 150%;
  letter-spacing: 1%;
  color: #ffffff;
  font-weight: 400;
}

/* Form Section */
.form-section {
  background: linear-gradient(135deg, #d4f1e8 0%, #c8ebe0 100%);
  padding: 32px;
  border-radius: 12px;
  max-width: 856px;
  margin: 0 auto;
}

.form-header {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}
.visa-form {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.visa-form-g24 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-icon {
  background: #03a24e;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-header h2 {
  font-weight: 600;
  font-size: var(--fs-24);
  line-height: 135%;
  letter-spacing: 1%;
  color: #212121;
  margin-bottom: 4px;
}

.form-header p {
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 150%;
  letter-spacing: 1%;
  color: #757575;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-14);
  color: #ff6b35;
  font-weight: 600;
}

.label-icon {
  font-size: 16px;
}

.form-control {
  width: 100%;
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid #f5f5f5;
  padding: 12px 15px;
  border-radius: 12px;

  /* Tùy chỉnh select */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 9L12 15L19 9' stroke='%23212121' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;

  padding-right: 40px;
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 150%;
  letter-spacing: 1%;
}

/* Replace default browser focus ring (often black) with theme focus style */
.form-control:focus,
.form-country:focus,
.bg-input:focus,
.contact-input:focus {
  outline: none;
  border-color: #03a24e;
  box-shadow: 0 0 0 3px rgba(3, 162, 78, 0.15);
}

.form-control.is-active,
.form-country.is-active,
.bg-input.is-active,
.contact-input.is-active {
  border-color: #f37022;
  background: #fff3ea;
  box-shadow: 0 0 0 2px rgba(243, 112, 34, 0.14);
}

.form-control.is-active:focus,
.form-country.is-active:focus,
.bg-input.is-active:focus,
.contact-input.is-active:focus {
  border-color: #f37022;
  box-shadow: 0 0 0 3px rgba(243, 112, 34, 0.2);
}

.form-country {
  width: 100%;
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid #f5f5f5;
  padding: 12px 15px;
  border-radius: 12px;
}

.start {
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 150%;
  letter-spacing: 1%;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-country {
  padding: 12px 16px;
  border: 1px solid #f5f5f5;
  border-radius: 8px;
  background: white;
  font-size: var(--fs-14);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.btn-country .icon {
  width: 32px;
  height: 24px;
  margin: 0;
}

.btn-country:hover {
  border-color: #03a24e;
  background: #f0fff3;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Form Section 2 - Nội Lực */
.form-section-2 {
  background: linear-gradient(135deg, #d4f1e8 0%, #c8ebe0 100%);
  margin-top: 32px;
}

/* Button Grid Large */

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  position: relative;
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #03a24e;
}

.checkbox-item span {
  flex: 1;
  font-size: var(--fs-14);
  color: #333;
}
.checkbox-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.checkbox-icon {
  display: none;
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-icon {
  display: block;
}

/* Yes/No buttons */
.button-group-yes-no {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.btn-yes,
.btn-no {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 1%;
  transition: all 0.3s ease;
  color: #212121;
}

.btn-yes {
  background: #03a24e;
}

.btn-yes:hover {
  background: #fafafa;
  box-shadow: 0 4px 12px rgba(3, 162, 78, 0.25);
}

.btn-no {
  background: #ff6b35;
}

.btn-no:hover {
  background: #fafafa;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.btn-purpose.is-active,
.btn-country.is-active,
.btn-invite.is-active,
.btn-no.is-active,
.btn-yes.is-active {
  border-color: #f37022;
  background: #fff3ea;
  color: #212121;
  box-shadow: 0 4px 12px rgba(243, 112, 34, 0.22);
}

.btn-purpose {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
}

.btn-purpose img {
  width: 24px;
  height: 24px;
}

.btn-purpose:hover {
  border-color: #03a24e;
  background: #f0fff3;
}

.export-country-group.is-hidden {
  display: none;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid #f5f5f5;
  padding: 12px 15px;
  border-radius: 12px;
}
.bg-input {
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid #f5f5f5;
  padding: 12px 15px;
  border-radius: 12px;
}

.radio-item input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.radio-item span {
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 150%;
  letter-spacing: 1%;
  color: #212121;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: #03a24e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: var(--fs-16);
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #028a3f;
}
.form-group label {
  color: #616161;
  font-weight: 400;
  font-size: var(--fs-14);
  line-height: 145%;
  letter-spacing: 1%;
}

/* Form Section 4 - Thông tin liên hệ */
.form-section-4 {
  background: #e9f6ef;
  margin-top: 32px;
}

.contact-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-18);
  color: #555;
  font-weight: 600;
}

.contact-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  color: #4a4a4a;
  background: #ffffff;
  font-family: Inter;
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 150%;
  letter-spacing: 1%;
}

.contact-input::placeholder {
  color: #9ca3af;
}

.contact-input.is-invalid {
  border-color: #f37022;
  box-shadow: 0 0 0 2px rgba(243, 112, 34, 0.15);
}

.contact-input.is-invalid:focus {
  border-color: #f37022;
  box-shadow: 0 0 0 2px rgba(243, 112, 34, 0.18);
}

.input-error {
  display: none;
  color: #d64500;
  font-size: var(--fs-12);
  line-height: 1.4;
}

.form-group.has-error .input-error {
  display: block;
}

/* CTA Section */
.cta-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 856px;
  margin: 24px auto 48px auto;
}

.cta-button {
  width: 100%;
  padding: 12px 20px;
  background: #f37022;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: var(--fs-16);
  line-height: 150%;
  letter-spacing: 2%;
  cursor: pointer;
}

.cta-button:hover {
  background: #e0631d;
}

.cta-subtext {
  color: #ffffff;
  font-weight: 400;
  font-size: var(--fs-12);
  line-height: 146%;
  letter-spacing: 1%;
  text-align: center;
  opacity: 0.7;
  margin: 0;
}

/* Form Section 3 - Giấy mời & Đối tác */
.form-section-3 {
  background: #e9f6ef;
  margin-top: 32px;
}

.invite-question {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invite-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-16);
  color: #3b3b3b;
  font-weight: 600;
}

.invite-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.btn-invite {
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 150%;
  letter-spacing: 1%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-invite svg {
  flex-shrink: 0;
}

/* Desktop down */
@media (max-width: 1199px) {
  .hero-section {
    max-width: 100%;
    padding: 40px 20px;
  }

  .form-section,
  .cta-section {
    width: calc(100% - 40px);
  }
}

@media (max-width: 768px) {
  .header-logo {
    margin: 0 auto;
  }
  .header-container {
    flex-direction: column;
    gap: 0px;
    padding: 14px 16px;
    align-items: stretch;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .header-progress {
    min-width: 0;
  }

  .header-score {
    text-align: center;
    justify-content: center;
  }

  .score-value {
    justify-content: center;
  }

  .hero-section {
    padding: 32px 16px;
    gap: 12px;
  }

  .hero-section-title h1 {
    line-height: 128%;
  }

  .form-section {
    width: calc(100% - 32px);
    padding: 20px 16px;
    border-radius: 10px;
  }

  .form-header {
    margin-bottom: 28px;
    gap: 12px;
  }

  .visa-form {
    gap: 28px;
  }

  .visa-form-g24 {
    gap: 16px;
  }

  .button-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .button-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .button-group-yes-no {
    grid-template-columns: 1fr;
  }

  .invite-group {
    grid-template-columns: 1fr;
  }

  .cta-section {
    width: calc(100% - 32px);
    margin: 20px auto 36px auto;
  }
}

@media (max-width: 576px) {
  .button-group {
    grid-template-columns: 1fr;
  }

  .button-grid {
    grid-template-columns: 1fr;
  }

  .btn-country,
  .btn-purpose,
  .btn-invite,
  .btn-yes,
  .btn-no {
    min-height: 48px;
  }
}

/* Result modal */
.result-modal.is-hidden {
  display: none;
}
.result-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-backdrop {
  position: absolute;
  inset: 0;
  height: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.result-dialog {
  position: relative;
  background: #ffffffe0;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.result-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.result-icon {
  margin: 8px auto 12px;
}
.result-sub {
  font-weight: 400;
  font-size: var(--fs-12);
  line-height: 146%;
  letter-spacing: 1%;
  text-align: center;
  color: #f37022;
}

.result-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: #ffffff;
  border-radius: 12px;
}

.result-title {
  font-weight: 600;
  font-size: var(--fs-32);
  line-height: 136%;
  letter-spacing: 1%;
  text-align: center;
  background-color: #ffffff;
}
.result-desc {
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 150%;
  letter-spacing: 1%;
  text-align: center;
  color: #616161;
  background-color: #ffffff;
}
.result-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.result-label {
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 150%;
  letter-spacing: 1%;
  text-align: center;
}
.result-rate {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.result-rate-number {
  font-weight: 700;
  font-size: var(--fs-64);
  line-height: 122%;
  letter-spacing: 2%;
  text-align: center;
  color: #03a24e;
}
.result-rate-unit {
  font-size: var(--fs-18);
  color: #03a24e;
}
.result-bar {
  height: 8px;
  background: #e5e9ef;
  border-radius: 999px;
  overflow: hidden;
}
.result-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #03a24e 0%, #1dd38a 100%);
  transition: width 0.3s ease;
}
.result-note {
  background: #e8f7ef;
  color: #0a7f46;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 150%;
  letter-spacing: 1%;
  margin-bottom: 14px;
}
.result-ok {
  width: 100%;
  margin-top: 4px;
}
@media (max-width: 480px) {
  .result-dialog {
    width: calc(100% - 24px);
    padding: 22px 16px;
    gap: 20px;
  }
}

/* Footer */
.vietkite-footer {
  padding: 20px 16px;
}

.vietkite-footer-inner {
  max-width: 1296px;
  margin: 0 auto;
}

.vietkite-footer-text {
  text-align: center;
  color: #ffffff;
  opacity: 0.5;
  font-family: Inter;
  font-weight: 400;
  font-size: 12px;
  line-height: 146%;
  letter-spacing: 1%;
  margin: 0;
}

.vietkite-footer-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;
}

.vietkite-footer-link:hover {
  opacity: 0.9;
}
