/* ========================================
   QUOTE SOLAR NOW - MAIN STYLESHEET
   Pure HTML/CSS Version - Optimized for Performance
   ======================================== */

/* CSS Variables */
:root {
  --primary-blue: #1e5a8e;
  --primary-dark: #0f3d5c;
  --light-blue: #b3d9f2;
  --solar-gold: #f59e0b;
  --green-accent: #5cb85c;
  --red-accent: #d9534f;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-gray: #f8f9fa;
  --border-color: #ddd;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-dark);
  background: #fff;
}

/* ========================================
   HOMEPAGE STYLES
   ======================================== */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.app::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 720px;
  background-image: url('../assets/bgclear-desktop.webp');
  background-size: contain;
  background-position: bottom;
  background-repeat: repeat-x;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  contain: layout style paint;
}

/* Sun Animation */
.sun-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.65) 0%, rgba(255, 165, 0, 0.55) 50%, rgba(255, 140, 0, 0.45) 100%);
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.5),
    0 0 40px rgba(255, 165, 0, 0.4),
    0 0 60px rgba(255, 140, 0, 0.3);
  animation: sunMoveHorizontal 60s linear infinite,
             sunMoveCurve 60s linear infinite;
  z-index: 100;
  pointer-events: none;
  opacity: 0.85;
  will-change: transform;
  contain: layout style paint;
}

@media (max-width: 640px) {
  .sun-animation {
    display: none;
  }
}

.sun-animation::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: sunPulse 6s ease-in-out infinite;
}

@keyframes sunMoveHorizontal {
  0% {
    left: -60px;
  }
  100% {
    left: calc(100% + 60px);
  }
}

@keyframes sunMoveCurve {
  0% {
    top: calc(50vh);
  }
  40% {
    top: calc(-5vh);
  }
  50% {
    top: calc(-10vh);
  }
  60% {
    top: calc(-5vh);
  }
  100% {
    top: calc(50vh);
  }
}

@keyframes sunPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

/* Header */
.header {
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
  user-select: none;
  position: relative;
  z-index: 10;
  min-height: 72px;
  contain: layout;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  line-height: 0;
}

.logo-image {
  height: 40px;
  width: 242px;
  max-width: 242px;
  display: block;
  aspect-ratio: 242 / 40;
}

.secure-badge {
  font-size: 1rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
}

.secure-badge svg {
  color: #f59e0b;
}

/* Main Content */
.main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0.5rem 1rem 30rem 1rem;
  width: 100%;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 72px);
}

.home-hero {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  contain: layout;
}

/* Push hero screen down only */
.home-hero:has(h1) {
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .home-hero:has(h1) {
    margin-top: 0.25rem;
  }
}

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

.home-hero h1 {
  font-size: 3.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  text-align: center !important;
  line-height: 1.1;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  cursor: default;
  user-select: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.home-hero h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-align: center;
  cursor: default;
  user-select: none;
}

h2.subtitle {
  text-align: center !important;
  color: #555;
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 1.4rem;
  cursor: default;
  user-select: none;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
  line-height: 1.3;
}

/* Form Elements */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.initial-form {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 650px;
  margin: 0 auto;
  contain: layout;
}

.initial-form .form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.initial-form .form-group {
  max-width: none;
}

.initial-form .form-group input,
.initial-form .form-group select {
  max-width: none;
}

.initial-form .btn {
  max-width: none;
}

@media (max-width: 640px) {
  .initial-form .form-fields {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 650px;
}

.form-group label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--primary-blue);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  margin-bottom: 0.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2980b9;
}

.form-group input::placeholder {
  color: #bbb;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  font-family: inherit;
}

/* Stepper Form */
.stepper-form {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 650px;
  margin: 0 auto 4rem;
  contain: layout;
}

.stepper-form-no-box {
  max-width: 650px;
  margin: 0 auto 4rem;
  contain: layout;
}

.form-helper-text {
  text-align: center;
  color: var(--primary-blue);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.form-helper-subtext {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.form-row-inline {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

.form-row-inline input {
  flex: 2;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  border: 2px solid var(--primary-blue);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.form-row-inline input:focus {
  border-color: #2980b9;
}

.form-row-inline .btn-hero {
  flex: 1;
  min-width: 200px;
  padding: 1rem 2rem;
}

.gold-text {
  color: var(--solar-gold);
}

h2.step-question {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin: 4rem 0 0.3rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.choice-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
}

/* Desktop only - wider container and gap */
@media (min-width: 641px) {
  .choice-buttons {
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
  }
}

.choice-btn {
  flex: 1;
  max-width: 240px;
  min-height: 120px !important;
  background: white;
  border: 2px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}

/* Desktop only - bigger boxes */
@media (min-width: 641px) {
  .choice-btn {
    width: 200px;
    min-height: 200px !important;
    padding: 1.5rem;
  }
}

.choice-yes {
  background-color: white;
  border-color: #ddd;
}

.choice-no {
  background-color: white;
  border-color: #ddd;
}

.choice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.choice-yes:hover {
  border-color: #10b981;
}

.choice-no:hover {
  border-color: #ef4444;
}

.choice-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: bold;
}

.choice-icon-yes {
  color: #5cb85c;
}

.choice-icon-no {
  color: #d9534f;
}

.choice-label {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.shade-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

.shade-btn {
  background: white;
  border: 2px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  min-height: 140px;
}

.shade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #bbb;
}

.shade-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.shade-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.review-summary {
  padding: 0;
  margin-bottom: 0.75rem;
}

h1.review-title {
  font-size: 1.85rem !important;
  font-weight: 700;
  color: var(--primary-blue) !important;
  margin: 0 0 0.25rem 0;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h2.review-subtitle {
  font-size: 1.1rem !important;
  color: var(--text-light) !important;
  margin: 0 0 1.25rem 0;
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
}

.review-items {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.65rem 3rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  width: fit-content;
  margin: 0 auto;
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.review-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.review-value {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-word;
}

.form-helper-text-inside {
  text-align: center;
  color: #0d8bf5;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0 0 0;
  padding: 0;
}

.form-helper-wrapper {
  text-align: center;
  margin-top: 0.75rem;
}

.form-helper-text-outside {
  color: var(--primary-blue);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.form-helper-subtext-outside {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.25rem 0 0 0;
}

.stepper-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
}

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

.step-indicator.completed .step-circle {
  background: var(--green-accent);
  color: white;
}

.step-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
}

.step-indicator.active .step-label {
  color: var(--primary-blue);
}

.step-indicator.completed .step-label {
  color: var(--green-accent);
}

.step-line {
  width: 40px;
  height: 2px;
  background: #e5e7eb;
  transition: all 0.3s;
}

.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-step.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stepper-buttons {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0;
}

.stepper-buttons .btn {
  flex: 1;
}

.stepper-form .form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
  width: 100%;
}

.stepper-form .form-group {
  max-width: none;
}

.stepper-form .form-group input,
.stepper-form .form-group select {
  max-width: none;
}

.stepper-form .upload-section {
  flex-direction: column;
  align-items: stretch;
}

.stepper-form .upload-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.stepper-form .upload-label-inline {
  white-space: normal;
}

@media (max-width: 640px) {
  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .step-label {
    font-size: 0.7rem;
  }
  
  .step-line {
    width: 30px;
  }
  
  .stepper-form {
    padding: 1.25rem;
    margin-bottom: 2rem;
  }
  
  .stepper-form-no-box {
    margin-top: 0;
  }
  
  .stepper-form .form-fields {
    grid-template-columns: 1fr;
  }
  
  .form-helper-text {
    font-size: 0.85rem;
  }
  
  .form-row-inline {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-row-inline .btn {
    width: 100%;
  }
  
  .form-helper-text-outside {
    font-size: 0.9rem;
  }
  
  .form-helper-subtext-outside {
    font-size: 0.85rem;
  }
  
  h2.step-question {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 3rem 0 0.3rem 0;
  }
  
  .form-helper-text-inside {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0.4rem;
  }
  
  .choice-buttons {
    gap: 0.75rem;
  }
  
  .choice-btn {
    max-width: 48%;
    min-height: 100px;
    padding: 0.75rem 0.5rem;
  }
  
  .choice-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }
  
  .choice-label {
    font-size: 1.3rem;
  }
  
  .shade-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .shade-btn {
    min-height: 120px;
    padding: 1.25rem 1rem;
  }
  
  .shade-icon {
    font-size: 2rem;
  }
  
  .shade-label {
    font-size: 0.95rem;
  }
  
  .review-summary {
    padding: 0;
    margin-top: -2rem;
    margin-bottom: 0.5rem;
  }
  
  h1.review-title {
    font-size: 1.75rem !important;
    margin-bottom: 0.1rem !important;
  }
  
  h2.review-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 1rem;
  }
  
  .review-items {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.75rem;
    gap: 0.6rem;
    max-width: 100%;
  }
  
  .review-item {
    font-size: 0.85rem;
  }
  
  .review-label {
    font-size: 0.75rem;
  }
  
  .review-value {
    font-size: 0.9rem;
  }
}

/* Buttons */
.btn {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.01em;
  max-width: 650px;
  width: 100%;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(30, 90, 142, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 90, 142, 0.35);
}

.btn-primary:disabled,
.btn-hero:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #9ca3af !important;
  border-color: #9ca3af !important;
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid #e5e7eb;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: var(--text-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-hero {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
}

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

/* Honeypot - hidden from humans, bots will fill it */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Upload Section */
.upload-section {
  width: 100%;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.upload-header {
  flex-shrink: 0;
}

.upload-label-inline {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 700;
  white-space: nowrap;
}

.upload-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.upload-dropzone:hover {
  border-color: var(--primary-blue);
  background: #f0f9ff;
}

.upload-dropzone.dragging {
  border-color: var(--primary-blue);
  background: #e0f2fe;
  transform: scale(1.01);
}

.file-input-hidden {
  display: none;
}

.upload-icon {
  color: var(--primary-blue);
  flex-shrink: 0;
}

.upload-content {
  flex: 1;
  text-align: left;
}

.upload-text {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
}

.upload-text-primary {
  color: var(--primary-blue);
  font-weight: 600;
}

.mobile-upload-text {
  display: none;
}

.desktop-upload-text {
  display: inline;
}

@media (max-width: 768px) {
  .mobile-upload-text {
    display: inline;
  }
  
  .desktop-upload-text {
    display: none;
  }
}

.upload-text-secondary {
  color: var(--text-light);
  font-weight: 500;
}

.upload-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f0f9ff;
  border: 2px solid var(--primary-blue);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.file-icon {
  color: var(--primary-blue);
  flex-shrink: 0;
}

.file-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.file-name {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.remove-file-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #6b7280;
}

.remove-file-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Reassurance Text */
.reassurance-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Consent Text */
.consent-text {
  font-size: 0.7rem;
  color: var(--text-light);
  line-height: 1.35;
  margin-top: 0.5rem;
}

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

/* Success Icon */
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-accent);
  color: white;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Trust Section */
.trust-section {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(245, 245, 245, 0.95);
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  min-height: 250px;
  contain: layout;
}

.trust-section h3 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 600;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 240px;
}

.trust-badge .stars {
  color: var(--solar-gold);
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.trust-badge p {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  margin: 0;
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  min-height: 400px;
  contain: layout;
}

.testimonials-section h3 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  font-weight: 600;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.testimonial-card {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.testimonial-stars {
  color: var(--solar-gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
  margin-bottom: 0.75rem;
}

.testimonial-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial-badge {
  font-size: 0.75rem;
  color: var(--text-light);
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

/* FAQ Section */
.faq-section {
  padding: 2rem 2rem 1rem 2rem;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  min-height: 500px;
  contain: layout;
}

.faq-section h3 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.faq-item a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* reCAPTCHA Badge - Hide but keep functional */
.grecaptcha-badge {
  visibility: hidden;
}

/* Bottom CTA Section */
.bottom-cta-section {
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.cta-content {
  position: relative;
  background: linear-gradient(135deg, #87CEEB 0%, #4A90E2 100%);
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  overflow: hidden;
}

.cta-content h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.cta-button {
  background: white;
  color: #4A90E2;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1.25rem 3rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

.cta-button:active {
  transform: translateY(-1px);
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.85);
  padding-top: 2rem;
  padding-bottom: 60px !important;
  text-align: center;
  margin-top: 0;
  cursor: default;
  user-select: none;
  border: none !important;
  border-top: none !important;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.footer p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Desktop only elements */
.desktop-only {
  display: inline;
}

/* Mobile line breaks */
.mobile-break {
  display: none;
}

/* Hide "Today" at 820px and below */
@media (max-width: 820px) {
  .desktop-only {
    display: none;
  }
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

.contact-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.contact-app::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 560px;
  background-image: url('../assets/bgclear-desktop.webp');
  background-size: contain;
  background-position: bottom;
  background-repeat: repeat-x;
  z-index: 0;
  pointer-events: none;
}

.contact-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem 8rem 2rem;
  min-height: calc(100vh - 150px);
  position: relative;
  z-index: 1;
}

.contact-content {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-width: 600px;
  width: 100%;
  margin-top: -5vh;
}

.contact-content h1 {
  color: #1f2937;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: center;
}

.contact-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.success-message {
  text-align: center;
  padding: 2rem 0;
}

.success-message h2 {
  color: #1f2937;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.success-message p {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ========================================
   THANK YOU PAGE STYLES
   ======================================== */

.thank-you-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.thank-you-app::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 560px;
  background-image: url('../assets/bgclear-desktop.webp');
  background-size: contain;
  background-position: bottom;
  background-repeat: repeat-x;
  z-index: 0;
  pointer-events: none;
}

.thank-you-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem 8rem 2rem;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 150px);
}

.thank-you-content {
  background: transparent;
  padding: 3rem 3rem 0.5rem 3rem;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  max-width: 650px;
  width: 100%;
  margin-top: -5vh;
}

.thank-you-content h1 {
  color: #1f2937;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.thank-you-subtitle {
  color: #6b7280;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.next-steps {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: left;
}

.next-steps h3 {
  color: #1f2937;
  margin-bottom: 1rem;
  text-align: center;
}

.next-steps .step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.next-steps .step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content strong {
  display: block;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.step-content p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

/* ========================================
   PRIVACY & TERMS PAGES STYLES
   ======================================== */

.privacy-page,
.terms-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.privacy-page::before,
.terms-page::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 560px;
  background-image: url('../assets/bgclear-desktop.webp');
  background-size: contain;
  background-position: bottom;
  background-repeat: repeat-x;
  z-index: 0;
  pointer-events: none;
}

.privacy-header,
.terms-header {
  background: white;
  padding: 1.5rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-link {
  display: inline-block;
}

.privacy-content,
.terms-content {
  flex: 1;
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.privacy-container,
.terms-container {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.privacy-container h1,
.terms-container h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.last-updated {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 2rem 0;
}

.policy-text {
  color: #333;
  line-height: 1.7;
  font-size: 1rem;
}

.policy-text h2,
.terms-container h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 2.5rem 0 1rem 0;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}

.policy-text h2:first-of-type,
.terms-container h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.policy-text h3,
.terms-container h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 2rem 0 1rem 0;
}

.policy-text p,
.terms-container p {
  margin: 1rem 0;
}

.policy-text ul,
.policy-text ol,
.terms-container ul,
.terms-container ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.policy-text li,
.terms-container li {
  margin: 0.5rem 0;
}

.policy-text a,
.terms-container a {
  color: #1d4ed8;
  text-decoration: underline;
}

.policy-text a:hover,
.terms-container a:hover {
  color: #1e40af;
}

.policy-text strong,
.terms-container strong {
  font-weight: 600;
  color: #1a1a1a;
}

.policy-text em {
  font-style: italic;
}

.policy-text address,
.terms-container address {
  font-style: normal;
  margin: 1rem 0;
  padding: 1rem;
  background: #f9fafb;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
}

.privacy-footer,
.terms-footer {
  background: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 2rem 1.5rem;
  padding-bottom: 60px !important;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.privacy-footer p,
.terms-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.privacy-footer a,
.terms-footer a {
  color: var(--text-light);
  text-decoration: none;
}

.privacy-footer a:hover,
.terms-footer a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 640px) {
  .mobile-break {
    display: inline;
  }

  /* Keep background image full size on mobile */
  .app::before,
  .contact-app::before,
  .thank-you-app::before {
    height: 560px;
    background-size: auto 700px;
    background-position: 40% bottom;
  }

  .header {
    padding: 0.5rem 1rem;
    min-height: 60px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo-image {
    height: 32px;
    width: 194px;
    max-width: 194px;
  }

  .secure-badge {
    font-size: 0.85rem;
  }

  .main {
    padding: 2rem 2.75rem 1.5rem 2.75rem;
  }

  .home-hero h1 {
    font-size: 1.77rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .home-hero h2 {
    font-size: 1.5rem;
  }

  h2.subtitle {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    margin-top: 0.2rem;
    margin-bottom: 1.25rem;
    line-height: 1.35;
  }

  /* Hide own/rent field on mobile */
  .form-group:has(#ownsHome) {
    display: none;
  }

  /* Reduce form padding on mobile */
  .initial-form {
    padding: 0.75rem;
    margin-top: 0rem;
  }

  /* Reduce gap between form fields */
  .initial-form .form-fields {
    gap: 0.5rem;
    margin-bottom: 0;
  }

  /* Reduce label size on mobile */
  .form-group label {
    font-size: 0.85rem;
  }

  /* Make form inputs taller on mobile */
  .form-group input,
  .form-group select {
    padding: 0.7rem 0.75rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Reduce form group gap */
  .form-group {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Make hero button smaller and more compact on mobile */
  .btn-hero {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  /* Reduce reassurance text size */
  .reassurance-text {
    font-size: 0.8rem;
    margin-top: -0.3rem;
    margin-bottom: 0;
    line-height: 1.3;
  }

  /* Reduce consent text size */
  .consent-text {
    font-size: 0.65rem;
    margin-top: -0.15rem;
    line-height: 1.3;
  }

  /* Mobile upload styles - more compact */
  .upload-section {
    margin-top: -0.5rem;
    margin-bottom: 0;
    gap: 0.3rem;
  }

  .upload-label-inline {
    font-size: 0.95rem;
    font-weight: 700;
  }

  .upload-dropzone {
    padding: 0.5rem 0.65rem;
    gap: 0.4rem;
  }

  .upload-icon {
    width: 24px;
    height: 24px;
  }

  .upload-text {
    font-size: 0.8rem;
    margin: 0;
  }

  .upload-hint {
    font-size: 0.7rem;
    margin: 0;
  }

  .file-preview {
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
  }

  .file-icon {
    width: 22px;
    height: 22px;
  }

  .file-name {
    font-size: 0.8rem;
  }

  .file-size {
    font-size: 0.7rem;
  }

  .trust-section {
    padding: 2rem 1rem;
  }

  .trust-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .testimonials-section {
    padding: 2rem 1rem;
  }

  .testimonials-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .faq-section {
    padding: 2rem 1rem;
  }

  .faq-section h3 {
    font-size: 1.5rem;
  }

  .faq-item {
    margin-bottom: 1.5rem;
  }

  .bottom-cta-section {
    padding: 3rem 1.5rem;
  }
  
  .cta-content {
    padding: 2.5rem 1.5rem;
  }
  
  .cta-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-button {
    font-size: 1rem;
    padding: 1rem 2rem;
  }

  /* Contact Page Mobile */
  .contact-main {
    padding: 2rem 1rem;
  }

  .contact-content {
    padding: 2rem 1.5rem;
  }
  
  .contact-content h1 {
    font-size: 2rem;
  }
  
  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-form label {
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 0.65rem 0.75rem;
  }

  .contact-form .btn {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }

  .success-message h2 {
    font-size: 1.75rem;
  }

  .success-message p {
    font-size: 1rem;
  }

  /* Thank You Page Mobile */
  .thank-you-main {
    padding: 2rem 1rem;
  }

  .thank-you-content {
    padding: 2rem 1rem 0.5rem 1rem;
    max-width: 500px !important;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
  
  .thank-you-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .thank-you-subtitle {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  
  .next-steps {
    padding: 1.5rem 0.75rem;
  }

  /* Privacy/Terms Mobile */
  .privacy-page::before,
  .terms-page::before {
    height: 560px;
    background-size: auto 700px;
    background-position: 40% bottom;
  }

  .privacy-container,
  .terms-container {
    padding: 2rem 1.5rem;
    border-radius: 0;
  }

  .privacy-container h1,
  .terms-container h1 {
    font-size: 1.75rem;
  }

  .policy-text h2,
  .terms-container h2 {
    font-size: 1.25rem;
  }

  .policy-text h3,
  .terms-container h3 {
    font-size: 1.1rem;
  }

  .policy-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 375px) {
  .main {
    padding: 0rem 1.5rem 1.5rem 1.5rem;
  }

  .home-hero h1 {
    font-size: 1.57rem;
    line-height: 1.15;
  }

  .home-hero h2 {
    font-size: 1.35rem;
  }

  h2.subtitle {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    margin-top: 0;
    line-height: 1.35;
  }

  .initial-form {
    margin-top: 0.25rem;
    padding: 0.5rem;
  }
}

