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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
}

.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Remove margin specifically from footer container */
footer .container {
  margin: 0 auto;
}

/* Ensure footer sticks to bottom and has no extra space */
footer {
  margin-top: auto;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 2rem;
}

.form-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
form {
  max-width: 600px;
  margin: 0 auto;
  /* padding: 1rem 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

form h2 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
}

form label {
  display: block;
  margin: 1rem 0 0.5rem;
  color: #555;
  font-weight: 500;
}

form input,
form select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2rem;
}

form input:focus,
form select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

form input::placeholder {
  color: #999;
}

form button[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 1.5rem;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
  background-color: #357abd;
}

form button[type="submit"] em {
  font-style: normal;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  form {
    padding: 1rem 1.5rem;
  }

  form input[type="text"],
  form select,
  form button[type="submit"] {
    padding: 0.6rem;
  }
}

/* Additional Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .name-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Form validation styles */
form input:invalid,
form select:invalid {
  border-color: #ff6b6b;
}

form input:invalid:focus,
form select:invalid:focus {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

/* Loading state for submit button */
form button[type="submit"]:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Success message styling */
.form-success {
  text-align: center;
  color: #28a745;
  padding: 1rem;
  margin-top: 1rem;
  background-color: #d4edda;
  border-radius: 4px;
  display: none;
}

/* Error message styling */
.form-error {
  text-align: center;
  color: #dc3545;
  padding: 1rem;
  margin-top: 1rem;
  background-color: #f8d7da;
  border-radius: 4px;
  display: none;
}

/* Mobile responsive styles for Zoho iframe */
.iframe-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Adjusted for 277.5px height on typical desktop width */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Feature card hover effects */
.feature-card {
  transition: all 0.3s ease;
}

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

/* Sticky form positioning */
.sticky {
  position: sticky;
  top: 2rem;
}

/* Mobile responsive styles - ORDERED FROM LARGEST TO SMALLEST */
@media (max-width: 1024px) {
  .container {
    max-width: 600px;
  }

  .sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .iframe-container {
    padding-top: 70%; /* Slightly higher ratio for mobile */
  }
  
  /* Larger fonts for mobile readability */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  h3 {
    font-size: 1.5rem !important;
  }
  
  p {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
  }
  
  /* Better spacing for mobile */
  .feature-card {
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .feature-card h3 {
    margin-bottom: 0.75rem !important;
  }
  
  .feature-card p {
    margin-bottom: 0 !important;
  }
}

/* Additional mobile responsiveness */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .sticky {
    position: static !important;
    margin-top: 2rem;
  }
  
  /* Ensure proper spacing on mobile */
  section {
    padding: 2rem 0 !important;
  }
  
  /* Better grid layout for mobile */
  .grid {
    gap: 2rem !important;
  }
}

@media (max-width: 480px) {
  .iframe-container {
    padding-top: 100%; /* Higher ratio for very small screens */
  }
  
  /* Even larger fonts for very small screens */
  h1 {
    font-size: 1.75rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  p {
    font-size: 1rem !important;
  }
  
  /* Compact feature cards for mobile */
  .feature-card {
    padding: 1rem !important;
    gap: 0.75rem !important;
  }
  
  .feature-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
}

@media (max-width: 400px) {
  .iframe-container {
    padding-top: 120%; /* Higher ratio for very small screens */
  }
  
  /* Even larger fonts for very small screens */
  h1 {
    font-size: 1.75rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  p {
    font-size: 1rem !important;
  }
  
  /* Compact feature cards for mobile */
  .feature-card {
    padding: 1rem !important;
    gap: 0.75rem !important;
  }
  
  .feature-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
}

/* Logo styling */
.logo-container {
  width: 200px;
  height: 60px;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Feature card styling */
.feature-icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}
