/* Reset & typography */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; padding: 20px;
  background: #f2f4f6;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.5;
}

.form-container {
  max-width: 600px; margin: auto;
  background: #fff; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 30px;
}

header { text-align: center; margin-bottom: 20px; }
header img { width: 150px; height: auto; }
header p { margin-top: 8px; font-size: 0.95em; color: #555; }
h2 { margin: 8px 0 16px; font-size: 1.4em; font-weight: 600; }

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block; margin-bottom: 6px;
  font-weight: 600; font-size: 0.95em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%; padding: 8px 10px;
  font-size: 1em; border: 1px solid #ccc;
  border-radius: 5px;
}

/* date row */
.date-row {
  display: flex; align-items: center; margin-bottom: 18px;
}
.date-row label {
  width: 140px; font-weight: 600; font-size: 0.95em;
}
.date-row label small {
  display: block; font-size: 0.85em; color: #777;
}
.date-row input {
  flex: 1; padding: 8px 10px; font-size: 1em;
  border: 1px solid #ccc; border-radius: 5px;
  color: #333;
}
.date-row input::placeholder { color: #aaa; }

/* Outcome message */
.outcome {
  margin: 20px 0; font-weight: 600; color: #444;
}
.outcome.error { color: #D32F2F; }

/* Terms box */
.terms-box {
  margin-bottom: 25px; padding: 15px;
  background: #f9f9f9; border-left: 4px solid #007bff;
  border-radius: 4px; font-size: 0.9em; line-height: 1.4;
}
#termsNone.terms-box { border-left-color: #D32F2F; }
#termsVoucher.terms-box { border-left-color: #FFA500; }
#termsRefund.terms-box  { border-left-color: #2E7D32; }

.terms-box h4 { margin: 0 0 10px; font-size: 1em; }
.terms-box ul { padding-left: 20px; margin-bottom: 0; }

/* Flash animations */
@keyframes flashRed {
  0%,100% { color: #D32F2F; }
  50%     { color: transparent; }
}
@keyframes flashOrange {
  0%,100% { color: #FFA500; }
  50%     { color: transparent; }
}
@keyframes flashGreen {
  0%,100% { color: #2E7D32; }
  50%     { color: transparent; }
}

/* Apply flashing */
#termsNone h4 {
  animation: flashRed 0.75s linear infinite;
}
#termsVoucher h4 {
  animation: flashOrange 0.75s linear infinite;
}
#termsRefund h4 {
  animation: flashGreen 0.75s linear infinite;
}

/* Confirmation */
#finalConfirmation {
  margin-bottom: 25px; display: none;
}
#finalConfirmation label {
  font-size: 0.95em; cursor: pointer;
}

/* Submit button */
button[type="submit"] {
  width: 100%; padding: 12px 0;
  font-size: 1em; font-weight: 600;
  color: #fff; background: #007bff;
  border: none; border-radius: 5px;
  cursor: pointer; transition: background 0.2s;
}
button[type="submit"]:disabled {
  background: #999; cursor: not-allowed;
}
button[type="submit"]:not(:disabled):hover {
  background: #0056b3;
}

.hidden { display: none !important; }

/* Success container */
.success-container {
  text-align: center; padding: 40px 20px;
}
.success-container img {
  width: 80px; margin-bottom: 20px;
}
.success-container p {
  font-size: 1em; font-weight: 600; color: #2e7d32;
}

/* Responsive */
@media (max-width: 480px) {
  body { padding: 12px; }
  .form-container { padding: 20px; }
  .date-row { flex-direction: column; align-items: stretch; }
  .date-row label { margin-bottom: 6px; width: auto; }
}
