/* ==================== PAYMENT FORM STYLES ==================== */

:root {
  --color-black: #0a0908;
  --color-chocolate: #1a1512;
  --color-gold: #c9a962;
  --color-beige: #e8dcc8;
  --color-warm-brown: #2d2420;
}

/* Modal Container */
.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
}

.payment-modal.active {
  display: flex;
}

/* Overlay с анимацией */
.payment-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.payment-modal.active .payment-overlay {
  opacity: 1;
}

/* Modal Content с анимацией */
.payment-content {
  position: relative;
  background: var(--color-chocolate);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 520px;
  width: 90%;
  border: 1px solid rgba(201, 169, 98, 0.2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 60px rgba(201, 169, 98, 0.1);
  max-height: 95vh;
  overflow-y: auto;
  opacity: 0;
  transform: scale(0.95) translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.payment-modal.active .payment-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Скрываем скроллбар */
.payment-content::-webkit-scrollbar {
  width: 0;
  display: none;
}

.payment-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Close Button */
.payment-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
  z-index: 10;
}

.payment-close:hover {
  color: var(--color-beige);
}

/* Title */
.payment-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
  color: var(--color-beige);
  font-family: 'Montserrat', sans-serif;
}

.payment-subtitle {
  text-align: center;
  color: rgba(232, 220, 200, 0.7);
  font-size: 13px;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

/* Form */
.payment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Service Info Box */
.service-info {
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.service-name {
  font-size: 13px;
  color: rgba(232, 220, 200, 0.85);
  margin-bottom: 3px;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-amount {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-gold);
  font-family: 'Montserrat', sans-serif;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  color: rgba(232, 220, 200, 0.85);
  font-family: 'Montserrat', sans-serif;
}

.form-input {
  padding: 12px 14px;
  background: var(--color-black);
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: 10px;
  color: var(--color-beige);
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.2);
}

.form-input::placeholder {
  color: rgba(232, 220, 200, 0.4);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--color-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(232, 220, 200, 0.85);
  font-family: 'Montserrat', sans-serif;
}

.checkbox-label a {
  color: var(--color-gold);
  text-decoration: underline;
  transition: color 0.3s;
}

.checkbox-label a:hover {
  color: var(--color-beige);
}

/* Payment Button */
.payment-button {
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8944d 100%);
  color: var(--color-black);
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.4s;
  margin-top: 4px;
}

.payment-button:hover {
  box-shadow: 0 0 40px rgba(201, 169, 98, 0.4);
  transform: translateY(-2px);
}

.payment-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Payment Note */
.payment-note {
  text-align: center;
  font-size: 11px;
  color: rgba(232, 220, 200, 0.5);
  margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
}

/* Messages */
.payment-message {
  text-align: center;
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
  margin-top: 12px;
  font-family: 'Montserrat', sans-serif;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.payment-message.error {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.payment-message.success {
  background: rgba(81, 207, 102, 0.2);
  color: #51cf66;
  border: 1px solid rgba(81, 207, 102, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
  .payment-content {
    padding: 32px 20px;
  }
  
  .payment-title {
    font-size: 22px;
  }
  
  .service-amount {
    font-size: 20px;
  }
  
  .checkbox-label {
    font-size: 11px;
  }
}