/**
 * SCAD Conference Registration Page Styles
 */

.conference-registration-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header Section */
.conference-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.conference-header h2:first-of-type {
  color: #00263a;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.conference-header h2:nth-of-type(2) {
  color: #008c95;
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.conference-theme {
  font-style: italic;
  color: #666;
  font-size: 1.2rem;
}

/* Introduction Section */
.intro-section {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.intro-section p {
  margin: 0;
  line-height: 1.6;
}

/* Pricing Table */
.pricing-section {
  margin-bottom: 3rem;
}

#conf-price-list {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#conf-price-list th {
  background: #00263a;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: bold;
}

#conf-price-list td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

#conf-price-list tbody tr:hover {
  background: #f9f9f9;
}

/* Price styling based on tier */
#conf-price-list .current-price {
  color: #008c95;
  font-weight: bold;
  font-size: 1.1em;
}

#conf-price-list .future-price {
  color: #d0d3d8;
}

#conf-price-list .past-price {
  color: #999;
  text-decoration: line-through;
}

.membership-note {
  font-style: italic;
  color: #666;
  margin-top: 1rem;
}

/* Registration Form Section */
.registration-form-section {
  background: white;
  border: 2px solid #008c95;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 3rem;
}

.registration-form-section h2 {
  color: #00263a;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

/* Form Elements */
.scad-conference-registration-form .form-item {
  margin-bottom: 1.5rem;
}

.scad-conference-registration-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #00263a;
}

.scad-conference-registration-form select {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* Registration Cards Layout */
.registration-cards-container {
  margin-top: 2rem;
}

fieldset.registration-cards-radios,
.registration-cards-radios {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  border: none !important;
  padding: 0 !important;
}

fieldset.registration-cards-radios legend {
  width: 100%;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Hide default radio buttons when cards are enabled */
.registration-cards-enabled input[type="radio"].form-radio,
.registration-cards-enabled .form-radio {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.registration-cards-enabled .form-item-registration-category .form-item label {
  display: none !important;
}

/* Grid layout for the radios container */
.card-selector-processed {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Registration Card Styles */
.registration-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.125rem 1.5rem; /* Reduced top/bottom padding by 25% */
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.registration-card:hover {
  border-color: #008c95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 140, 149, 0.15);
}

.registration-card.selected {
  border-color: #008c95;
  background: linear-gradient(to bottom, #f0f8f9 0%, white 100%);
  box-shadow: 0 4px 12px rgba(0, 140, 149, 0.2);
}

/* Card Header */
.card-header {
  margin-bottom: 1.125rem; /* Reduced by 25% */
  padding-bottom: 0.75rem; /* Reduced by 25% */
  border-bottom: 2px solid #f0f0f0;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #00263a;
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: #008c95;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pricing Tiers */
.card-pricing {
  margin-bottom: 1.5rem;
}

.price-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0; /* Reduced from 0.625rem (10px) to 0.25rem (4px) for 8px total gap */
  font-size: 0.95rem;
  position: relative;
}

.price-tier + .price-tier {
  border-top: 1px solid #f5f5f5;
}

/* Inactive (future) tiers - very muted */
.price-tier.inactive {
  opacity: 0.5;
}

.price-tier.inactive .tier-label {
  font-weight: 400;
  color: #b0b0b0;
  font-size: 0.85rem;
}

.price-tier.inactive .tier-price {
  font-weight: 400;
  color: #b0b0b0;
  font-size: 0.85rem;
}

/* Date indicator for future tiers */
.tier-date {
  display: inline-block;
  margin: 0 0.5rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  font-weight: 500;
  font-variant: small-caps;
}

/* Active pricing tier */
.price-tier.active {
  background: #e8f5f6;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.price-tier.active .tier-label {
  color: #00263a;
  font-weight: 600;
}

.price-tier.active .tier-price {
  color: #008c95;
  font-size: 1.1rem;
}

.price-tier.active::after {
  content: '✓';
  color: #008c95;
  font-weight: bold;
  margin-left: 0.5rem;
}

/* Selection Indicator */
.card-select-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.registration-card.selected .card-select-indicator {
  background: #008c95;
  border-color: #008c95;
}

.registration-card.selected .card-select-indicator::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* Card Button */
.card-button {
  width: 100%;
  padding: 0.75rem;
  background: white;
  border: 2px solid #008c95;
  color: #008c95;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.registration-card:hover .card-button {
  background: #008c95;
  color: white;
}

.registration-card.selected .card-button {
  background: #008c95;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .registration-cards-radios {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .registration-cards-radios {
    grid-template-columns: 1fr;
  }
  
  .registration-card {
    margin-bottom: 0;
  }
}

/* Details/Accordion sections */
.scad-conference-registration-form details {
  margin: 1.5rem 0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem;
  background: #f9f9f9;
}

.scad-conference-registration-form details summary {
  cursor: pointer;
  font-weight: bold;
  color: #00263a;
  padding: 0.5rem;
  margin: -0.5rem;
}

.scad-conference-registration-form details[open] summary {
  margin-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

/* Submit Button */
.scad-conference-registration-form .form-actions {
  margin-top: 2rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.scad-conference-registration-form .button--primary {
  background: #008c95;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.scad-conference-registration-form .button--primary:hover {
  background: #006a71;
}

/* Responsive Design */
@media (max-width: 768px) {
  .conference-registration-page {
    padding: 1rem;
  }
  
  .conference-header h1 {
    font-size: 2rem;
  }
  
  .conference-header h2 {
    font-size: 1.2rem;
  }
  
  #conf-price-list {
    font-size: 0.9rem;
  }
  
  #conf-price-list th,
  #conf-price-list td {
    padding: 0.5rem;
  }
  
  .registration-form-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  #conf-price-list {
    font-size: 0.8rem;
  }
  
  #conf-price-list th,
  #conf-price-list td {
    padding: 0.25rem;
  }
}