/* Checkout Modal Styles */

/* Hide checkbox */
.checkout-modal-toggle {
  display: none;
}

/* CTA Button */
.checkout-cta-button {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  font-size: 1.125rem;
  font-weight: 700;
  width: 100%;
  max-width: 700px;
  height: 58.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.checkout-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.checkout-cta-button:active {
  transform: translateY(0);
}

/* Modal backdrop - hidden by default */
.checkout-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

/* Show modal when checkbox is checked */
.checkout-modal-toggle:checked ~ .checkout-modal-backdrop {
  display: flex;
}

.checkout-modal {
  background: white;
  border-radius: 0;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.checkout-modal-close {
  position: absolute;
  top: 8px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 10;
}

.checkout-modal-close:hover {
  color: #000;
}

.checkout-progress-bar {
  width: 100%;
  height: 40px;
  background: #e5e7eb;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-progress-fill {
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #fde68a,
    #fde68a 15px,
    #fbbf24 15px,
    #fbbf24 30px
  );
  background-size: 42.43px 42.43px;
  animation: progress-stripes 1s linear infinite;
  transition: width 0.5s ease;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes progress-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 42.43px 0;
  }
}

.checkout-progress-text {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1rem;
  color: #000;
}

.checkout-modal-title {
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 32px 40px 24px 40px;
  color: #1a1a1a;
  line-height: 1.3;
}

.checkout-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 40px;
  border: none;
  border-bottom: 3px solid transparent;
}

.checkout-step:first-child {
  border-right: 1px solid #e5e7eb;
}

.checkout-step-active {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

.checkout-step-inactive {
  background: #f9fafb;
}

.checkout-step-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #1a1a1a;
  flex-shrink: 0;
}

.checkout-step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.checkout-step-subtitle {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.3;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 40px 40px 40px;
}

.checkout-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

.checkout-form-input {
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.checkout-form-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.checkout-form-input::placeholder {
  color: #9ca3af;
}

.checkout-submit-button {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.checkout-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.checkout-submit-button:active {
  transform: translateY(0);
}

.checkout-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.checkout-submit-button:disabled:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .checkout-modal {
    max-height: 95vh;
  }

  .checkout-modal-title {
    font-size: 1.25rem;
    padding: 24px 24px 16px 24px;
  }

  .checkout-steps {
    grid-template-columns: 1fr;
  }

  .checkout-step {
    padding: 16px 24px;
  }

  .checkout-step:first-child {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .checkout-step-number {
    font-size: 2rem;
  }

  .checkout-step-title {
    font-size: 1rem;
  }

  .checkout-step-subtitle {
    font-size: 0.75rem;
  }

  .checkout-form {
    padding: 24px;
  }

  .checkout-submit-button {
    font-size: 1rem;
    padding: 14px 24px;
  }
}
