* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #cee6f1 0%, #b8e0d4 100%);
  min-height: 100vh;
  padding: 20px;
}
.container { max-width: 560px; margin: 0 auto; padding-top: 55px; }

.about-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin-bottom: 25px;
}

.about-heading {
  font-size: 1.1em;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.form-group { margin-bottom: 30px; }
.form-group:last-of-type { margin-bottom: 8px; }

label {
  display: block;
  font-size: 0.95em;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.required { color: #e53e3e; margin-left: 2px; }
.optional { color: #aaa; font-weight: 400; margin-left: 4px; }
.desc { font-size: 0.82em; color: #999; margin-bottom: 6px; line-height: 1.4; }

.underline-input {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-bottom: 2px solid #d0d0d0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.82em;
  color: #333;
  padding: 7px 0;
  text-align: left;
  line-height: 1.4;
  height: 2.2em;
  transition: border-color 0.2s;
}
.underline-input:focus { border-bottom-color: #667eea; }
.underline-full { width: 100%; }
.underline-time { width: 7ch; text-align: center; }
.underline-date { width: 13ch; }

textarea.underline-input {
  height: auto;
  resize: vertical;
  min-height: 80px;
  background: #f7f8fc;
  border: 1.5px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px;
}
textarea.underline-input:focus { border-color: #667eea; background: white; }

.select-wrapper { position: relative; }
.select-wrapper::after {
  content: "▼";
  font-size: 0.65em;
  color: #888;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #d0d0d0;
  border-radius: 2px;
  padding: 8px 30px 8px 10px;
  font-size: 0.82em;
  background: white;
  font-family: inherit;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s;
}
select:focus { outline: none; border-color: #667eea; }

.submit-btn {
  width: 100%;
  margin-top: 24px;
  padding: 13px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(102,126,234,0.4); }
.recaptcha-note { font-size: 0.72em; color: #bbb; text-align: center; margin-top: 10px; }

/* Validation */
.field-error {
  display: none;
  color: #e53e3e;
  font-size: 0.78em;
  margin-top: 4px;
}

.underline-input.input-error {
  border-bottom-color: #e53e3e;
}

select.input-error {
  border-color: #e53e3e;
}

textarea.underline-input.input-error {
  border-color: #e53e3e;
}

/* === Modals === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
  animation: overlayFadeIn 0.2s ease;
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: white;
  border-radius: 15px;
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: cardSlideUp 0.25s ease;
}
@keyframes cardSlideUp {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-title {
  font-size: 1em;
  font-weight: 700;
  color: #333;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.confirm-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 16px;
  margin-bottom: 22px;
  font-size: 0.83em;
}
.confirm-list dt {
  font-weight: 600;
  color: #667eea;
  white-space: nowrap;
  padding-top: 1px;
}
.confirm-list dd {
  color: #333;
  word-break: break-all;
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  font-size: 0.88em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.modal-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.modal-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.modal-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.modal-btn-secondary {
  background: #f0f0f0;
  color: #555;
}
.modal-btn-secondary:hover {
  background: #e4e4e4;
}

/* Result modal */
.modal-card-result {
  position: relative;
  text-align: center;
  padding: 36px 28px 28px;
}
.result-dismiss-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1em;
  color: #aaa;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
}
.result-dismiss-btn:hover {
  color: #333;
  background: #f0f0f0;
}
.result-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.result-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 700;
  margin: 0 auto 16px;
}
.result-icon-success {
  background: #e8f5e9;
  color: #2e7d32;
}
.result-icon-error {
  background: #ffebee;
  color: #c62828;
}
.result-message {
  font-size: 0.9em;
  color: #333;
  line-height: 1.75;
  margin-bottom: 24px;
  white-space: pre-line;
}
