:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card-header h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.logo {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
  margin: 0 auto 20px;
}

.card-header p {
  margin: 0 0 24px;
  color: var(--muted);
}

.card-center {
  text-align: center;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group .required::after {
  content: " *";
  color: var(--danger);
}

.question-description {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.question-link {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.question-link:hover {
  text-decoration: underline;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.file-input-native {
  display: none;
}

.file-upload {
  display: inline-block;
  padding: 10px 16px;
  background: #e2e8f0;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.file-upload:hover {
  background: #cbd5e1;
}

.file-name {
  margin-left: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}

.option input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.option-custom {
  flex-wrap: wrap;
}

.option-custom .custom-input {
  flex: 1;
  min-width: 160px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text);
}

.btn-danger {
  background: #fee2e2;
  color: var(--danger);
}

.form-error {
  margin: 16px 0;
  padding: 10px 14px;
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.muted {
  color: var(--muted);
}

.checkmark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 50%;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.6rem;
}

.submissions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.submission {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.submission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.submission-head .date {
  color: var(--muted);
  font-size: 0.9rem;
}

.submission table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.submission table td {
  padding: 6px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.submission table td:first-child {
  width: 40%;
  font-weight: 600;
  color: var(--muted);
  padding-right: 16px;
}

@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }
  .card {
    padding: 20px;
  }
}
