/* payment-modal.css */
/* Stili per il modale di pagamento Stripe */

.payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.payment-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  max-width: 480px;
  width: 90%;
  padding: 50px 40px 40px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #333;
}

.modal-title {
  margin: 0 0 8px 0;
  font-size: 26px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: #1a1a1a;
}

.modal-subtitle {
  margin: 0 0 28px 0;
  font-size: 13px;
  color: #999;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.payment-form {
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
}

.form-group input:focus {
  outline: none;
  border-color: #8B7C7C;
  background: white;
  box-shadow: 0 0 0 3px rgba(139, 124, 124, 0.08);
}

.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: #8B7C7C;
  box-shadow: 0 0 0 3px rgba(139, 124, 124, 0.08);
}

.modal-service-info {
  background: linear-gradient(135deg, #f9f9f9 0%, #fefefe 100%);
  padding: 18px 20px;
  border-radius: 10px;
  margin: 28px 0;
  border: 1px solid #f0f0f0;
}

.modal-service-info p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.4;
}

.modal-service-info strong {
  color: #666;
  font-weight: 600;
}

.modal-service-name {
  color: #8B7C7C;
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px !important;
}

.modal-price-container {
  color: #888;
  margin-top: 8px !important;
}

.modal-price {
  font-size: 20px;
  font-weight: 700;
  color: #8B7C7C;
}

.payment-error {
  background-color: #fff5f5;
  color: #d32f2f;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  border-left: 3px solid #d32f2f;
  line-height: 1.5;
}

.payment-button {
  width: 100%;
  padding: 14px 20px;
  background-color: #8B7C7C;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  font-family: inherit;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(139, 124, 124, 0.15);
}

.payment-button:hover:not(:disabled) {
  background-color: #6b5c5c;
  box-shadow: 0 6px 16px rgba(139, 124, 124, 0.25);
}

.payment-button:active:not(:disabled) {
  transform: scale(0.99);
}

.payment-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    padding: 40px 28px 32px;
  }

  .modal-title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .modal-subtitle {
    margin-bottom: 24px;
  }

  .form-group label {
    font-size: 12px;
  }

  .form-group input {
    padding: 11px 12px;
    font-size: 14px;
  }

  .modal-service-info {
    padding: 16px 18px;
    margin: 24px 0;
  }

  .modal-price {
    font-size: 18px;
  }

  .payment-button {
    padding: 13px 18px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .modal-content {
    border-radius: 12px;
    padding: 36px 20px 28px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-subtitle {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .form-group {
    margin-bottom: 16px;
  }
}
