/* NexoraSure Public Website - Customer Quote Portal */

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

:root {
  --primary-color: #047857;
  --primary-hover: #065f46;
  --secondary-color: #4b5563;
  --success-color: #059669;
  --text-dark: #111827;
  --text-light: #9ca3af;
  --bg-light: #1f2937;
  --bg-white: #111827;
  --border-color: #374151;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #e5e7eb;
  line-height: 1.6;
  background: #0f172a;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #1f2937;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo h1 {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 2px;
}

.tagline {
  color: var(--text-light);
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature .icon {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
}

.feature h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.feature p {
  opacity: 0.9;
  font-size: 16px;
}

/* How It Works */
.how-it-works {
  padding: 80px 20px;
  background: #1f2937;
}

.how-it-works h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 60px;
  color: #f9fafb;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.step {
  text-align: center;
  padding: 30px;
  background: #111827;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #f9fafb;
}

.step p {
  color: var(--text-light);
  font-size: 16px;
}

/* Quote Form Section */
.quote-form-section {
  padding: 80px 20px;
  background: #0f172a;
}

.form-header {
  text-align: center;
  margin-bottom: 50px;
}

.form-header h2 {
  font-size: 40px;
  margin-bottom: 15px;
  color: #f9fafb;
}

.form-header p {
  font-size: 18px;
  color: var(--text-light);
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  position: relative;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
  transition: all 0.3s;
}

.progress-step.active .progress-circle {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.progress-step.completed .progress-circle {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.progress-step span {
  font-size: 14px;
  color: var(--text-light);
}

.progress-step.active span {
  color: var(--primary-color);
  font-weight: 600;
}

/* Form */
.quote-form {
  background: #1f2937;
  padding: 50px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #f9fafb;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #e5e7eb;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  background: #111827;
  color: #e5e7eb;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.2);
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: var(--text-light);
  font-size: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.checkbox-label.consent {
  padding: 15px;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 14px;
}

.checkbox-label.consent a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Review Summary */
.review-summary {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
  border-bottom: none;
}

.review-item strong {
  color: #f9fafb;
}

.review-item span {
  color: var(--text-light);
}

/* Buttons */
.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4);
}

.btn-secondary {
  background: #374151;
  color: #e5e7eb;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: space-between;
}

/* Results Section */
.results-section {
  padding: 80px 20px;
  background: #0f172a;
}

.results-section.hidden {
  display: none;
}

.results-header {
  text-align: center;
  margin-bottom: 50px;
}

.results-header h2 {
  font-size: 40px;
  margin-bottom: 15px;
  color: #f9fafb;
}

.loading-spinner {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.loading-subtext {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 10px;
}

.quotes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.quote-card {
  background: #1f2937;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s;
  position: relative;
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: var(--primary-color);
}

.quote-card.best {
  border-color: var(--primary-color);
  background: linear-gradient(to bottom, rgba(4, 120, 87, 0.15), #1f2937);
}

.best-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.quote-carrier {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #f9fafb;
}

.quote-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.quote-price-monthly {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.quote-details {
  list-style: none;
  margin-bottom: 20px;
}

.quote-details li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
}

.quote-details li:last-child {
  border-bottom: none;
}

.quote-card .btn {
  width: 100%;
}

/* Footer */
.footer {
  background: #111827;
  color: #e5e7eb;
  padding: 60px 20px 20px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-form {
    padding: 30px 20px;
  }

  .nav {
    display: none;
  }

  .progress-bar {
    flex-wrap: wrap;
    gap: 20px;
  }

  .progress-bar::before {
    display: none;
  }
}
