/* ViCo Events Registration — matches vico.asia site style */

/* Hero banner */
.vico-reg-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 140px 0 48px;
  text-align: center;
  overflow: hidden;
}
.vico-reg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/media/images/Miro_v6ldx2ZDZD.format-jpeg.max-2400x1600.jpegquality-80.jpg') center/cover no-repeat;
  opacity: 0.3;
}
.vico-reg-hero .container {
  position: relative;
  z-index: 1;
}
.vico-reg-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.vico-reg-hero .event-meta {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin: 0;
}
.vico-reg-hero .event-meta i {
  margin-right: 4px;
}

/* Main content area */
.vico-reg-content {
  padding: 40px 0 60px;
  background: #fff;
}

/* Form card */
.vico-reg-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.vico-reg-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8e8e8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Form fields */
.vico-field {
  margin-bottom: 20px;
}
.vico-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.vico-field input[type="text"],
.vico-field input[type="email"],
.vico-field input[type="tel"],
.vico-field input[type="number"],
.vico-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.vico-field input:focus {
  outline: none;
  border-color: #0f3460;
  box-shadow: 0 0 0 3px rgba(15,52,96,0.12);
}
.vico-field .field-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Name row (side by side) */
.vico-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Discount code row */
.vico-discount-row {
  display: flex;
  gap: 8px;
}
.vico-discount-row input {
  flex: 1;
  min-width: 0;
}
.vico-discount-row .btn-apply {
  padding: 10px 20px;
  background: #0f3460;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.vico-discount-row .btn-apply:hover {
  background: #1a1a2e;
}
.vico-discount-row .btn-apply:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.vico-code-feedback {
  font-size: 0.85rem;
  margin-top: 4px;
}
.vico-code-feedback.success {
  color: #27ae60;
}
.vico-code-feedback.error {
  color: #e74c3c;
}

/* Order summary */
.vico-summary {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 28px;
}
.vico-summary h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.vico-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 0.95rem;
  color: #555;
}
.vico-summary-line .label {
  color: #555;
}
.vico-summary-line .value {
  font-weight: 600;
  color: #333;
  text-align: right;
}
.vico-summary-line.discount .label,
.vico-summary-line.discount .value {
  color: #27ae60;
}
.vico-summary hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 10px 0;
}
.vico-summary-line.total {
  padding-top: 8px;
  font-size: 1.1rem;
}
.vico-summary-line.total .label,
.vico-summary-line.total .value {
  font-weight: 700;
  color: #1a1a2e;
}

/* Attendee rows */
.attendee-row {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  position: relative;
}
.attendee-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.attendee-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.remove-attendee-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.remove-attendee-btn:hover {
  color: #e74c3c;
}
.add-ticket-btn {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 2px dashed #ccc;
  border-radius: 8px;
  color: #0f3460;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
  font-family: inherit;
}
.add-ticket-btn:hover {
  border-color: #0f3460;
  background: #f0f4f8;
}
.add-ticket-btn i {
  margin-right: 6px;
}

/* Ticket type select */
.ticket-type-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.ticket-type-select:focus {
  outline: none;
  border-color: #0f3460;
  box-shadow: 0 0 0 3px rgba(15,52,96,0.12);
}

/* Student note */
.vico-student-note {
  background: #eef6ff;
  border-left: 3px solid #3498db;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #2c3e50;
  margin-top: 16px;
}

/* Remaining tickets warning */
.vico-remaining-warning {
  background: #fff8e1;
  border-left: 3px solid #f39c12;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #856404;
  margin-bottom: 24px;
}

/* Non-field errors */
.vico-form-error {
  background: #fdf0ef;
  border-left: 3px solid #e74c3c;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #c0392b;
  margin-bottom: 20px;
}
.vico-form-error .close-btn {
  float: right;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #c0392b;
  line-height: 1;
  padding: 0;
}

/* Payment buttons */
.vico-pay-buttons {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.vico-pay-btn {
  flex: 1;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  border: 2px solid transparent;
  font-family: inherit;
}
.vico-pay-btn.primary {
  background: #0f3460;
  color: #fff;
  border-color: #0f3460;
}
.vico-pay-btn.primary:hover {
  background: #1a1a2e;
  border-color: #1a1a2e;
}
.vico-pay-btn.secondary {
  background: #fff;
  color: #0f3460;
  border-color: #0f3460;
}
.vico-pay-btn.secondary:hover {
  background: #0f3460;
  color: #fff;
}
.vico-pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Sold out */
.vico-sold-out {
  text-align: center;
  padding: 48px 24px;
  background: #fdf0ef;
  border-radius: 8px;
  border: 1px solid #f5c6cb;
}
.vico-sold-out h2 {
  color: #c0392b;
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.vico-sold-out p {
  color: #666;
  margin: 0;
}

/* Sticky summary on desktop */
@media (min-width: 992px) {
  .vico-summary-col {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

/* Mobile responsive */
@media (max-width: 767px) {
  .vico-reg-hero {
    padding: 100px 0 32px;
  }
  .vico-name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .vico-pay-buttons {
    flex-direction: column;
  }
  .vico-reg-card {
    padding: 24px 20px;
  }
  .vico-summary {
    padding: 24px 20px;
    margin-top: 24px;
  }
}
