/* ==========================================================================
   Food Daddy - Checkout Page Styles (checkout.css)
   Matches Exact Mockup Design
   ========================================================================== */

/* ---------------- Hero Section ---------------- */
.checkout-hero-section {
  position: relative;
  min-height: 440px;
  padding: 135px 0 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #faf5ee;
  border-bottom: 1px solid #f2e9dc;
}

.checkout-hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.checkout-hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.checkout-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(250, 245, 238, 0.95) 0%,
    rgba(250, 245, 238, 0.82) 38%,
    rgba(250, 245, 238, 0.35) 65%,
    rgba(250, 245, 238, 0.05) 85%
  );
  pointer-events: none;
}

.checkout-hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.checkout-hero-content {
  flex: 1;
  max-width: 580px;
  z-index: 2;
}

.checkout-breadcrumbs {
  font-size: 0.92rem;
  color: #9c958a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.checkout-breadcrumbs a {
  color: #555;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.checkout-breadcrumbs a:hover {
  color: #c67c26;
  text-decoration: underline;
}

.checkout-breadcrumbs .sep {
  color: #bbb;
  font-size: 0.85rem;
}

.checkout-breadcrumbs .current {
  color: #c67c26;
  font-weight: 700;
}

.checkout-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 4.4vw, 3.6rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.15;
  margin: 0 0 10px;
}

.checkout-hero-desc {
  font-size: 1.05rem;
  color: #68645e;
  line-height: 1.5;
  margin: 0;
}

.checkout-hero-visual {
  flex: 1;
  max-width: 440px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.checkout-hero-img {
  max-width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08));
}

/* ---------------- Main Checkout Section ---------------- */
.checkout-main-section {
  background-color: #fdfbf9;
  padding: 40px 0 70px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 32px;
  align-items: start;
}

/* ---------------- Left: Checkout Steps ---------------- */
.checkout-steps-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.checkout-step {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eee7dd;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  padding: 24px 28px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c67c26;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(198, 124, 38, 0.3);
}

.step-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.step-optional {
  font-size: 0.95rem;
  color: #888;
  font-weight: 500;
}

/* Step 1: Order Type Option Card */
.order-type-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #fcfbf9;
  border: 1.5px solid #c67c26;
  border-radius: 12px;
  padding: 18px 20px;
  background: #fdfaf5;
}

.order-type-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.custom-radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c67c26;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-radio-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c67c26;
}

.order-type-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8e6c9;
  flex-shrink: 0;
}

.order-type-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1b5e20;
  margin: 0 0 3px;
}

.order-type-text p {
  font-size: 0.84rem;
  color: #555;
  margin: 0;
  line-height: 1.35;
}

.takeaway-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #eaf6ec;
  color: #2e7d32;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #c8e6c9;
  flex-shrink: 0;
}

/* Step 2: Form Fields */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 7px;
}

.form-label .req {
  color: #d32f2f;
  margin-left: 2px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #9c958a;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border: 1.5px solid #dfd8cc;
  border-radius: 10px;
  font-size: 0.94rem;
  color: #1a1a1a;
  background-color: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  border-color: #c67c26;
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 124, 38, 0.12);
}

.form-input::placeholder {
  color: #aaa;
}

.toggle-pwd-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.toggle-pwd-btn:hover {
  color: #333;
}

.login-hint {
  font-size: 0.83rem;
  color: #777;
  margin-top: 6px;
}

.login-hint a {
  color: #c67c26;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Step 3: Order Notes */
.notes-input-wrap {
  position: relative;
}

.notes-input-wrap .textarea-icon {
  position: absolute;
  left: 14px;
  top: 15px;
  color: #9c958a;
}

.form-textarea {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border: 1.5px solid #dfd8cc;
  border-radius: 10px;
  font-size: 0.94rem;
  color: #1a1a1a;
  background-color: #ffffff;
  min-height: 90px;
  resize: vertical;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-textarea:focus {
  border-color: #c67c26;
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 124, 38, 0.12);
}

.form-textarea::placeholder {
  color: #aaa;
}

/* Step 4: Payment Methods */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.payment-card {
  border: 1.5px solid #dfd8cc;
  border-radius: 12px;
  padding: 18px 14px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.payment-card:hover {
  border-color: #c67c26;
  background-color: #faf7f2;
}

.payment-card.active {
  border-color: #c67c26;
  background-color: #fdfaf5;
  box-shadow: 0 4px 14px rgba(198, 124, 38, 0.12);
}

.payment-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #bbb;
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.payment-card.active .payment-radio-circle {
  border-color: #c67c26;
}

.payment-card.active .payment-radio-circle::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c67c26;
}

.payment-icon-box {
  margin: 12px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  color: #333;
}

.payment-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 3px;
}

.payment-subtitle {
  font-size: 0.76rem;
  color: #777;
  margin: 0;
  line-height: 1.3;
}

.payment-security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px;
  background: #fbf9f6;
  border-radius: 8px;
  font-size: 0.84rem;
  color: #68645e;
}

.payment-security-notice .lock-icon {
  color: #c67c26;
}

/* Bottom Action */
.checkout-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 10px;
}

/* ---------------- Right: Order Summary Sidebar ---------------- */
.checkout-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-summary-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eee7dd;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 26px 24px;
}

.checkout-summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.checkout-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fdf5ea;
  color: #c67c26;
}

/* Compact summary items list */
.summary-items-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.summary-item-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4ede3;
  flex-shrink: 0;
  border: 1px solid #ede8e0;
}

.summary-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-item-meta {
  flex: 1;
  min-width: 0;
}

.summary-item-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-item-qty {
  font-size: 0.82rem;
  color: #777;
  margin: 0;
}

.summary-item-price {
  font-size: 0.98rem;
  font-weight: 800;
  color: #c67c26;
  white-space: nowrap;
}

/* Breakdown rows */
.summary-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #68645e;
}

.summary-breakdown-row strong {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.98rem;
}

.summary-divider {
  height: 1px;
  background: #f0eae1;
  margin: 16px 0;
}

.summary-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.summary-total-label {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a1a;
}

.summary-total-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #c67c26;
}

/* Place Order CTA Button */
.btn-place-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #c67c26;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(198, 124, 38, 0.28);
}

.btn-place-order:hover {
  background: #af6a1b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 124, 38, 0.38);
}

.secure-payment-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #68645e;
  font-weight: 600;
}

.secure-payment-badge svg {
  color: #c67c26;
}

/* Take Away Only Side Card */
.takeaway-side-card {
  background-color: #f0f8f2;
  border: 1px solid #d9edd7;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.takeaway-side-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.takeaway-side-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8e6c9;
  flex-shrink: 0;
}

.takeaway-side-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1b5e20;
  margin: 0;
}

.takeaway-side-text {
  font-size: 0.86rem;
  color: #436946;
  line-height: 1.45;
  margin: 0;
}

/* Decorative Basil Accent */
.checkout-leaves-accent-wrap {
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-top: 10px;
  width: 100%;
}

.checkout-leaves-accent-img {
  width: 100%;
  max-width: 330px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.03));
  transition: transform 0.3s ease;
}

.checkout-leaves-accent-img:hover {
  transform: scale(1.02);
}

/* ---------------- Responsive Styles ---------------- */
@media (max-width: 991px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .checkout-hero-container {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }

  .checkout-hero-visual {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .order-type-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .takeaway-pill {
    align-self: flex-start;
  }

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