/* Scoped to .srp-wrapper to avoid Kadence/Theme conflicts */
.srp-wrapper {
  max-width: 800px;
  margin: 0 auto;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #333;
}
.srp-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.srp-section-title {
  font-size: 1.25rem;
  color: #2563eb;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}
.srp-section-title:first-child {
  margin-top: 0;
}
.srp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.srp-field.srp-full {
  grid-column: 1 / -1;
}
.srp-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.srp-required {
  color: #dc2626;
}
.srp-field input,
.srp-field select,
.srp-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.srp-field input:focus,
.srp-field select:focus,
.srp-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.srp-honeypot {
  position: absolute;
  left: -9999px;
}
.srp-consent {
  margin-top: 2rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 6px;
}
.srp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.srp-checkbox-label input {
  margin-top: 0.25rem;
  width: auto;
}
.srp-actions {
  margin-top: 2rem;
  text-align: center;
}
.srp-btn {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.srp-btn-primary {
  background: #2563eb;
  color: #fff;
}
.srp-btn-primary:hover {
  background: #1d4ed8;
}
.srp-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.srp-btn-loader {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: srp-spin 0.8s linear infinite;
}
@keyframes srp-spin {
  to {
    transform: rotate(360deg);
  }
}
.srp-messages {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 6px;
  display: none;
}
.srp-messages.srp-error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.srp-success {
  text-align: center;
  padding: 3rem 2rem;
  background: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}
.srp-success h2 {
  color: #166534;
}
.srp-success p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
  .srp-grid {
    grid-template-columns: 1fr;
  }
  .srp-form {
    padding: 1.5rem;
  }
}

/* Success State */
.srp-success {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  animation: srp-fade-in 0.4s ease-out;
}

@keyframes srp-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.srp-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: #16a34a;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.srp-success-icon svg {
  width: 32px;
  height: 32px;
}

.srp-success-title {
  color: #166534;
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

.srp-success-message {
  font-size: 1rem;
  color: #15803d;
  margin: 0 0 1.5rem;
}

.srp-student-id-box {
  display: inline-block;
  background: #fff;
  border: 2px solid #16a34a;
  border-radius: 8px;
  padding: 1rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.1);
}

.srp-student-id-label {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.srp-student-id-value {
  display: block;
  font-size: 1.5rem;
  color: #166534;
  font-family: "Courier New", monospace;
  letter-spacing: 0.05em;
}

.srp-success-note {
  font-size: 0.95rem;
  color: #374151;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.srp-success-actions {
  margin-bottom: 1.5rem;
}

.srp-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.srp-success-footer {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  font-style: italic;
}

@media (max-width: 600px) {
  .srp-success {
    padding: 2rem 1.25rem;
  }
  .srp-success-title {
    font-size: 1.4rem;
  }
  .srp-student-id-box {
    padding: 0.75rem 1.25rem;
  }
  .srp-student-id-value {
    font-size: 1.25rem;
  }
}
