/**
 * ExpoHeritage Tickets - Public Styles
 */

/* Reset */
.expoheritage-registration-wrapper *,
.expoheritage-success-wrapper * {
  box-sizing: border-box;
}

/* Registration Wrapper */
.expoheritage-registration-wrapper > * {
  font-family: "Montserrat" !important;
}
.expoheritage-registration-wrapper {
  margin: 0 auto;
  padding: 30px 20px;
}

/* Page Title */
.expoheritage-page-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #c41e3a;
  margin: 0 0 30px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Event Card */
.expoheritage-event-card {
  background: #ffffff;
  border: 3px solid #c41e3a;
  border-radius: 12px;
  margin-bottom: 30px;
  overflow: hidden;
}

.event-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  gap: 20px;
}

.event-info {
  flex: 1;
}

.event-info .event-name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.event-info .event-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.event-info .event-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #333;
  margin: 0 0 12px 0;
}

.event-info .icon-calendar {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.event-info .event-badge {
  display: inline-block;
  background: #28a745;
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-logo {
  flex-shrink: 0;
}

.event-logo img {
  max-width: 280px;
  max-height: 80px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .event-card-content {
    flex-direction: column;
    text-align: center;
  }

  .event-info .event-date {
    justify-content: center;
  }

  .event-logo {
    order: -1;
  }
}

/* Form Container */
.expoheritage-form-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Form */
.expoheritage-form {
  padding: 30px;
}

/* Form Row */
.expoheritage-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .expoheritage-form-row {
    grid-template-columns: 1fr;
  }
}

/* Form Group */
.expoheritage-form-group {
  margin-bottom: 20px;
}

.expoheritage-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.expoheritage-form-group label .required {
  color: #c41e3a;
  margin-left: 2px;
}

/* Input Fields */
.expoheritage-form-group input[type="text"],
.expoheritage-form-group input[type="email"],
.expoheritage-form-group input[type="tel"],
.expoheritage-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fff;
  color: #333;
}

.expoheritage-form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.expoheritage-form-group input:focus,
.expoheritage-form-group select:focus {
  outline: none;
  border-color: #c41e3a;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.expoheritage-form-group input.error,
.expoheritage-form-group select.error {
  border-color: #dc3545;
}

.expoheritage-form-group input.error:focus,
.expoheritage-form-group select.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Field Hint */
.field-hint {
  font-size: 12px;
  color: #888;
  margin: 6px 0 0 0;
  line-height: 1.4;
}

/* Field Notice */
.field-notice {
  font-size: 12px;
  color: #c41e3a;
  margin: 6px 0 0 0;
  line-height: 1.4;
  font-weight: 500;
}

/* Error Text */
.expoheritage-error-text {
  display: block;
  color: #dc3545;
  font-size: 13px;
  margin-top: 4px;
  min-height: 18px;
}

/* Checkbox Group */
.expoheritage-checkbox-group {
  margin-top: 20px;
  margin-bottom: 16px;
}

.expoheritage-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: normal;
  position: relative;
  padding-left: 32px;
}

.expoheritage-checkbox-label input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: #c41e3a;
}

.expoheritage-checkbox-label .checkmark {
  display: none;
}

.expoheritage-checkbox-label .label-text {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.expoheritage-checkbox-label .label-text a {
  color: #c41e3a;
  text-decoration: none;
  font-weight: 500;
}

.expoheritage-checkbox-label .label-text a:hover {
  text-decoration: underline;
}

/* Form Actions */
.expoheritage-form-actions {
  margin-top: 30px;
}

.expoheritage-submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: #c41e3a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.expoheritage-submit-btn:hover {
  background: #a01830;
}

.expoheritage-submit-btn:active {
  transform: scale(0.98);
}

.expoheritage-submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
}

.expoheritage-submit-btn .btn-loader {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expoheritage-submit-btn .spinner {
  width: 20px;
  height: 20px;
}

/* Form Message */
.expoheritage-form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.expoheritage-form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.expoheritage-form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Exhibitor Fields Section */
.expoheritage-exhibitor-fields {
  background: #fff8e1;
  border: 1px solid #ffecb3;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.expoheritage-exhibitor-fields .expoheritage-form-group {
  margin-bottom: 16px;
}

.expoheritage-exhibitor-fields .expoheritage-form-group:last-child {
  margin-bottom: 0;
}

.expoheritage-exhibitor-fields .expoheritage-form-row .expoheritage-form-group {
  margin-bottom: 0;
}

/* Success Page */
.expoheritage-success-wrapper {
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.expoheritage-success-container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  color: #28a745;
}

.success-icon svg {
  width: 100%;
  height: 100%;
  animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.expoheritage-success-container h2 {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.success-message {
  color: #666;
  margin-bottom: 24px;
  font-size: 16px;
}

.pnr-display {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.pnr-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.pnr-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #c41e3a;
}

.email-notice {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.expoheritage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.expoheritage-btn.primary:hover {
  background: #a01830;
}

.expoheritage-btn.secondary {
  background: #f8f9fa;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
}

.expoheritage-btn.secondary:hover {
  background: #e9ecef;
}

/* Error Message */
.expoheritage-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
}

/* Registration Type Badge - For Header */
.registration-type-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 12px;
}

.registration-type-visitor {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.registration-type-exhibitor {
  background: #ff9800;
  color: white;
}

/* Ticket Page Styles */
.expoheritage-ticket-wrapper {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.expoheritage-ticket-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.ticket-header {
  background: #c41e3a;
  color: white;
  padding: 24px;
  text-align: center;
}

.ticket-header h1 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
}

.ticket-header .event-date {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.ticket-body {
  padding: 30px;
  text-align: center;
}

.ticket-qr {
  margin-bottom: 24px;
}

.ticket-qr img {
  max-width: 200px;
  height: auto;
}

.ticket-pnr {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.ticket-pnr-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.ticket-pnr-number {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c41e3a;
}

.ticket-attendee {
  margin-bottom: 24px;
}

.ticket-attendee-name {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.ticket-attendee-info {
  font-size: 14px;
  color: #666;
}

.ticket-type-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticket-type-visitor {
  background: #e3f2fd;
  color: #1976d2;
}

.ticket-type-exhibitor {
  background: #fff3e0;
  color: #f57c00;
}

.ticket-actions {
  padding: 20px 30px 30px;
  text-align: center;
}

.ticket-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: #c41e3a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.ticket-print-btn:hover {
  background: #a01830;
}

.ticket-print-btn svg {
  width: 20px;
  height: 20px;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }

  .expoheritage-ticket-wrapper,
  .expoheritage-ticket-wrapper * {
    visibility: visible;
  }

  .expoheritage-ticket-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .expoheritage-ticket-container {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .ticket-actions {
    display: none;
  }
}
