@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;700&display=swap');

:root{
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6c757d;
  --border: #e5e7eb;
  --card: #f8f9fa;
}

/*html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: "TH Sarabun New", "Sarabun", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Noto Sans", sans-serif;
  font-size: 1.5rem;
  line-height: 1.6;
}*/

/* Global font family */
body, p, label, select, input, button {
  font-family: "Sarabun", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Noto Sans", sans-serif;
  font-size: clamp(14px, 1.8vw, 18px);
}

/* Heading styles */
h1 {
  font-family: "Sarabun", sans-serif;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: bold;
  text-align: center;
}

h2 {
  font-family: "Sarabun", sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: normal;
  text-align: center;
}

/* Navigation buttons container */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0;
}

.nav-buttons .btn {
  margin: 5px;
  width: calc(50% - 10px);
}

@media (min-width: 768px) {
  .nav-buttons .btn {
    width: auto;
    margin: 0 5px;
  }
}

/* Form styles */
.form-section {
  max-width: 600px;
  margin: auto;
}

.form-section input, .form-section select, .form-section button {
  font-size: clamp(14px, 1.8vw, 18px);
}

/* Adjustments for small devices */
@media (max-width: 480px) {
  h1 {
    font-size: 20px;
  }
  h2 {
    font-size: 16px;
  }
  .nav-buttons .btn {
    width: 100%;
  }
}

.header-title{
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.subtle{
  color: var(--muted);
}

.card{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
}

/*.btn-link-custom {
    margin-left: 5px;
    font-size: 0.95rem;
    font-family: "TH Sarabun New", "Sarabun", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Noto Sans", sans-serif;
}*/

.btn-dark{
  border-radius: 999px;
  padding: 10px 20px;
}

.form-label{
  font-weight: 600;
}

.signature-list{
  margin-top: 24px;
}

.signature-item{
  border-bottom: 1px dashed var(--border);
  padding: 12px 0;
}

.signature-item:last-child{
  border-bottom: none;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
}


.portrait-wrap{
  position: sticky;
  top: 16px;
}

.portrait{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
  filter: grayscale(100%); /* โทนขาว-ดำ */
}

.footer-note{
  font-size: 0.95rem;
  color: var(--muted);
}

.footer {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-top: 20px;
}

}
