/* Online Payment Page Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/site-background.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, white, rgba(255, 255, 255, 0));
  mask-image: linear-gradient(180deg, white, rgba(255, 255, 255, 0));
  z-index: 0;
  pointer-events: none;
}

/* Decorative teal squares */
.decorative-square {
  position: absolute;
  background: rgba(200, 200, 200, 0.15);
  border-radius: 8px;
}

.square-1 {
  width: 20px;
  height: 20px;
  top: 2%;
  right: 55%;
}

.square-2 {
  width: 16px;
  height: 16px;
  top: 12%;
  right: 35%;
}

.square-3 {
  width: 12px;
  height: 12px;
  top: 52%;
  left: 15%;
}

.square-4 {
  width: 18px;
  height: 18px;
  bottom: 42%;
  left: 12%;
}

.square-5 {
  width: 14px;
  height: 14px;
  bottom: 48%;
  right: 8%;
}

.square-6 {
  width: 20px;
  height: 20px;
  bottom: 20%;
  left: 14%;
}

.square-7 {
  width: 16px;
  height: 16px;
  bottom: 28%;
  left: 20%;
}

.square-8 {
  width: 14px;
  height: 14px;
  bottom: 12%;
  right: 70%;
}

.square-9 {
  width: 18px;
  height: 18px;
  bottom: 6%;
  right: 68%;
}

.square-10 {
  width: 22px;
  height: 22px;
  bottom: 8%;
  right: 85%;
}

.square-11 {
  width: 16px;
  height: 16px;
  bottom: 32%;
  right: 75%;
}

.go-home-link {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #666;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  z-index: 1000;
}

.go-home-link i {
  font-size: 18px;
}

.go-home-link:hover {
  color: #333;
}

.payment-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 60px 80px;
  width: 100%;
  max-width: 1400px;
  text-align: center;
}

.logo-container {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 40px;
  margin-bottom: 30px;
}

.logo-container img {
  height: 80px;
  width: auto;
}

.form-group {
  margin-bottom: 0;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  color: #999;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select:hover {
  border-color: #ccc;
}

.form-select:focus {
  outline: none;
  border-color: #3b82f6;
  color: #333;
}

.footer {
  background: #fafafa;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-text {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.footer-link {
  color: #5e72e4;
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .payment-card {
    padding: 40px 30px;
  }

  .go-home-link {
    top: 15px;
    right: 15px;
    font-size: 14px;
  }

  .logo-container img {
    height: 60px;
  }

  .payment-container {
    padding: 60px 20px 20px;
  }

  .payment-card .row {
    margin-bottom: 1rem;
  }
}

/* Select2 Custom Styles */
.select2-container {
  width: 100% !important;
  display: block;
}

.payment-card .select2-container {
  margin: 0;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  height: 44px;
  padding: 0.625rem 0.875rem;
  background: white;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #111827;
  line-height: 28px;
  padding-left: 0;
  padding-right: 30px;
  font-size: 0.9375rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6b7280;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  margin-right: 20px;
  font-size: 18px;
  color: #6b7280;
}

.select2-dropdown {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #3b82f6;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem;
  font-size: 0.875rem;
}

/* Form Fields */
.form-field {
  margin-bottom: 30px;
  display: none;
}

.form-field.show {
  display: block;
}


.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 30px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


/* Payment Form Groups */
.payment-form-group {
  margin-bottom: 24px;
}

.payment-form-group:last-of-type {
  margin-bottom: 0;
}

/* Payment Form Styling */
.payment-card form {
  text-align: left;
}

.payment-card .row {
  margin-bottom: 1.5rem;
}

