/* ---------------------------------------------------
   Manual Input Cleanup
--------------------------------------------------- */
.mp-form-row.mepr_bold.mepr_price,
.page-id-7381 a.have-coupon-link,
.page-id-7381 .mepr_spacer {
  display: none !important;
}
a.have-coupon-link {
  display: none !important;
}
/* ---------------------------------------------------
   Base Checkout Layout
--------------------------------------------------- */
.ama-premium-checkout {
  font-family: "Inter", sans-serif;
  color: #1a1a1a;
  margin: 40px auto;
  max-width: 1200px;
}

.ama-checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .ama-checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------
   Left Section (Billing)
--------------------------------------------------- */
.ama-checkout-left {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.ama-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1f1f1f;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------------------------
   Form Inputs
--------------------------------------------------- */
.ama-mepr-form input,
.ama-mepr-form select {
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  transition: 0.2s;
  font-size: 15px;
}

.ama-mepr-form input:focus,
.ama-mepr-form select:focus {
  border-color: #7b61ff;
  box-shadow: 0 0 0 2px rgba(123, 97, 255, 0.15);
  background: #fff;
}

/* Label and icon alignment */
/* Proper icon + label alignment */
.mp-form-label {
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: nowrap;
}

.mp-form-label label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #111827;
  flex-wrap: nowrap;
}

.ama-label-icon {
  width: 16px;
  height: 16px;
  color: #6b7280;
  flex-shrink: 0;
  position: relative;
  top: 0;
  margin-right: 6px;
}
.mp-form-label svg,
.mp-form-label i[data-lucide] {
  display: inline-block;
  vertical-align: middle;
}

/* ---------------------------------------------------
   Error Highlight + Shake
--------------------------------------------------- */
.ama-error-field {
  border: 2px solid #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
  transition: all 0.25s ease;
  background: #fff8f8 !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.shake {
  animation: shake 0.3s ease-in-out;
}

/* Inline error messages */
.cc-error,
.mepr-form-has-errors {
  display: none !important;
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  margin-left: 4px;
}

/* ---------------------------------------------------
   Purchase Button (Complete Purchase)
--------------------------------------------------- */
.mepr-submit {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(90deg, #31009a 0%, #6a0ddb 100%);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
  padding: 16px 0;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(49, 0, 154, 0.25);
  transition: all 0.3s ease;
}

.mepr-submit:hover {
  background: linear-gradient(90deg, #3b0aff 0%, #5c3bff 100%);
  box-shadow: 0 6px 20px rgba(59, 10, 255, 0.25);
  transform: translateY(-1px);
}

.mepr-submit:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(59, 10, 255, 0.2);
}

/* Lucide icon inside button */
.mepr-submit i {
  width: 18px;
  height: 18px;
  color: #fff;
  position: relative;
  top: -1px;
}

/* ---------------------------------------------------
   Right Section (Order Summary)
--------------------------------------------------- */
.ama-summary-card {
  background: #faf8ff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 30px;
}

.ama-heading-right {
  font-size: 20px;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 20px;
}

.ama-plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.plan-title {
  font-weight: 600;
  font-size: 17px;
  color: #111;
}

.plan-desc {
  font-size: 14px;
  color: #6b7280;
}

.plan-badge {
  background: #ede9fe;
  color: #6d28d9;
  border-radius: 9999px;
  font-size: 12px;
  padding: 4px 10px;
  font-weight: 600;
}

.ama-features {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px 0;
}

.ama-features li {
  font-size: 14.5px;
  color: #374151;
  padding: 5px 0;
}

.ama-price-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  margin-top: 10px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  color: #444;
  font-size: 15px;
  margin-bottom: 6px;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #111;
  font-size: 17px;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  margin-top: 10px;
}

.price-total-amount {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

.price-total-text {
  font-size: 13px;
  color: #6b7280;
  text-align: right;
}

.ama-secure-note {
  background: #f4f3ff;
  border: 1px solid #e4e0ff;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: #555;
  margin-top: 18px;
}

.ama-secure-note span {
  color: #777;
}

/* ---------------------------------------------------
   Already Subscribed Notice
--------------------------------------------------- */
.ama-already-box {
  text-align: center;
  background: #faf5ff;
  border: 1px solid #ede9fe;
  border-radius: 12px;
  padding: 40px 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}

.ama-btn-outline {
  display: inline-block;
  border: 2px solid #5b21b6;
  color: #5b21b6;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 8px;
  transition: all 0.3s ease;
}

.ama-btn-outline:hover {
  background: #5b21b6;
  color: #fff;
}

/* ---------------------------------------------------
   Secondary Buttons
--------------------------------------------------- */
.ama-btn-secondary {
  display: inline-block;
  background: linear-gradient(90deg, #5b21b6, #7c3aed);
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ama-btn-secondary:hover {
  opacity: 0.92;
}
/* ------------------------------
   Two-column layout for Name fields
------------------------------ */
.mepr_first_name,
.mepr_last_name {
  width: 100%;
}

.mepr_first_name,
.mepr_last_name {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
}

/* --- Name fields: two columns on desktop, stack on mobile --- */
@media (min-width: 720px) {
  /* Put the two name rows side-by-side */
  .ama-mepr-form .mepr-signup-form .mepr_first_name,
  .ama-mepr-form .mepr-signup-form .mepr_last_name {
    float: left;
    width: calc(50% - 10px) !important; /* strong override */
    box-sizing: border-box;
  }
  .ama-mepr-form .mepr-signup-form .mepr_first_name {
    margin-right: 20px;
  }
  .ama-mepr-form .mepr-signup-form .mepr_last_name {
    margin-right: 0;
  }

  /* Make sure the next row starts below the floats */
  .ama-mepr-form .mepr-signup-form .mepr_mepr-address-one,
  .ama-mepr-form .mepr-signup-form .mepr_last_name + .mp-form-row {
    clear: both;
  }

  /* Keep inputs full width inside the half columns */
  .ama-mepr-form .mepr_first_name input,
  .ama-mepr-form .mepr_last_name input {
    width: 100% !important;
  }
}

/* Mobile: stack normally */
@media (max-width: 719px) {
  .ama-mepr-form .mepr-signup-form .mepr_first_name,
  .ama-mepr-form .mepr-signup-form .mepr_last_name {
    float: none;
    width: 100% !important;
    margin-right: 0;
  }
}

.ama-already-box.modern {
  background: linear-gradient(180deg, #f9f7ff 0%, #f6f3ff 100%);
  border: 1px solid #ede9fe;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.08);
  transition: all 0.3s ease;
}
.ama-already-box.modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(109, 40, 217, 0.12);
}
.ama-already-box.modern .ama-icon {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 12px;
}
.ama-already-box.modern .ama-heading-sm {
  font-size: 20px;
  font-weight: 700;
  color: #1e0b64;
  margin-bottom: 6px;
}
.ama-already-box.modern .ama-already-text {
  color: #4b5563;
  font-size: 15px;
  margin-bottom: 26px;
}
.ama-already-box.modern .ama-already-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.ama-btn-secondary {
  background: linear-gradient(90deg, #4c1d95, #7b61ff);
  color: #fff !important;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 22px;
  transition: all 0.25s ease;
  text-decoration: none;
}
.ama-btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.ama-btn-outline {
  border: 2px solid #4c1d95;
  color: #4c1d95 !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 22px;
  background: transparent;
  transition: all 0.25s ease;
  text-decoration: none;
}
.ama-btn-outline:hover {
  background: #4c1d95;
  color: #fff !important;
}
