:root {
  --primary-color: #f68f1e;
  --secondary-color: #2c3e50;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light-gray);
}

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

/* Header Styles */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 40px;
}

.header-contact {
  display: flex;
  gap: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.hero-subtext {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Form Styles */
.funding-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.form-subheader {
  color: #666;
}

.form-step {
  animation: fadeIn 0.5s ease-out;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 1rem 1rem 1rem 2.5rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-wrapper input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(246, 143, 30, 0.1);
  outline: none;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

/* Range Input Styling */
.styled-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e1e8ed;
  margin: 1.5rem 0;
}

.styled-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.styled-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.range-output {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin: 1rem 0;
}

/* Button Styles */
.next-step, .submit-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  font-size: 1.1rem;
  transition: transform 0.2s, background-color 0.2s;
}

.next-step:hover, .submit-button:hover {
  transform: translateY(-2px);
  background-color: #e07d0d;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Footer Styles */
.main-footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links a {
  color: var(--white);
  margin-left: 1rem;
  font-size: 1.2rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.social-links a:hover {
  opacity: 1;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

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

.trust-badge-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.trust-badge-text {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* Business Type Options */
.business-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.business-type-option {
  position: relative;
  cursor: pointer;
}

.business-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.business-type-button {
  display: block;
  padding: 1rem;
  text-align: center;
  background: var(--light-gray);
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.business-type-option input[type="radio"]:checked + .business-type-button {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.business-type-option:hover .business-type-button {
  background: #e8e8e8;
}

/* Testimonial Slider */
.testimonial-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.testimonial-slide {
  flex: 0 0 350px;
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.testimonial-author {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-author strong {
  color: var(--secondary-color);
}

.testimonial-author span {
  color: #666;
  font-size: 0.9rem;
}

/* Error Messages */
.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .header-contact {
    display: none;
  }
  
  .funding-form {
    padding: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .business-type-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-slider {
    padding: 1rem 0;
  }
  
  .testimonial-slide {
    flex: 0 0 300px;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none;
}

.form-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 500px;
  max-width: 100%;
  margin: 20px auto;
}

@media (max-width: 768px) {
  .form-container {
    padding: 20px;
  }
}

.form-logo {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px;
}

.amount-display-large {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1a73e8;
  text-align: center;
  margin-bottom: 40px; /* Increased spacing */
}

.question-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0d47a1;
  margin-bottom: 25px; /* Increased spacing */
}

input[type="range"] {
  width: 100%;
  margin: 20px 0;
  appearance: none;
  background: #e3f2fd;
  height: 8px;
  border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a73e8;
  cursor: pointer;
}

input[type="range"].wiggle {
  animation: wiggle 1s infinite alternate;
}

@keyframes wiggle {
  0% { transform: translateX(0); }
  100% { transform: translateX(10px); }
}

.business-field {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 2px solid #1a73e8;
  border-radius: 8px;
  margin-bottom: 30px; /* Increased spacing */
  background: #f7f9fc;
}

.business-types {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.business-types button {
  flex: 1;
  padding: 10px;
  font-size: 0.9rem;
  border: none;
  border-radius: 5px;
  background: #f1f1f1;
  color: #333;
  cursor: pointer;
  transition: background 0.3s ease;
}

.business-types button:hover,
.business-types button.active {
  background: #1a73e8;
  color: white;
}

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

.modern-input {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f7f9fc;
  transition: box-shadow 0.3s;
}

.modern-input:focus {
  box-shadow: 0 0 8px rgba(0, 0, 255, 0.3);
}

.consent {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
}

.consent a {
  color: #1a73e8;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(to bottom, #42a5f5, #0d47a1);
  color: white;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  margin-top: 10px;
  transition: box-shadow 0.3s;
}

.submit-btn:hover {
  box-shadow: 0 0 10px rgba(0, 0, 255, 0.3);
}
