.hero { 
  padding: var(--space-12) 0 var(--space-8); 
  text-align: center; 

  h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
  }
}

.subtitle { 
  font-size: 1.125rem; 
  color: var(--color-text-muted); 
  max-width: 600px; 
  margin: 0 auto; 
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-8);
  align-items: start;
  margin-bottom: var(--space-12);

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.card-header-simple {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  
  h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  
  @media(min-width: 768px) {
    flex-direction: row;
    & > * { flex: 1; }
  }

  &.no-margin {
    margin-bottom: 0;
  }

  &.three-cols {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: var(--space-4);
    
    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }

  app-input {
    width: 100%;
  }
}

/* User Type Selector - Matching Contact Form Style */
.user-type-selector {
  display: flex;
  background-color: var(--color-neutral-100);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-4);
  gap: 4px;
  width: 100%;
  max-width: 400px;
}

.type-option {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
  user-select: none;
  
  &:hover { color: var(--color-text); }
  
  &.selected {
    background-color: var(--color-brand);
    color: #000;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }
}

.company-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-border);
  margin-bottom: var(--space-4);
}

.shipping-option {
  margin: var(--space-6) 0;
  padding: var(--space-4);
  background: var(--color-neutral-100);
  border-radius: var(--radius-md);
}

/* Custom Checkbox */
.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 36px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  user-select: none;
  color: var(--color-text);

  input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;

    &:checked ~ .checkmark {
      background-color: var(--color-brand);
      border-color: var(--color-brand);
      
      &:after {
        display: block;
      }
    }
  }

  .checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 24px;
    width: 24px;
    background-color: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;

    &:after {
      content: "";
      position: absolute;
      display: none;
      left: 7px;
      top: 3px;
      width: 6px;
      height: 12px;
      border: solid #000;
      border-width: 0 2.5px 2.5px 0;
      transform: rotate(45deg);
    }
  }

  &:hover input ~ .checkmark {
    border-color: var(--color-brand);
  }
}

.checkout-summary-section {
  position: relative;
}

.sticky-card {
  position: sticky;
  top: var(--space-6);
}

.summary-items {
  margin-bottom: var(--space-6);
  max-height: 450px;
  overflow-y: auto;
  padding-right: var(--space-2);

  &::-webkit-scrollbar {
    width: 4px;
  }
  &::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
  }
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);

  &:first-child { padding-top: 0; }
  &:last-child { border-bottom: none; }

  .item-details {
    flex: 1;
    
    .item-name {
      display: block;
      font-weight: 600;
      font-size: 0.95rem;
      margin-bottom: var(--space-1);
      word-break: break-all;
      color: var(--color-text);
    }

    .item-specs {
      display: flex;
      align-items: center;
      gap: var(--space-2);
      font-size: 0.85rem;
      color: var(--color-text-muted);
      
      .color-dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        display: inline-block;
        border: 1px solid var(--color-border);
      }
    }
    
    .item-specs-sub {
      font-size: 0.8rem;
       color: var(--color-text-muted);
       margin-top: 2px;
    }
  }

  .item-price {
    font-weight: 600;
    margin-left: var(--space-3);
    white-space: nowrap;
    color: var(--color-text);
  }
}

.summary-totals {
  background: var(--color-neutral-100);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);

  .total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
    font-size: 0.95rem;
    color: var(--color-text-muted);
  }

  .grand-total-row {
    display: flex;
    justify-content: space-between;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 2px solid var(--color-border);
  }
}

.actions {
  margin-top: var(--space-8);
  
  app-button {
    width: 100%;
  }
}

.error-message {
  color: var(--color-error);
  background: #fef2f2;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  border: 1px solid #fee2e2;
  font-weight: 500;
}

.mb-6 { margin-bottom: var(--space-6); }

