/* ==========================================================================
   TCC - Premium Payment Page Styles & Interactive Card Preview
   ========================================================================== */

.payment-layout {
  min-height: 100vh;
  background-color: #f1f5f9;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.payment-main {
  flex: 1;
  width: 100%;
  padding-bottom: 60px;
}

/* Announcement Notice Marquee */
.notice-bar {
  width: 100%;
  background: #fff8e6;
  color: #92400e;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  border-bottom: 1px solid #fde68a;
  margin-top: 106px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.notice-content {
  display: inline-block;
  animation: marqueeScroll 26s linear infinite;
  padding-left: 100%;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Main Banner for Payment */
.payment-banner {
  width: 100%;
  max-width: 1100px;
  margin: 18px auto;
  padding: 0 16px;
}

.payment-banner-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.payment-banner-inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Payment Container */
.payment-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.checkout-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.checkout-header {
  border-bottom: 1.5px solid #f1f5f9;
  padding-bottom: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.checkout-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.checkout-header p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.45;
}

/* Order Summary Box */
.order-summary-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 20px 22px;
  border: 1.5px solid #e2e8f0;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.order-summary-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-red);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #475569;
  margin-bottom: 10px;
}

.summary-row:last-child {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1.5px dashed #cbd5e1;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.summary-row .price-tag {
  color: var(--primary-red);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* ==========================================================================
   Interactive Credit Card Live Preview
   ========================================================================== */
.card-preview-wrapper {
  margin-bottom: 28px;
  perspective: 1000px;
}

.card-preview {
  width: 100%;
  max-width: 420px;
  height: 240px;
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
  color: #ffffff;
  padding: 24px 26px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.card-preview:hover {
  transform: translateY(-3px) rotateX(2deg);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.45);
}

/* Subtle card glare shine */
.card-preview::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.card-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.card-chip {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #ffd700 0%, #cca01d 50%, #ffe680 100%);
  border-radius: 6px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.card-chip::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.card-chip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
}

.card-wifi-icon {
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
}

.card-preview-brand-logo {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card-preview-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  margin: 12px 0 8px;
}

.card-preview-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}

.card-preview-holder, .card-preview-exp {
  display: flex;
  flex-direction: column;
}

.card-label-small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.card-val-text {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Payment Methods Icons Row
   ========================================================================== */
.card-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.card-logos-row img {
  height: 24px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}

.card-logos-row img:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* ==========================================================================
   Polished Form Fields
   ========================================================================== */
.payment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s;
}

.input-icon-left svg {
  width: 19px;
  height: 19px;
}

.form-input, .form-select {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.form-input:hover, .form-select:hover {
  border-color: #94a3b8;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary-red);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(215, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.input-container:focus-within .input-icon-left {
  color: var(--primary-red);
}

.input-brand-badge {
  position: absolute;
  right: 14px;
  height: 24px;
  width: auto;
  pointer-events: none;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  padding: 2px 4px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Custom Select Dropdown */
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 42px;
}

/* CTA Pay Button */
.btn-pay-now {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #d70000 0%, #b80000 100%);
  color: #ffffff;
  border-radius: 14px;
  font-size: 16.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(215, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  letter-spacing: 0.2px;
}

.btn-pay-now:hover {
  background: linear-gradient(135deg, #b80000 0%, #9c0000 100%);
  box-shadow: 0 12px 28px rgba(215, 0, 0, 0.45);
  transform: translateY(-2px);
}

.btn-pay-now:active {
  transform: translateY(0);
}

.btn-pay-now svg {
  width: 20px;
  height: 20px;
}

/* Security Trust Badges Footer */
.security-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
}

.security-footer-badges svg {
  width: 18px;
  height: 18px;
  color: #059669;
  flex-shrink: 0;
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
  .notice-bar {
    margin-top: 85px;
    font-size: 12.5px;
  }

  .payment-container {
    padding: 0 12px;
  }

  .checkout-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .checkout-header h1 {
    font-size: 20px;
  }

  .card-preview {
    height: 200px;
    padding: 18px 20px;
    border-radius: 16px;
  }

  .card-chip {
    width: 36px;
    height: 26px;
  }

  .card-preview-number {
    font-size: 17px;
    letter-spacing: 1.5px;
  }

  .card-val-text {
    font-size: 12px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-input, .form-select {
    height: 48px;
    font-size: 14px;
  }

  .btn-pay-now {
    height: 50px;
    font-size: 15px;
  }
}
