/* ── Civic Talks — Form Page Styles ────────────────────────────────────── */

/* ── Form Hero ───────────────────────────────────────────────────────────── */

.ct-form-hero {
  background: var(--ct-maroon);
  padding: 72px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ct-form-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(212,148,10,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.ct-form-hero .ct-badge {
  margin-bottom: 20px;
}

.ct-form-hero h1 {
  color: var(--ct-white);
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.ct-form-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.78;
}

/* ── Form Section ────────────────────────────────────────────────────────── */

.ct-form-section {
  padding: 60px 0 100px;
  background: #f4f2f0;
}

.ct-form-container {
  max-width: 680px;
}

.ct-form-container--wide {
  max-width: 820px;
}

/* ── Form Card ───────────────────────────────────────────────────────────── */

.ct-form {
  background: var(--ct-white);
  border-radius: 20px;
  padding: 48px 48px 40px;
  box-shadow: 0 2px 40px rgba(92, 26, 46, 0.08);
}

.ct-form-fieldset {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--ct-border);
}

.ct-form-fieldset:last-of-type {
  border-bottom: none;
  margin-bottom: 28px;
  padding-bottom: 0;
}

.ct-fieldset-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ct-maroon);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ct-font-body);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ct-off-white);
}

.ct-section-num {
  width: 30px;
  height: 30px;
  background: var(--ct-maroon);
  color: var(--ct-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.ct-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.ct-form-group:last-child {
  margin-bottom: 0;
}

/* ── Labels ──────────────────────────────────────────────────────────────── */

.ct-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d2d2d;
  line-height: 1.4;
}

.required {
  color: var(--ct-gold);
  margin-left: 2px;
}

.optional {
  color: var(--ct-text-muted);
  font-weight: 400;
  font-size: 0.78rem;
}

/* ── Core Inputs ─────────────────────────────────────────────────────────── */

.ct-input,
.ct-select,
.ct-textarea {
  width: 100%;
  font-family: var(--ct-font-body);
  font-size: 0.92rem;
  color: var(--ct-text);
  background: #fafafa;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ct-input {
  padding: 13px 16px;
}

.ct-input:focus {
  background: var(--ct-white);
  border-color: var(--ct-maroon);
  box-shadow: 0 0 0 3px rgba(92, 26, 46, 0.09);
}

.ct-input::placeholder {
  color: #aaa;
}

/* Select */
.ct-select {
  padding: 13px 40px 13px 16px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c1a2e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.ct-select:focus {
  background-color: var(--ct-white);
  border-color: var(--ct-maroon);
  box-shadow: 0 0 0 3px rgba(92, 26, 46, 0.09);
}

/* Textarea */
.ct-textarea {
  padding: 13px 16px;
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.ct-textarea:focus {
  background: var(--ct-white);
  border-color: var(--ct-maroon);
  box-shadow: 0 0 0 3px rgba(92, 26, 46, 0.09);
}

.ct-textarea::placeholder {
  color: #aaa;
}

/* Error state */
.ct-form-group.has-error .ct-input,
.ct-form-group.has-error .ct-select,
.ct-form-group.has-error .ct-textarea {
  border-color: #d63031;
  background: #fff8f8;
}

.ct-error {
  font-size: 0.78rem;
  color: #d63031;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ct-error::before {
  content: "⚠";
  font-size: 0.7rem;
}

/* ── Radio Groups ────────────────────────────────────────────────────────── */

.ct-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.ct-radio-group label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ct-text);
  cursor: pointer;
  line-height: 1.55;
  font-weight: 400;
  padding: 10px 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ct-radio-group label:hover {
  border-color: var(--ct-maroon);
  background: rgba(92, 26, 46, 0.03);
}

.ct-radio-group input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--ct-maroon);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

/* Inline radio (safety scale) */
.ct-radio-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ct-radio-inline label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  cursor: pointer;
  font-weight: 500;
  padding: 10px 16px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  min-width: 52px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ct-radio-inline label:hover {
  border-color: var(--ct-maroon);
  background: rgba(92, 26, 46, 0.04);
}

.ct-radio-inline input[type="radio"] {
  accent-color: var(--ct-maroon);
  cursor: pointer;
}

.ct-scale-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ct-scale-label {
  font-size: 0.75rem;
  color: var(--ct-text-muted);
  font-weight: 600;
  font-style: italic;
  white-space: nowrap;
}

/* ── Checkboxes ──────────────────────────────────────────────────────────── */

.ct-checkbox-group {
  margin-top: 4px;
}

.ct-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ct-text);
  cursor: pointer;
  font-weight: 400;
  line-height: 1.55;
  padding: 12px 16px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ct-checkbox-label:hover {
  border-color: var(--ct-maroon);
  background: rgba(92, 26, 46, 0.03);
}

.ct-checkbox,
.ct-checkbox-label input[type="checkbox"],
.ct-checkbox-multi input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--ct-maroon);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.ct-checkbox-multi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.ct-checkbox-multi label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ct-text);
  cursor: pointer;
  line-height: 1.55;
  font-weight: 400;
  padding: 10px 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ct-checkbox-multi label:hover {
  border-color: var(--ct-maroon);
  background: rgba(92, 26, 46, 0.03);
}

/* ── Scale Hint ──────────────────────────────────────────────────────────── */

.ct-scale-hint {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ct-text-muted);
  margin-top: 6px;
  padding: 0 4px;
}

.ct-scale-hint strong {
  color: var(--ct-maroon);
}

/* ── Scenario Box ────────────────────────────────────────────────────────── */

.ct-scenario-box {
  background: linear-gradient(135deg, rgba(92,26,46,0.04) 0%, rgba(212,148,10,0.05) 100%);
  border-left: 4px solid var(--ct-gold);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 24px;
}

.ct-scenario-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ct-gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ct-scenario-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ct-gold);
  display: inline-block;
}

.ct-scenario-box p {
  font-size: 0.9rem;
  color: var(--ct-text);
  line-height: 1.75;
}

/* ── Ranking Table ───────────────────────────────────────────────────────── */

.ct-ranking-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.ct-ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  background: #fafafa;
  border-radius: 10px;
  border: 1.5px solid #e8e8e8;
  transition: border-color 0.2s ease;
}

.ct-ranking-row:hover {
  border-color: #ccc;
}

.ct-ranking-row span {
  font-size: 0.88rem;
  color: var(--ct-text);
  flex: 1;
  line-height: 1.45;
}

.ct-ranking-row .ct-select {
  width: 90px;
  flex-shrink: 0;
  padding: 8px 32px 8px 12px;
  font-size: 0.85rem;
  background-position: right 10px center;
}

/* ── Conditional Fields ──────────────────────────────────────────────────── */

.ct-conditional {
  display: none;
  background: rgba(212, 148, 10, 0.04);
  border: 1.5px dashed rgba(212, 148, 10, 0.4);
  border-radius: 12px;
  padding: 20px;
}

/* ── Submit Button ───────────────────────────────────────────────────────── */

.ct-btn-full {
  width: 100%;
  margin-top: 8px;
  padding: 15px 28px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Sponsor Page ────────────────────────────────────────────────────────── */

.ct-sponsor-why {
  background: var(--ct-white);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 28px;
  box-shadow: 0 2px 40px rgba(92, 26, 46, 0.08);
}

.ct-sponsor-why h2 {
  font-size: 1.4rem;
  color: var(--ct-maroon);
  margin-bottom: 28px;
}

.ct-sponsor-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ct-sponsor-benefit {
  background: var(--ct-off-white);
  border: 1px solid var(--ct-border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.ct-sponsor-benefit:hover {
  box-shadow: var(--ct-shadow);
}

.ct-benefit-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 14px;
}

.ct-sponsor-benefit h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ct-maroon);
  margin-bottom: 8px;
}

.ct-sponsor-benefit p {
  font-size: 0.84rem;
  color: var(--ct-text-muted);
  line-height: 1.65;
}

/* Sponsorship Table */
.ct-sponsor-table-wrap {
  background: var(--ct-white);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 28px;
  box-shadow: 0 2px 40px rgba(92, 26, 46, 0.08);
  overflow-x: auto;
}

.ct-sponsor-table-wrap h2 {
  font-size: 1.4rem;
  color: var(--ct-maroon);
  margin-bottom: 24px;
}

.ct-sponsor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ct-sponsor-table thead tr {
  background: var(--ct-maroon);
  color: var(--ct-white);
}

.ct-sponsor-table th {
  padding: 16px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ct-sponsor-table th:first-child {
  text-align: left;
}

.ct-sponsor-table th.highlight {
  background: var(--ct-gold);
  color: var(--ct-white);
}

.ct-sponsor-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ct-border);
  color: var(--ct-text);
  text-align: center;
}

.ct-sponsor-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.ct-sponsor-table td.highlight {
  background: rgba(212, 148, 10, 0.07);
  color: var(--ct-text);
  font-weight: 600;
}

.ct-sponsor-table tr:last-child td {
  border-bottom: none;
}

.ct-sponsor-table tr:nth-child(even) td {
  background: #fafaf8;
}

.ct-sponsor-table tr:nth-child(even) td.highlight {
  background: rgba(212, 148, 10, 0.09);
}

/* Sponsor Form */
.ct-sponsor-form-wrap {
  background: var(--ct-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 2px 40px rgba(92, 26, 46, 0.08);
}

.ct-sponsor-form-wrap h2 {
  font-size: 1.4rem;
  color: var(--ct-maroon);
  margin-bottom: 8px;
}

.ct-sponsor-form-wrap > p {
  font-size: 0.9rem;
  color: var(--ct-text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.ct-sponsor-form-wrap .ct-form {
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

/* ── Success Page ────────────────────────────────────────────────────────── */

.ct-success-section {
  padding: 120px 0;
  background: var(--ct-off-white);
}

.ct-success-inner {
  max-width: 520px;
  text-align: center;
}

.ct-success-icon {
  width: 76px;
  height: 76px;
  background: var(--ct-maroon);
  color: var(--ct-white);
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 8px 32px rgba(92,26,46,0.25);
}

.ct-success-inner h1 {
  margin-bottom: 16px;
  font-size: 2rem;
  color: var(--ct-maroon);
}

.ct-success-inner p {
  color: var(--ct-text-muted);
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: 36px;
}

.ct-success-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.ct-success-social p {
  font-size: 0.85rem;
  color: var(--ct-text-muted);
  margin-bottom: 12px;
}

.ct-success-social .ct-social-links {
  justify-content: center;
}

.ct-success-social .ct-social-links a {
  border-color: var(--ct-border);
  color: var(--ct-text-muted);
}

.ct-success-social .ct-social-links a:hover {
  border-color: var(--ct-maroon);
  color: var(--ct-maroon);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .ct-form {
    padding: 28px 22px;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ct-sponsor-benefits {
    grid-template-columns: 1fr;
  }

  .ct-sponsor-why,
  .ct-sponsor-table-wrap,
  .ct-sponsor-form-wrap {
    padding: 24px 20px;
  }

  .ct-sponsor-table th,
  .ct-sponsor-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .ct-ranking-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ct-ranking-row .ct-select {
    width: 100%;
  }

  .ct-scale-wrap {
    flex-wrap: wrap;
  }

  .ct-radio-inline {
    gap: 6px;
  }
}

/* ── Multi-section registration form ─────────────────────────────────────── */

.ct-form-section-block {
  border: 1px solid #e8e0d5;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 28px;
  background: #fdfaf7;
}

.ct-form-section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c1a2e;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8e0d5;
}

.ct-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.ct-checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e8e0d5;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #3d2c2c;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.ct-checkbox-option:hover {
  border-color: #d4940a;
  background: #fdf6e3;
}

.ct-checkbox-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #5c1a2e;
  flex-shrink: 0;
  cursor: pointer;
}

.ct-checkbox-option input[type="checkbox"]:checked + span {
  color: #5c1a2e;
  font-weight: 600;
}

@media (max-width: 600px) {
  .ct-form-section-block {
    padding: 20px 16px;
  }

  .ct-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Registration notices ───────────────────────────────────────────── */
.ct-notice {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ct-notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.ct-notice-closed {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.ct-notice-warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}
