/* PvPlayer Payment System - Styles */
/* Colors: Blue #185EE8, Red #CC1534, Black #000, White #FFF, Gray #F1F1F1 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #F1F1F1;
  color: #000000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background-color: #000000;
  padding: 1rem;
  text-align: center;
}

.header img {
  max-height: 40px;
}

.header h1 {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

/* Main Container */
.container {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
}

/* Cards */
.card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #000000;
}

/* Location Badge */
.location-badge {
  display: inline-block;
  background-color: #185EE8;
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Product Selection */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid #E0E0E0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-option:hover {
  border-color: #185EE8;
  background-color: #F8FAFF;
}

.product-option.selected {
  border-color: #185EE8;
  background-color: #EEF4FF;
}

.product-option input[type="radio"] {
  display: none;
}

.product-radio {
  width: 22px;
  height: 22px;
  border: 2px solid #CCCCCC;
  border-radius: 50%;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-option.selected .product-radio {
  border-color: #185EE8;
}

.product-option.selected .product-radio::after {
  content: '';
  width: 12px;
  height: 12px;
  background-color: #185EE8;
  border-radius: 50%;
}

.product-info {
  flex: 1;
}

.product-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.product-duration {
  font-size: 0.85rem;
  color: #666666;
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #185EE8;
}

/* Quantity Selector */
.quantity-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E0E0E0;
}

.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.quantity-btn {
  width: 44px;
  height: 44px;
  border: 2px solid #E0E0E0;
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 600;
  color: #185EE8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  border-color: #185EE8;
  background-color: #F8FAFF;
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-value {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

.quantity-hint {
  text-align: center;
  font-size: 0.8rem;
  color: #888888;
  margin-top: 0.5rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #185EE8;
}

.form-input::placeholder {
  color: #999999;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #185EE8;
}

.checkbox-label {
  font-size: 0.85rem;
  color: #666666;
  line-height: 1.4;
}

/* Invoice Fields */
.invoice-fields {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E0E0E0;
}

.invoice-fields.visible {
  display: block;
}

/* Summary */
.summary {
  background: linear-gradient(135deg, #185EE8 0%, #1249C4 100%);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.summary-row:last-child {
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Button */
.btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #CC1534;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #A81129;
  transform: translateY(-1px);
}

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

.btn-primary:disabled {
  background-color: #CCCCCC;
  cursor: not-allowed;
  transform: none;
}

/* Loading State */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  margin: -12px 0 0 -12px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #666666;
}

.footer a {
  color: #185EE8;
  text-decoration: none;
}

/* Security Badge */
.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #666666;
}

.security-badge svg {
  width: 16px;
  height: 16px;
}

/* Error Message */
.error-message {
  background-color: #FEE2E2;
  border: 1px solid #FECACA;
  color: #CC1534;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

.error-message.visible {
  display: block;
}

/* Success Page */
.success-icon {
  width: 80px;
  height: 80px;
  background-color: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: #FFFFFF;
}

.success-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-message {
  text-align: center;
  color: #666666;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 380px) {
  .container {
    padding: 1rem;
  }

  .product-option {
    padding: 0.875rem;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .product-price {
    font-size: 1rem;
  }
}
