/* Registration flow styles */

.registration-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.back-link {
  display: inline-block;
  color: #166534;
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

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

h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #1a202c;
}

.subtitle {
  color: #718096;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.flash-error {
  background: #fee;
  border-left: 4px solid #f56565;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  color: #742a2a;
}

.flash-success {
  background: #e6f9e6;
  border-left: 4px solid #52c41a;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  color: #135200;
}

.selection-summary {
  background: #f7fafc;
  border-left: 4px solid #166534;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.selection-summary strong {
  display: block;
  margin-bottom: 0.25rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.label-hint {
  font-weight: 400;
  color: #718096;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="radio"] + label {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: #166534;
}

button[type="submit"] {
  background: linear-gradient(135deg, #166534 0%, #14532d 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
}

button[type="submit"]:active {
  transform: translateY(0);
}

.member-exists-notice {
  background: #e6f7ff;
  border-left: 4px solid #1890ff;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  color: #003a8c;
}

.member-exists-notice strong {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group.readonly input {
  background: #f5f5f5;
  cursor: not-allowed;
}

/* Activity grid and cards */
.activity-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.activity-card {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.activity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: #166534;
}

.activity-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.activity-card p {
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}

.arrow {
  float: right;
  font-size: 1.5rem;
  color: #cbd5e0;
}

/* Option cards */
.option-card {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.option-card:hover {
  border-color: #166534;
  background: white;
  transform: translateY(-2px);
}

.option-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1a202c;
}

.option-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
  margin-top: 0.5rem;
}

/* Member info section */
.member-info {
  background: #f7fafc;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.member-info h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #2d3748;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #718096;
  font-weight: 500;
}

.info-value {
  color: #2d3748;
  font-weight: 600;
}

/* Cost breakdown */
.cost-breakdown {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.cost-breakdown h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #2d3748;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.cost-label {
  flex: 1;
}

.cost-amount {
  font-weight: 700;
  color: #2d3748;
  font-size: 1.125rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.total-amount {
  color: #22c55e;
  font-size: 1.5rem;
}

/* Success icon */
.success-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 3rem;
}

/* Fee options */
.fee-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.fee-option {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  background: #fff;
}

.fee-option:hover {
  border-color: #166534;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.1);
}

.fee-option input[type="radio"] {
  margin-right: 1rem;
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #166534;
  flex-shrink: 0;
}

.fee-option:has(input[type="radio"]:checked) {
  border-color: #166534;
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.15);
}

.fee-option:has(input[type="radio"]:checked) .fee-name {
  color: #166534;
}

.fee-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.fee-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
}

.fee-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #22c55e;
  white-space: nowrap;
  margin-left: 1rem;
}

.fee-description {
  font-size: 0.875rem;
  color: #718096;
  margin-top: 0.5rem;
}

/* Buttons and actions */
.actions {
  margin-top: 2rem;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #166534;
  color: white;
}

.btn-primary:hover {
  background: #14532d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

/* Responsive */
@media (min-width: 768px) {
  .registration-container {
    padding: 3rem 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
