/* ==============================
   CHECKOUT LAYOUT
============================== */

.checkout-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* ==============================
   CHECKOUT STEPS
============================== */

.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
}

.checkout-steps .step {
  flex: 1;
  text-align: center;
  position: relative;
}

.checkout-steps .step::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.checkout-steps .step:last-child::after {
  display: none;
}

.step-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1;
  position: relative;
}

.step.completed .step-icon,
.step.active .step-icon {
  background: var(--primary-green);
  color: #fff;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==============================
   CHECKOUT FORM
============================== */

.checkout-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.form-section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* FORM GRID */
.form-row {
  display: flex;
  gap: 1rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: block;
}

/* ==============================
   PAYMENT METHODS
============================== */

.payment-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method + .payment-method {
  margin-top: 1rem;
}

.payment-method:hover {
  border-color: var(--primary-green);
}

.payment-method.selected {
  border-color: var(--primary-green);
  background: rgba(0, 128, 0, 0.05);
}

.payment-radio input {
  cursor: pointer;
}

.payment-icon {
  font-size: 1.4rem;
  color: var(--primary-green);
}

.payment-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.payment-desc {
  font-size: 0.8rem;
  color: #6b7280;
}

/* PAYMENT DETAILS */
.payment-details {
  display: none;
  margin-top: 1.25rem;
}

.payment-details.active {
  display: block;
}

/* ==============================
   ORDER SUMMARY
============================== */

.checkout-summary {
  background: #fff;
  padding: 1.75rem;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  position: sticky;
  top: 90px;
}

.summary-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ORDER ITEMS */
.order-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.order-item-image img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.order-item-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.order-item-price {
  font-size: 0.8rem;
  color: #6b7280;
}

/* SUMMARY TOTALS */
.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.summary-total {
  font-weight: 700;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* PLACE ORDER */
.btn-place-order {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem;
  border-radius: 6px;
  border:none;
  font-weight: 600;
  background-color: #05694b;
  color:#ffffff;
}

/* SECURE NOTE */
.secure-checkout {
  margin-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
  color: #0f5a44;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 768px) {
  .checkout-steps {
    flex-direction: column;
  }

  .checkout-steps .step::after {
    display: none;
  }

  .form-row {
    flex-direction: column;
  }

  .checkout-summary {
    position: static;
    margin-top: 2rem;
  }
}
