/**
 * Solar Acquisition Modal Styles
 * Consistent styling for unified Solar acquisition flow
 */

/* Modal Overlay */
.solar-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

/* Modal Content */
.solar-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 3px solid #FFD700;
}

/* Close Button */
.solar-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
  padding: 5px;
  border-radius: 50%;
}

.solar-modal-close:hover {
  color: #FF6B00;
  background: rgba(255, 107, 0, 0.1);
  transform: scale(1.1);
}

/* Modal Header */
.solar-modal-header {
  text-align: center;
  padding: 40px 30px 20px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1A237E;
  border-radius: 20px 20px 0 0;
}

.solar-icon {
  font-size: 60px;
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: solarPulse 2s ease-in-out infinite;
}

@keyframes solarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.solar-modal-header h2 {
  margin: 0 0 15px;
  font-size: 2.2rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.solar-birthright {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.solar-birthright strong {
  color: #0D47A1;
  font-weight: 700;
}

/* Modal Body */
.solar-modal-body {
  padding: 30px;
}

/* Solar Standard Info */
.solar-standard-info {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
  border-radius: 15px;
  border: 2px solid #FFD700;
}

.solar-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  font-family: 'Roboto Mono', monospace;
}

.solar-amount {
  font-size: 2rem;
  font-weight: bold;
  color: #FF8C00;
  text-shadow: 0 2px 4px rgba(255, 140, 0, 0.3);
}

.solar-equals {
  font-size: 1.8rem;
  color: #0057B8;
  font-weight: bold;
}

.solar-kwh {
  font-size: 1.8rem;
  font-weight: bold;
  color: #4CAF50;
}

.solar-description {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Form Styles */
.solar-signup-form {
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

.form-group input:required {
  border-left: 4px solid #FF6B00;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* CTA Hierarchy */
.solar-cta-hierarchy {
  text-align: center;
  margin-top: 30px;
}

.btn-primary {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

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

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
}

.secondary-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  color: #0057B8;
  padding: 10px 20px;
  border: 2px solid #0057B8;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: #0057B8;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 87, 184, 0.3);
}

/* Success and Error Messages */
.solar-success-message,
.solar-error-message {
  text-align: center;
  padding: 30px;
  border-radius: 15px;
}

.solar-success-message {
  background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);
  border: 2px solid #4CAF50;
}

.solar-error-message {
  background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
  border: 2px solid #F44336;
}

.success-icon,
.error-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.solar-success-message h3 {
  margin: 0 0 15px;
  color: #2E7D32;
  font-size: 1.5rem;
}

.solar-success-message p,
.solar-error-message p {
  margin: 0 0 20px;
  color: #555;
  line-height: 1.5;
}

.error-text {
  color: #C62828;
  font-weight: 500;
}

/* Modal Footer */
.solar-modal-footer {
  padding: 20px 30px 30px;
  text-align: center;
}

.solar-guarantee {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  background: linear-gradient(135deg, #F5F5F5 0%, #EEEEEE 100%);
  padding: 15px 20px;
  border-radius: 10px;
  border-left: 4px solid #FFD700;
}

.solar-guarantee strong {
  color: #FF8C00;
}

/* Registered User Styles */
.solar-registered .solar-unlock-indicator {
  display: inline-block;
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 10px;
}

.solar-unlocked {
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .solar-modal-overlay {
    padding: 10px;
  }
  
  .solar-modal-content {
    max-height: 95vh;
    border-radius: 15px;
  }
  
  .solar-modal-header {
    padding: 30px 20px 15px;
    border-radius: 15px 15px 0 0;
  }
  
  .solar-modal-header h2 {
    font-size: 1.8rem;
  }
  
  .solar-icon {
    font-size: 50px;
  }
  
  .solar-modal-body {
    padding: 20px;
  }
  
  .solar-value {
    flex-direction: column;
    gap: 10px;
  }
  
  .solar-amount,
  .solar-kwh {
    font-size: 1.5rem;
  }
  
  .solar-equals {
    font-size: 1.3rem;
  }
  
  .btn-primary {
    padding: 12px 25px;
    font-size: 1.1rem;
  }
  
  .secondary-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-secondary {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .solar-modal-header {
    padding: 25px 15px 12px;
  }
  
  .solar-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .solar-birthright {
    font-size: 1rem;
    padding: 10px 15px;
  }
  
  .solar-modal-body {
    padding: 15px;
  }
  
  .solar-modal-footer {
    padding: 15px 15px 20px;
  }
}