* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f4f6f9;
  color: #333;
  line-height: 1.6;
  padding: 20px 10px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.banner {
  width: 100%;
  height: auto;
  display: block;
}

.content {
  padding: 24px 20px;
}

h1 {
  font-size: 20px;
  color: #1b4332;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.35;
}

h1 small {
  font-size: 14px;
  font-weight: 500;
  color: #40916c;
  display: block;
  margin-top: 4px;
}

.announcement {
  background-color: #e8f5e9;
  border-left: 4px solid #2d6a4f;
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
  white-space: pre-line;
}

.jadwal-img {
  width: 90%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 16px auto 24px auto;
  border: 1px solid #e0e0e0;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #2b2b2b;
}

label .required {
  color: #d9534f;
}

label .optional {
  font-size: 12px;
  color: #666;
  font-weight: normal;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

select:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

.section-divider {
  border-top: 1px solid #eee;
  margin: 24px 0 18px 0;
}

.btn-submit {
  width: 100%;
  background-color: #2d6a4f;
  color: #ffffff;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: #1b4332;
}

.btn-submit:disabled {
  background-color: #a5d6a7;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

.thank-you-card {
  text-align: center;
  padding: 30px 20px;
}

.thank-you-card h2 {
  color: #2d6a4f;
  margin-bottom: 10px;
}

.summary-box {
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  margin: 20px 0;
  font-size: 14px;
}

.summary-item {
  margin-bottom: 8px;
}

.summary-item strong {
  color: #1b4332;
}

/* Custom modal (replaces browser alert) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  padding: 24px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.modal-box .modal-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.modal-box .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1b4332;
  margin-bottom: 10px;
}

.modal-box .modal-message {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 20px;
  white-space: pre-line;
}

.modal-box .modal-btn {
  width: 100%;
  background-color: #2d6a4f;
  color: #fff;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-box .modal-btn:hover {
  background-color: #1b4332;
}

.modal-box.modal-error .modal-title {
  color: #c0392b;
}

.modal-box.modal-error .modal-btn {
  background-color: #c0392b;
}

.modal-box.modal-error .modal-btn:hover {
  background-color: #a93226;
}

/* Desktop-friendly tweaks */
@media (min-width: 640px) {
  body {
    padding: 30px 20px;
  }

  h1 {
    font-size: 22px;
  }

  .content {
    padding: 28px 28px;
  }

  .announcement {
    font-size: 15px;
  }
}
