body {
  font-family: Arial;
  background: #eef2f7;
  padding: 30px;
  margin: 0;
}

.container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 25px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

label {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-sizing: border-box;
}

.input-group {
  margin-bottom: 15px;
}

.product-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.qty {
  width: 80px;
}

button {
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.addBtn {
  background: #1677ff;
  color: #fff;
}
.removeBtn {
  background: #ff4d4f;
  color: #fff;
}
.payBtn {
  background: #16a34a;
  color: #fff;
  width: 100%;
  font-size: 16px;
}

.total {
  font-size: 26px;
  font-weight: 800;
  color: #1677ff;
  margin: 15px 0;
}

/* CARD UI */
.card-wrap {
  perspective: 1000px;
  height: 240px;
  margin-bottom: 70px;
}

.credit-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: 0.8s;
}

.credit-card.flip {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 90%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  padding: 20px;
  color: white;
  background: linear-gradient(135deg, #0f172a, #2563eb);
}

.card-back {
  transform: rotateY(180deg);
}
.black-strip {
  height: 50px;
  background: #000;
  margin: 20px -20px;
}
.cvv-box {
  background: #fff;
  color: #000;
  padding: 10px;
  border-radius: 8px;
  text-align: right;
}
.card-number-view {
  font-size: 22px;
  letter-spacing: 3px;
  margin: 20px 0;
}

@media (max-width: 720px) {
  .container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: auto;
    gap: 25px;
  }
}

.errorMessages {
  margin-top: 15px;
}

.error-box {
  padding: 12px 15px;
  border-radius: 8px;
  background: #ffe6e6;
  border: 1px solid #ffb3b3;
  color: #b30000;
  font-family: Arial, sans-serif;
  line-height: 1.4;
  margin: 15px 0;
}

.error-box .title {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.error-box .msg {
  font-size: 14px;
}

.loadingScreen {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.loader {
  width: 45px;
  height: 45px;
  border: 4px solid #ddd;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.payment-success-page {
  position: fixed;
  inset: 0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
}

.payment-success-card {
  background: #fff;
  width: 420px;
  max-width: 90%;
  padding: 45px 35px;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.payment-success-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.payment-success-card p {
  margin: 0 0 10px;
  color: #334155;
  font-size: 17px;
}

.payment-success-card small {
  color: #64748b;
}

#discountext {
  font-size: 23px;
  border-radius: 10px;
}

.paymentLinkButton {
  color: #fff;
  width: 100%;
  font-size: 16px;
  text-align: center;
  display: block;
  margin: 15px 0;
  padding: 12px 0;
  border-radius: 12px;
  background: sandybrown;
  cursor: pointer;
}


label.error {
    color: red;
    margin: 10px 0;
    font-size: 12px;
}

.iti__flag-container {
    height: 45px;
}

.iti.iti--allow-dropdown.iti--show-flags.iti--inline-dropdown {
    width: 100%;
}

.input-group input {
    font-size: 15px;
}