/* RESET AND BASE STYLES */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  margin-top: 50px;
  overflow-x: hidden;
}

/* GLOBAL PLACEHOLDER COLOR */
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #fff !important;
  opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
select:-ms-input-placeholder {
  color: #fff !important;
}

input::-ms-input-placeholder,
textarea::-ms-input-placeholder,
select::-ms-input-placeholder {
  color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #fff !important;
}

/* WRAPPER */
.wrapper {
  width: 50%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;
}

/* HEADER */
.header {
  background-color: #111;
  color: #d4af37;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.logo img {
  max-width: 150px;
  height: auto;
}

.logo .highlight {
  width: 50px;
}

.logo .tagline {
  font-size: 12px;
  color: #bbb;
}

.logo {
  text-align: center;
}

/* FORM LAYOUT */
.form-section {
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.form-box {
  flex-direction: column;
  background-color: #1a1a1a;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 20px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  justify-content: space-between;
  gap: 20px;
  border-radius: 10px;
}

.left-column,
.right-column {
  flex: 1 1 48%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 280px;
}

.right-column {
  margin-top: 80px;
}

h3 {
  margin-top: 0;
  color: #d4af37;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

/* FORM CONTROLS */
.form-group {
  display: flex;
  flex-direction: column;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d4af37;
  border-radius: 4px;
  font-size: 14px;
  background-color: #111;
  color: #d4af37;
  margin-bottom: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ffcc00;
  outline: none;
  background-color: #111;
  color: #d4af37;
}

/* ERROR MESSAGE */
.error-message {
  color: #ff6f61;
  font-size: 0.9em;
  margin-top: 5px;
  margin-bottom: 0;
}

/* SMALL TEXT */
.small-text {
  font-size: 17px;
  color: #d4af37;
  margin-top: 5px;
}

/* CARD ICONS */
.card-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.card-icons img {
  height: 60px;
  margin-right: 8px;
}

/* CARD DETAILS INLINE */
.card-details-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.card-details-row .form-group {
  flex: 1 1 100px;
}

/* CITY AND POSTAL CODE */
.city-postal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
  width: 100%;
}

.city-postal-group {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
}

.city-postal-group input,
.city-postal-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d4af37;
  border-radius: 4px;
  font-size: 14px;
  background-color: #111;
  color: #d4af37;
}

/* LABELS */
.label-row {
  display: flex;
  margin-top: 5px;
  font-size: 12px;
  justify-content: space-between;
  color: #ccc;
}

.label-row span {
  display: inline-block;
}

.month-label {
  width: 100px;
}

.year-label {
  width: 120px;
  text-align: center;
}

.cvv-label {
  width: 160px;
  text-align: right;
}

/* BUTTON AND FOOTER */
.form-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

button {
  color: #d4af37;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* AMOUNT FIELD */
.amount-wrapper {
  display: flex;
  align-items: center;
}



.enteramount {
  margin-top: 20px;
  width: 100%;
}

/* HIDE SPIN BUTTONS */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* SELECT2 CUSTOM STYLING */
.select2-container .select2-selection--single {
  height: 40px !important;
  padding: 6px 12px;
  border: 1px solid #d4af37;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background-color: #111;
  color: #d4af37;
}

.select2-container--default .select2-selection--single {
  background-color: #111 !important;
  color: #d4af37 !important;
  border: 1px solid #d4af37 !important;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 16px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #d4af37 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #d4af37 transparent transparent transparent !important;
}

.select2-container--default .select2-results > .select2-results__options {
  background-color: black !important;
  color: #d4af37 !important;
  font-size: 16px;
}

.select2-container--default .select2-results__option {
  background-color: black !important;
  color: #d4af37 !important;
}

.select2-container--default .select2-results__option--highlighted {
  background-color: #d4af37 !important;
  color: black !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  color: #fff !important;
  background-color: #111 !important;
  border: 1px solid #d4af37 !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
  margin-top: -8px !important;  /* Adjust this value as needed */
  position: relative;
  z-index: 10;
}

/* PAY NOW BUTTON */
#payNowBtn {
  background: linear-gradient(135deg, #d4af37, #ffcc00);
  color: black;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.4);
  position: relative;
  overflow: hidden;
}

#payNowBtn:hover {
  background: linear-gradient(135deg, #ffcc00, #d4af37);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.6);
}
.row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .col {
      flex: 1 1 48%;
      display: flex;
      flex-direction: column;
      position: relative;
    }
/* LOADING OVERLAY */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #d4af37;
  display: none;
}

.spinner {
  border: 6px solid #333;
  border-top: 6px solid #d4af37;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.8s linear infinite;
  margin-right: 15px;
}

/* CARD PREVIEW */
.card-preview {
  margin-top: 30px;
  perspective: 1000px;
}
.card-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 30px auto 0 auto;
  text-align: center;
}

.card {
  margin: 0 auto;
}

.card {
  width: 320px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.card.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-front {
  background: linear-gradient(135deg, #d4af37, #222);
  color: #fff;
  z-index: 2;
}

.card-front .chip {
  width: 50px;
  height: 35px;
  background-color: gold;
  border-radius: 6px;
  margin-bottom: 15px;
}

.card-number {
  font-size: 20px;
  letter-spacing: 2px;
  margin: 10px 0;
}

.card-holder {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.card-back {
  background: linear-gradient(135deg, #222, #d4af37);
  transform: rotateY(180deg);
  color: #fff;
}

.card-back .magnetic-strip {
  height: 40px;
  background-color: #444;
  margin-bottom: 20px;
  border-radius: 4px;
}

.card-back .signature-box {
  background-color: #fff;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  border-radius: 4px;
}

.card-back .cvv-display {
  color: #000;
  font-weight: bold;
  letter-spacing: 1px;
}

/* SPINNER ANIMATION */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .wrapper {
    width: 95%;
  }

  .left-column,
  .right-column {
    flex: 1 1 100%;
    margin-top: 0;
  }

  .form-box {
    flex-direction: column;
    gap: 15px;
  }

  .card-details-row {
    flex-direction: column;
    width: 100%;
  }

  .card-details-row .form-group {
    flex: 1 1 50px;
  }

  .form-footer {
    flex-direction: column;
    align-items: center;
  }
  .col {
        flex: 1 1 100%;
      }
}

@media (max-width: 400px) {
  .left-column,
  .right-column {
    flex: 1 1 100%;
  }

  .city-postal-row,
  .card-details-row {
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
  }

  .city-postal-group input,
  .form-group input,
  .form-group select {
    width: 100%;
  }

  .card-preview {
    width: 100%;
    overflow-x: auto;
  }
   .card-preview {
      flex-shrink: 0;
      width: 100%;
    }
  .card {
    width: 100%;
    max-width: 320px;
  }

  .form-box {
    padding: 15px;
  }
}

html, body {
  overflow-x: hidden;
}

.row-two {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 15px;
  width: 100%;
}

.half-width {
  flex: 1 1 28%;
}

#street {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .row-two {
    flex-direction: column;
    gap: 10px;
  }

  .half-width {
    flex: 1 1 100%;
  }
}
#currencySymbol{
  position: absolute; 
  left: 10px; top: 20%; 
  transform: translateY(-50%); 
  font-size: 16px; 
  color: #d4af37; 
  pointer-events: none;
}
#cardIcon{
position: absolute; 
right: 10px; 
top: 50%; 
transform: translateY(-50%); 
height: 24px;
display: none;
}
/* Autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill {
  background-color: #f3f8ff !important; /* match your form's background */
  color: #000 !important;
  transition: background-color 600000s 0s, color 600000s 0s;
}
/* Payment Method Options - Match form background */
/* Payment Method Options - Match form background */
.payment-method-section {
    margin-bottom: 30px;
}

.payment-method-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.payment-method-option {
    position: relative;
    padding: 12px 24px 12px 45px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #111;
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.payment-method-option:hover {
    border-color: #d4af37;
    background: #1a1a1a;
}

.payment-method-option.selected {
    border-color: #d4af37;
    background: #1a1a1a;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.payment-method-option input[type="radio"]:checked {
    accent-color: #d4af37;
}

.payment-method-option input[type="radio"] {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
}

.payment-method-option label {
    cursor: pointer;
    font-weight: 500;
    margin: 0;
    color: #f3f8ff;
}

.payment-method-option.selected label {
    color: #ffcc00;  /* Brighter when selected */
    font-weight: bold;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .payment-method-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .payment-method-option {
        width: 100%;
        min-width: unset;
        padding: 14px 24px 14px 45px;
        text-align: left;
    }
    
    .payment-method-option label {
        font-size: 14px;
    }
    
    .payment-method-option input[type="radio"] {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .payment-method-option {
        padding: 12px 20px 12px 40px;
    }
    
    .payment-method-option label {
        font-size: 13px;
    }
    
    .payment-method-option input[type="radio"] {
        width: 18px;
        height: 18px;
        left: 12px;
    }
}