/* ================= FORM PAGE ================= */

body {
  font-family: "Kanit", sans-serif;
  background: #000;
  color: #fff;
}

/* Wrapper */
.form-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Card */
.form-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(#111, #0a0a0a);
  border-radius: 26px;
  padding: 28px 22px 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

/* Title */
.form-card h1 {
  text-align: center;
  color: #ffc72d;
  font-size: 22px;
  font-weight: 600;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  margin: 6px 0 26px;
  color: #ddd;
}

/* Form groups */
.form-group {
  margin-bottom: 18px;
}

.group-label,
.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Row */
.form-row {
  display: flex;
  gap: 12px;
}

/* Inputs */
input[type="text"],
input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: #2b2b2b;
  border: none;
  outline: none;
  font-size: 15px;
  color: #ffc72d;
  caret-color: #ffc72d;
}

input::placeholder {
  color: #9a9a9a;
}

/* ================= RADIO ================= */

.radio-group {
  display: flex;
  gap: 22px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
}

.radio-group input {
  display: none;
}

.radio-group span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #777;
  position: relative;
}

.radio-group input:checked + span {
  border-color: #ffc72d;
}

.radio-group input:checked + span::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #ffc72d;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ================= Province ================= */

.form-group.full {
  width: 100%;
}

/* ================= Province (match DOB theme) ================= */

#province {
  width: 100%;
  height: 48px;
  background: #2b2b2b;
  color: #ffc72d;
  border: 1px solid rgba(255,199,45,0.6);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#province option {
  color: #000;
}

#province:focus {
  box-shadow: 0 0 0 2px rgba(255,199,45,0.4);
}

/* ================= PLACEHOLDER COLOR ================= */

input::placeholder {
  color: #ffc72d;
  opacity: 0.6; /* readable but not same as typed text */
}

/* iOS / older WebKit safety */
input::-webkit-input-placeholder {
  color: #ffc72d;
  opacity: 0.6;
}

/* Firefox safety */
input::-moz-placeholder {
  color: #ffc72d;
  opacity: 0.6;
}


/* ================= DOB + AGE (PRO FIX) ================= */

.dob-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Shared height & shape */
/* Day / Month / Year */
.dob-row select,
#ageDisplay {
  height: 48px;
  border-radius: 16px; /* match age box */
  font-size: 15px;
  font-weight: 500;
  text-align: center; /* center text horizontally */
  border: 1px solid rgba(255,199,45,0.6);
  outline: none;
  box-sizing: border-box;
}

/* DOB dropdowns */
.dob-row select {
  flex: 1 1 calc(33.333% - 8px);
  height: 48px;
  border-radius: 16px;
  background: #2b2b2b;
  color: #ffc72d;
  border: 1px solid rgba(255,199,45,0.6);
  text-align: center;
  font-size: 15px;
  font-weight: 500;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  line-height: 48px; /* vertical center (Android fix) */
}

/* Android / iOS option safety */
.dob-row select option {
  color: #000;
}

/* Placeholder option */
.dob-row select option[value=""] {
  color: #9a9a9a;
}

/* Focus highlight */
.dob-row select:focus {
  box-shadow: 0 0 0 2px rgba(255,199,45,0.4);
}

/* Age display box */
#ageDisplay {
  flex: 1 1 100%;
  height: 48px;
  border-radius: 16px;
  background: #111;
  color: #ffc72d;
  border: 1px dashed rgba(255,199,45,0.6);
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 48px;
}

/* Invalid age */
#ageDisplay.invalid {
  color: #ff4d4d;
  border-color: #ff4d4d;
}

/* ================= BUTTON ================= */

.submit-btn {
  width: 100%;
  padding: 16px;
  margin-top: 16px;
  border-radius: 18px;
  border: none;
  background: #ffc72d;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* Footer */
.footer-text {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}

@media (max-width: 380px) {

  .dob-row {
    gap: 8px;
  }

  .dob-row select {
    height: 44px;
    font-size: 14px;
    border-radius: 14px;
    line-height: 44px;
  }

  #ageDisplay {
    height: 44px;
    font-size: 14px;
    border-radius: 14px;
    line-height: 44px;
    margin-top: 2px;
  }
}

