:root {
  --appt-primary:     #d4a017;
  --appt-primary-dk:  #b8860b;
  --appt-accent:      #f5c842;
  --appt-bg:          #fdfaf3;
  --appt-white:       #ffffff;
  --appt-dark:        #1a1005;
  --appt-gray:        #7a6040;
  --appt-border:      #f0dfa0;
  --appt-input-bg:    #fdfaf3;
  --appt-shadow:      0 8px 32px rgba(212, 160, 23, 0.18);
  --appt-radius:      14px;
  --appt-radius-sm:   8px;
}

/* ========== SECTION WRAPPER ========== */
.appt-section {
  background: linear-gradient(135deg, #fdfaf3 0%, #fef9e8 60%, #fff8dc 100%);
  padding: 80px 0;
  font-family: 'Sarabun', sans-serif;
  position: relative;
  overflow: hidden;
}

/* Background decorative circles */
.appt-section::before,
.appt-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}
.appt-section::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #f5c842, transparent);
  top: -160px; left: -160px;
}
.appt-section::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #e6a817, transparent);
  bottom: -120px; right: -100px;
}

/* ========== CONTAINER ========== */
.appt-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

/* ========== LEFT: INFO ========== */
.appt-info {
  flex: 1;
  min-width: 280px;
}

.appt-badge {
  display: inline-block;
  background: var(--appt-white);
  color: var(--appt-primary-dk);
  font-family: 'Sarabun', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 30px;
  border: 1.5px solid var(--appt-border);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(212,160,23,0.12);
}

.appt-title {
  font-family: 'Kanit', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--appt-dark);
  line-height: 1.25;
  margin: 0 0 16px;
}

.appt-title span {
  color: var(--appt-primary);
}

.appt-subtitle {
  color: var(--appt-gray);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 30px;
}

/* Feature list */
.appt-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.appt-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--appt-dark);
  font-weight: 500;
}

.appt-features li::before {
  content: '';
  width: 20px; height: 20px;
  min-width: 20px;
  background: var(--appt-accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231a1005'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 3px 10px rgba(245,200,66,0.4);
}

/* ========== RIGHT: FORM CARD ========== */
.appt-card {
  flex: 1;
  max-width: 460px;
  background: var(--appt-white);
  border-radius: var(--appt-radius);
  box-shadow: var(--appt-shadow);
  padding: 36px 32px 40px;
  border: 1px solid rgba(212,160,23,0.18);
}

.appt-card-title {
  font-family: 'Kanit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--appt-dark);
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--appt-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.appt-card-title svg {
  color: var(--appt-primary);
}

/* ========== FORM ELEMENTS ========== */
.appt-form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.appt-form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.appt-form-group.full {
  flex: unset;
  width: 100%;
  margin-bottom: 16px;
}

.appt-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--appt-gray);
  letter-spacing: 0.3px;
}

.appt-input,
.appt-select {
  background: var(--appt-input-bg);
  border: 1.5px solid var(--appt-border);
  border-radius: var(--appt-radius-sm);
  padding: 11px 14px;
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  color: var(--appt-dark);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.appt-input::placeholder {
  color: #b0c4d8;
}

.appt-input:focus,
.appt-select:focus {
  border-color: var(--appt-accent);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.18);
  background: #fff;
}

/* Custom select arrow */
.appt-select-wrap {
  position: relative;
}

.appt-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--appt-primary);
  pointer-events: none;
}

/* Date + Time row */
.appt-datetime-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.appt-datetime-row .appt-form-group {
  flex: 1;
}

/* ========== SUBMIT BUTTON ========== */
.appt-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--appt-accent) 0%, var(--appt-primary) 100%);
  color: var(--appt-dark);
  border: none;
  border-radius: var(--appt-radius-sm);
  font-family: 'Kanit', sans-serif;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 18px rgba(212,160,23,0.40);
  letter-spacing: 0.3px;
  margin-top: 6px;
}

.appt-btn:hover {
  background: linear-gradient(135deg, var(--appt-primary) 0%, var(--appt-primary-dk) 100%);
  box-shadow: 0 6px 24px rgba(212,160,23,0.55);
  transform: translateY(-1px);
}

.appt-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(212,160,23,0.35);
}

/* ========== SUCCESS MESSAGE ========== */
.appt-success {
  display: none;
  background: #e8f8f0;
  border: 1.5px solid #6fcf97;
  border-radius: var(--appt-radius-sm);
  padding: 14px 18px;
  color: #1a7a45;
  font-size: 15px;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
}

/* ========== DOCTOR LINK BUTTON ========== */
.appt-doctor-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 11px 22px;
  background: transparent;
  border: 2px solid var(--appt-accent);
  border-radius: var(--appt-radius-sm);
  color: var(--appt-primary-dk);
  font-family: 'Kanit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.appt-doctor-link:hover {
  background: var(--appt-accent);
  color: var(--appt-dark);
  box-shadow: 0 4px 16px rgba(245,200,66,0.35);
  transform: translateY(-1px);
  text-decoration: none;
}

.appt-doctor-link svg {
  flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .appt-container {
    flex-direction: column;
    gap: 40px;
  }
  .appt-card {
    max-width: 100%;
    width: 100%;
  }
  .appt-title { font-size: 32px; }
}

@media (max-width: 500px) {
  .appt-form-row,
  .appt-datetime-row {
    flex-direction: column;
    gap: 0;
  }
  .appt-form-row .appt-form-group,
  .appt-datetime-row .appt-form-group {
    margin-bottom: 16px;
  }
  .appt-card { padding: 24px 18px 28px; }
  .appt-title { font-size: 27px; }
}
