/* ═══════════════════════════════════════════════════════════
   PS Drone Fest - Team Registration Form
   Design language: Dark header, magenta accents, clean white
   ═══════════════════════════════════════════════════════════ */

:root {
  --pstr-dark: #1a1a2e;
  --pstr-dark-alt: #16213e;
  --pstr-pink: #e91e8c;
  --pstr-pink-hover: #c4177a;
  --pstr-pink-light: #fef0f8;
  --pstr-text: #333333;
  --pstr-text-light: #666666;
  --pstr-border: #e0e0e0;
  --pstr-bg: #ffffff;
  --pstr-bg-alt: #f8f9fb;
  --pstr-success: #10b981;
  --pstr-error: #ef4444;
  --pstr-radius: 10px;
  --pstr-radius-sm: 6px;
}

/* Wrapper */
.pstr-form-wrapper {
  max-width: 780px;
  margin: 30px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--pstr-text);
  line-height: 1.6;
}

/* ─── Header ─────────────────────────────────────────────── */
.pstr-form-header {
  background: linear-gradient(135deg, var(--pstr-dark) 0%, var(--pstr-dark-alt) 100%);
  padding: 35px 40px;
  text-align: center;
  border-radius: var(--pstr-radius) var(--pstr-radius) 0 0;
}

.pstr-form-header-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.pstr-form-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pstr-form-header p {
  margin: 6px 0 0;
  color: var(--pstr-pink);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ─── Progress Steps ─────────────────────────────────────── */
.pstr-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 30px;
  background: var(--pstr-bg-alt);
  border-left: 1px solid var(--pstr-border);
  border-right: 1px solid var(--pstr-border);
}

.pstr-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pstr-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pstr-border);
  color: var(--pstr-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.pstr-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--pstr-text-light);
  transition: color 0.3s ease;
}

.pstr-progress-step.active .pstr-step-number {
  background: var(--pstr-pink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(233, 30, 140, 0.35);
}

.pstr-progress-step.active .pstr-step-label {
  color: var(--pstr-dark);
}

.pstr-progress-step.completed .pstr-step-number {
  background: var(--pstr-success);
  color: #fff;
}

.pstr-progress-step.completed .pstr-step-number::after {
  content: "✓";
  font-size: 14px;
}

.pstr-progress-step.completed .pstr-step-number {
  font-size: 0;
}

.pstr-progress-line {
  width: 40px;
  height: 3px;
  background: var(--pstr-border);
  margin: 0 8px;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.pstr-progress-line.active {
  background: var(--pstr-success);
}

/* ─── Form Steps ─────────────────────────────────────────── */
.pstr-step {
  background: var(--pstr-bg);
  padding: 35px 40px;
  border: 1px solid var(--pstr-border);
  border-top: none;
}

.pstr-section-title {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 800;
  color: var(--pstr-dark);
  padding-bottom: 12px;
  border-bottom: 3px solid var(--pstr-pink);
  display: inline-block;
  margin-bottom: 25px;
}

.pstr-note,
.pstr-division-note {
  color: var(--pstr-text-light);
  font-size: 14px;
  margin: 0 0 20px;
}

/* ─── Fields ─────────────────────────────────────────────── */
.pstr-field {
  margin-bottom: 18px;
  flex: 1;
}

.pstr-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--pstr-dark);
}

.pstr-required {
  color: var(--pstr-pink);
  font-weight: 700;
}

.pstr-field input,
.pstr-field select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--pstr-border);
  border-radius: var(--pstr-radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--pstr-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  box-sizing: border-box;
}

.pstr-field input:focus,
.pstr-field select:focus {
  outline: none;
  border-color: var(--pstr-pink);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.12);
}

.pstr-field input::placeholder {
  color: #aaa;
}

.pstr-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Field rows */
.pstr-field-row {
  display: flex;
  gap: 16px;
}

.pstr-field-row-3 {
  display: flex;
  gap: 12px;
}

.pstr-field-small {
  flex: 0 0 90px;
}

/* Error states */
.pstr-input-error {
  border-color: var(--pstr-error) !important;
  background: #fef2f2 !important;
}

.pstr-field-error {
  font-size: 12px;
  color: var(--pstr-error);
  margin-top: 4px;
  min-height: 0;
}

.pstr-field-error-active {
  min-height: 18px;
}

.pstr-division-error {
  font-size: 13px;
  color: var(--pstr-error);
  font-weight: 600;
  padding: 10px 14px;
  background: #fef2f2;
  border-radius: var(--pstr-radius-sm);
  margin-bottom: 15px;
}

/* ─── Player Cards ───────────────────────────────────────── */
.pstr-player-card {
  background: var(--pstr-bg-alt);
  border: 1px solid var(--pstr-border);
  border-radius: var(--pstr-radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.pstr-player-card:hover {
  border-color: #ccc;
}

.pstr-player-sub {
  border-style: dashed;
  background: #fafafa;
}

.pstr-player-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pstr-dark);
}

.pstr-player-sub .pstr-player-title {
  color: var(--pstr-text-light);
}

/* ─── Buttons ────────────────────────────────────────────── */
.pstr-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--pstr-border);
}

.pstr-btn {
  padding: 13px 28px;
  border: none;
  border-radius: var(--pstr-radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pstr-btn-next {
  background: var(--pstr-pink);
  color: #fff;
}

.pstr-btn-next:hover {
  background: var(--pstr-pink-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 30, 140, 0.3);
}

.pstr-btn-back {
  background: transparent;
  color: var(--pstr-text-light);
  border: 2px solid var(--pstr-border);
}

.pstr-btn-back:hover {
  border-color: #ccc;
  color: var(--pstr-text);
}

.pstr-btn-submit {
  background: linear-gradient(135deg, var(--pstr-dark) 0%, var(--pstr-dark-alt) 100%);
  color: #fff;
  padding: 15px 40px;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.pstr-btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.35);
}

.pstr-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pstr-btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pstr-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pstr-spin 0.8s linear infinite;
}

@keyframes pstr-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Review ─────────────────────────────────────────────── */
.pstr-review-content {
  margin: 20px 0;
}

.pstr-review-section {
  margin-bottom: 20px;
}

.pstr-review-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pstr-pink);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pstr-review-table {
  width: 100%;
  border-collapse: collapse;
}

.pstr-review-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.pstr-review-table td {
  padding: 10px 12px;
  font-size: 14px;
  vertical-align: top;
}

.pstr-review-label {
  width: 120px;
  color: var(--pstr-text-light);
  font-weight: 600;
}

.pstr-review-value {
  color: var(--pstr-text);
}

/* ─── Success Message ────────────────────────────────────── */
.pstr-success-message {
  background: var(--pstr-bg);
  border: 1px solid var(--pstr-border);
  border-top: none;
  border-radius: 0 0 var(--pstr-radius) var(--pstr-radius);
  padding: 50px 40px;
  text-align: center;
}

.pstr-success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pstr-success), #059669);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.pstr-success-message h3 {
  font-size: 22px;
  color: var(--pstr-dark);
  margin: 0 0 12px;
}

.pstr-success-message p {
  color: var(--pstr-text-light);
  font-size: 15px;
  margin: 0 0 10px;
}

.pstr-success-message a {
  color: var(--pstr-pink);
  text-decoration: none;
  font-weight: 600;
}

/* ─── Error Banner ───────────────────────────────────────── */
.pstr-error-banner {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--pstr-radius-sm);
  padding: 14px 20px;
  margin: 15px 0;
}

.pstr-error-banner p {
  margin: 0;
  color: var(--pstr-error);
  font-weight: 600;
  font-size: 14px;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .pstr-form-wrapper {
    margin: 15px 10px;
  }

  .pstr-form-header {
    padding: 25px 20px;
  }

  .pstr-form-header h2 {
    font-size: 20px;
  }

  .pstr-progress {
    padding: 16px 15px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pstr-step-label {
    display: none;
  }

  .pstr-progress-line {
    width: 24px;
  }

  .pstr-step {
    padding: 25px 20px;
  }

  .pstr-field-row,
  .pstr-field-row-3 {
    flex-direction: column;
    gap: 0;
  }

  .pstr-field-small {
    flex: auto;
  }

  .pstr-nav-buttons {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .pstr-btn {
    width: 100%;
    text-align: center;
  }

  .pstr-player-card {
    padding: 14px 16px;
  }
}
