:root {
  --navy-900: #102a54;
  --navy-800: #183765;
  --navy-700: #284a7d;
  --navy-200: #d8e3f2;
  --navy-100: #edf3fb;
  --white: #ffffff;
  --text-main: #10203a;
  --text-soft: #5c6c84;
  --line: #d3ddec;
  --shadow: 0 22px 60px rgba(16, 42, 84, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans Thai", sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(216, 227, 242, 0.9), transparent 26%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 46%, #f3f7fc 100%);
}

.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero-card,
.form-card,
.support-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(211, 221, 236, 0.85);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--navy-700);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.hero-text {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.language-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--navy-200);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16, 42, 84, 0.07), rgba(255, 255, 255, 0.95));
  color: var(--navy-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.language-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--navy-700);
  box-shadow: 0 12px 28px rgba(16, 42, 84, 0.12);
}

.language-toggle__label {
  font-size: 0.95rem;
}

.language-toggle__options {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(16, 42, 84, 0.08);
}

.language-toggle__option {
  min-width: 42px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--navy-700);
  font-size: 0.9rem;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.language-toggle__option.is-active {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--white);
  box-shadow: 0 8px 18px rgba(16, 42, 84, 0.18);
}

.form-card {
  padding: 32px;
}

.support-card {
  margin-top: 24px;
  padding: 32px;
}

.support-eyebrow {
  margin: 0 0 8px;
  color: var(--navy-700);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.support-text {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.support-panel {
  padding: 22px;
  border: 1px solid var(--navy-200);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(237, 243, 251, 0.7), rgba(255, 255, 255, 0.96));
}

.support-panel h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.support-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.support-panel__media {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 2px dashed #9ab0cf;
  border-radius: 22px;
  padding: 20px;
  color: var(--navy-700);
  text-align: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.8);
}

.support-hotline-placeholder {
  font-size: 1.3rem;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.35fr);
  gap: 18px 24px;
  align-items: center;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
}

.textarea-label {
  align-self: start;
  padding-top: 18px;
}

.field-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon-wrap {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 12px 24px rgba(16, 42, 84, 0.18);
}

.field-icon {
  font-size: 1.35rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--text-main);
  font: inherit;
  font-size: 1rem;
  padding: 16px 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

input {
  min-height: 64px;
}

select {
  min-height: 64px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy-700) 50%),
    linear-gradient(135deg, var(--navy-700) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 18px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 48px;
}

textarea {
  min-height: 190px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 5px rgba(40, 74, 125, 0.12);
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
  color: #97a5ba;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid,
.upload-box.is-invalid {
  border-color: #d64545;
  box-shadow: 0 0 0 5px rgba(214, 69, 69, 0.12);
}

.field-error {
  min-height: 20px;
  margin: 0;
  color: #d64545;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.upload-box {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border: 2px dashed #9ab0cf;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(237, 243, 251, 0.7), rgba(255, 255, 255, 0.95)),
    var(--white);
  color: var(--navy-900);
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.upload-box:focus-visible {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 5px rgba(40, 74, 125, 0.12);
}

.upload-box:hover,
.upload-box.is-active {
  border-color: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16, 42, 84, 0.12);
}

.upload-box input {
  display: none;
}

.upload-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--navy-200);
  font-size: 2rem;
  box-shadow: 0 12px 24px rgba(16, 42, 84, 0.08);
}

.upload-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.upload-subtitle {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--navy-100);
  color: var(--navy-900);
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(16, 42, 84, 0.22);
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 920px);
    padding: 20px 0 36px;
  }

  .hero-card,
  .form-card,
  .support-card {
    border-radius: 22px;
  }

  .hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .form-card {
    padding: 20px;
  }

  .support-card {
    padding: 20px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .field-label {
    gap: 12px;
    font-size: 1.15rem;
  }

  .textarea-label {
    padding-top: 0;
  }

  input {
    min-height: 56px;
  }

  textarea,
  .upload-box {
    min-height: 160px;
  }

  .actions {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 16px);
    padding: 12px 0 24px;
  }

  .hero-card {
    gap: 14px;
    padding: 20px 18px;
    margin-bottom: 16px;
  }

  .hero-copy h1 {
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .hero-text {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .language-toggle {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .form-card {
    padding: 16px 14px;
  }

  .support-card {
    margin-top: 16px;
    padding: 18px 14px;
  }

  .field-grid {
    gap: 8px;
  }

  .field-label {
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .field-icon {
    font-size: 1.1rem;
  }

  input,
  select,
  textarea {
    border-radius: 16px;
    font-size: 16px;
    padding: 14px 16px;
  }

  input {
    min-height: 52px;
  }

  select {
    min-height: 52px;
    background-position:
      calc(100% - 20px) calc(50% - 3px),
      calc(100% - 14px) calc(50% - 3px);
    padding-right: 42px;
  }

  textarea {
    min-height: 140px;
  }

  .upload-box {
    min-height: 140px;
    border-radius: 20px;
    padding: 18px 14px;
  }

  .upload-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  .upload-title {
    font-size: 1rem;
  }

  .upload-subtitle {
    font-size: 0.88rem;
  }

  .actions {
    gap: 10px;
    margin-top: 20px;
  }

  .btn {
    padding: 13px 18px;
    font-size: 0.98rem;
  }

  .field-error {
    min-height: 18px;
    font-size: 0.86rem;
  }

  .field-hint {
    font-size: 0.84rem;
  }

  .support-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .support-panel__media {
    min-height: 140px;
    margin-bottom: 14px;
    border-radius: 18px;
    font-size: 0.95rem;
  }
}
