/* ACRMT 2026 Registration Styles */

:root {
  /* Primary colors - matching flyer/logo scheme */
  --acrmt-pink: #e91e63;
  --acrmt-pink-dark: #c2185b;
  --acrmt-pink-light: #f8bbd0;
  --acrmt-pink-lighter: #fce4ec;
  
  /* Accent colors */
  --acrmt-purple: #9c27b0;
  --acrmt-purple-light: #e1bee7;
  
  /* Gradient colors */
  --gradient-start: #e91e63;
  --gradient-end: #c2185b;
  --gradient-light-start: rgba(233, 30, 99, 0.1);
  --gradient-light-end: rgba(194, 24, 91, 0.15);
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--gradient-light-start), var(--gradient-light-end));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 1000;
  overflow: hidden;
}

.splash-screen.hidden {
  display: none;
}

/* Shutter Animation */
.splash-screen::before,
.splash-screen::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  z-index: 1001;
}

.splash-screen::before {
  top: 0;
  height: 50%;
  transform-origin: top;
  transform: translateY(0);
}

.splash-screen::after {
  bottom: 0;
  height: 50%;
  transform-origin: bottom;
  transform: translateY(0);
}

.splash-screen.shutter-open::before {
  animation: shutterOpenTop 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.splash-screen.shutter-open::after {
  animation: shutterOpenBottom 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.splash-screen:not(.shutter-open)::before {
  animation: shutterCloseTop 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.splash-screen:not(.shutter-open)::after {
  animation: shutterCloseBottom 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes shutterOpenTop {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

@keyframes shutterOpenBottom {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes shutterCloseTop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes shutterCloseBottom {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

.splash-content {
  max-width: 500px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(233, 30, 99, 0.25);
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 0.6s ease-out 0.4s forwards;
  position: relative;
  z-index: 1002;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.flyer-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
  object-fit: contain;
}

.splash-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Step Sections */
.step-section {
  display: block;
}

.step-section.hidden {
  display: none !important;
}

/* Membership Check */
.membership-check-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

/* Form Sections */
.form-section {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
  border-bottom: none;
}

.section-title {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Category Selection */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.category-card {
  position: relative;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: #ffffff;
}

.category-card:hover {
  border-color: var(--acrmt-pink);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.category-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-card input[type="radio"]:checked + .category-content {
  color: var(--acrmt-pink);
}

.category-card input[type="radio"]:checked ~ .category-content,
.category-card:has(input[type="radio"]:checked) {
  border-color: var(--acrmt-pink);
  background: var(--acrmt-pink-lighter);
}

.category-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.category-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--acrmt-pink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-price .price-member,
.category-price .price-nonmember {
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.2s;
}

.category-price .price-separator {
  opacity: 0.5;
  margin: 0 4px;
}

.category-price .price-note {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.8;
  display: block;
  margin-top: 2px;
}

.info-icon {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.info-icon:hover {
  opacity: 1;
}

.info-card {
  margin-top: 12px;
  padding: 12px;
  background: var(--acrmt-pink-lighter);
  border: 1px solid var(--acrmt-pink-light);
  border-radius: 8px;
  position: relative;
}

.info-card.hidden {
  display: none;
}

.info-card-content h4 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.info-card-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.info-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px 8px;
  line-height: 1;
}

.info-close:hover {
  color: var(--text-primary);
}

/* Security Banner */
.security-banner {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
  border: 2px solid var(--acrmt-pink);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px auto;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

.security-banner p {
  margin: 4px 0;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.security-banner p:first-child {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--acrmt-pink);
}

.security-banner strong {
  color: var(--acrmt-pink);
  font-weight: 600;
}

/* Fee Details Card */
.fee-details-card {
  background: linear-gradient(135deg, var(--gradient-light-start), var(--gradient-light-end));
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  border: 1px solid rgba(233, 30, 99, 0.25);
}

.fee-breakdown {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(236, 72, 153, 0.2);
}

.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.fee-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--acrmt-pink-dark);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid rgba(233, 30, 99, 0.35);
}

.fee-inclusions,
.fee-exclusions {
  margin-top: 16px;
}

.fee-inclusions h4,
.fee-exclusions h4 {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fee-inclusions ul,
.fee-exclusions ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.fee-inclusions {
  background: rgba(16, 185, 129, 0.1);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #10b981;
  margin-top: 12px;
}

.fee-exclusions {
  background: rgba(239, 68, 68, 0.1);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #ef4444;
  margin-top: 12px;
}

/* Radio Groups */
.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Field Groups */
.field-group {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Name fields layout - 3 columns on larger screens, stacked on mobile */
.field-group:has(#firstName),
.field-group:has(#membershipFirstName) {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .field-group:has(#firstName),
  .field-group:has(#membershipFirstName) {
    grid-template-columns: 2fr 1fr 2fr;
  }
}

.readonly-field {
  background-color: var(--acrmt-pink-lighter);
  cursor: not-allowed;
  opacity: 0.8;
}

.field-group.hidden {
  display: none;
}

/* Header Logo */
.header-logo {
  max-width: 120px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
  object-fit: contain;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.45);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f3f4f6;
  color: var(--text-primary);
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover:not(:disabled) {
  background: #e5e7eb;
}

/* Wave Animation for Become Member Only Button */
#becomeMemberOnlyBtn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--acrmt-pink), var(--acrmt-pink-dark)) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35) !important;
  animation: wave 2s ease-in-out infinite;
}

#becomeMemberOnlyBtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: waveRipple 2s ease-out infinite;
}

#becomeMemberOnlyBtn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  animation: waveRipple 2s ease-out infinite 0.5s;
}

#becomeMemberOnlyBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5) !important;
}

@keyframes wave {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(233, 30, 99, 0.45);
  }
}

@keyframes waveRipple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Confirmation */
.icon-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.35);
}

/* Event Title */
.event-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.event-subtitle {
  margin: 4px 0 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Registration Type Badge */
.registration-type-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.registration-type-badge.member {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.2));
  color: #059669;
  border: 1.5px solid rgba(16, 185, 129, 0.3);
}

.registration-type-badge.non-member {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.2));
  color: #dc2626;
  border: 1.5px solid rgba(239, 68, 68, 0.3);
}

.registration-type-badge.membership-only {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(194, 24, 91, 0.2));
  color: var(--acrmt-pink-dark);
  border: 1.5px solid rgba(233, 30, 99, 0.3);
}

/* Helper Text */
.helper-text {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Secure Payment Text */
.secure-payment-text {
  text-align: center;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Custom City Field */
#customCityField {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

#customCityField.hidden {
  display: none;
}

/* Powered By Footer */
.powered-by-footer {
  text-align: center;
  padding: 12px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.powered-by-text {
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.official-partner-text {
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.splash-screen .powered-by-footer {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  padding: 12px 8px;
  z-index: 1003;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  backdrop-filter: blur(4px);
}

.splash-screen .powered-by-text,
.splash-screen .official-partner-text {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.page {
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 60px;
}

.page .powered-by-footer {
  width: 100%;
  max-width: 440px;
  margin: 16px auto 0;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.9), rgba(156, 39, 176, 0.9));
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Card Header Enhancements */
.card__header {
  position: relative;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 40%, rgba(255, 255, 255, 0.95) 60%, rgba(255, 255, 255, 0.8) 80%, transparent 100%);
  padding: 16px 16px 20px 16px;
  margin: -16px -16px 16px -16px;
  border-radius: 28px 28px 0 0;
  z-index: 1;
}

.card__header .header-logo {
  margin-bottom: 12px;
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Enhanced Splash Screen */
.flyer-image {
  border: 2px solid rgba(233, 30, 99, 0.1);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.15);
}

/* Enhanced Form Fields */
.field input:focus,
.field select:focus {
  border-color: var(--acrmt-pink);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.field select {
  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 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.field select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Security Banner */
.security-banner {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
  border: 2px solid var(--acrmt-pink);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px auto;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

.security-banner p {
  margin: 4px 0;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.security-banner p:first-child {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--acrmt-pink);
}

.security-banner strong {
  color: var(--acrmt-pink);
  font-weight: 600;
}

/* Security Warning Banner */
.security-warning {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 16px;
  margin: 16px auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  display: block;
  position: relative;
  z-index: 10;
}

.security-warning p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #856404;
}

.security-warning p:first-child {
  font-size: 1rem;
  font-weight: 600;
  color: #856404;
}

.security-warning strong {
  color: #856404;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 520px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .splash-content {
    padding: 20px;
  }

  .fee-details-card {
    padding: 12px;
  }

  .header-logo {
    max-width: 100px;
  }
}

/* Tablet and iPad styles - Portrait */
@media (min-width: 768px) and (max-width: 1024px) {
  .splash-content {
    padding: 40px;
    max-width: 90%;
    width: 90%;
  }
  
  .flyer-image {
    max-width: 100%;
    width: 100%;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .fee-details-card {
    padding: 28px;
  }
  
  .header-logo {
    max-width: 160px;
  }
  
  .membership-check-form {
    padding: 0;
  }
  
  .form-section {
    padding: 20px 0;
  }
}

/* Larger tablets and iPad - Landscape */
@media (min-width: 1024px) and (max-width: 1366px) {
  .splash-content {
    padding: 50px;
    max-width: 85%;
    width: 85%;
  }
  
  .flyer-image {
    max-width: 100%;
    width: 100%;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .fee-details-card {
    padding: 32px;
  }
  
  .header-logo {
    max-width: 180px;
  }
  
  .membership-check-form {
    padding: 0;
  }
  
  .form-section {
    padding: 24px 0;
  }
}

/* iPad Pro and large tablets */
@media (min-width: 1367px) and (max-width: 1920px) {
  .splash-content {
    padding: 60px;
    max-width: 80%;
    width: 80%;
  }
  
  .flyer-image {
    max-width: 100%;
    width: 100%;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  
  .fee-details-card {
    padding: 36px;
  }
  
  .header-logo {
    max-width: 200px;
  }
}

