/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Crimson Text", "Inter", serif, sans-serif;
  color: #2d4a2d;
  line-height: 1.8;
  overflow-x: hidden;
  background-color: #f5f1e8;
}

/* Fixed Background Container */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.desktop-bg {
  background-image: url("images/desktop-banner.png");
  display: block;
}

.mobile-bg {
  background-image: url("images/mobile-background.png");
  display: none;
}

/* Mobile Background */
@media (max-width: 768px) {
  .desktop-bg {
    display: none;
  }

  .mobile-bg {
    display: block;
    background-attachment: scroll;
  }

  /* Fallback for iOS Safari */
  @supports (-webkit-touch-callout: none) {
    .background-image {
      background-attachment: scroll;
    }
  }
}

/* Content Wrapper */
.content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Content Sections */
.content-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 40px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section:nth-child(1) {
  animation-delay: 0.1s;
}
.content-section:nth-child(2) {
  animation-delay: 0.2s;
}
.content-section:nth-child(3) {
  animation-delay: 0.3s;
}
.content-section:nth-child(4) {
  animation-delay: 0.4s;
}
.content-section:nth-child(5) {
  animation-delay: 0.5s;
}
.content-section:nth-child(6) {
  animation-delay: 0.6s;
}
.content-section:nth-child(7) {
  animation-delay: 0.7s;
}
.content-section:nth-child(8) {
  animation-delay: 0.8s;
}
.content-section:nth-child(9) {
  animation-delay: 0.9s;
}
.content-section:nth-child(10) {
  animation-delay: 1s;
}
.content-section:nth-child(11) {
  animation-delay: 1.1s;
}

/* Typography */
.main-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: #2d4a2d;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(45, 74, 45, 0.1);
}

.quote-hindi,
.statement-hindi,
.reminder-hindi,
.home-hindi {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  color: #2d4a2d;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(45, 74, 45, 0.1);
}

.quote-english,
.statement-english,
.reminder-english,
.home-english {
  font-family: "Crimson Text", serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-style: italic;
  color: #3d5a3d;
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(45, 74, 45, 0.1);
}

.reminder-english {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
}

.home-hindi {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}

.home-english {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.1em;
}

/* Form Section */
.form-section {
  padding: 60px 20px;
  min-height: auto;
}

.form-container {
  background-color: rgba(245, 241, 232, 0.95);
  border-radius: 12px;
  padding: 50px 40px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.form-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: #2d4a2d;
  margin-bottom: 15px;
  text-align: center;
}

.form-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: #2d4a2d;
  margin-bottom: 30px;
  text-align: center;
}

.form-instruction {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: #3d5a3d;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.6;
}

.guardian-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pledge-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pledge-option {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.pledge-option:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: #2d4a2d;
}

.pledge-option input[type="checkbox"] {
  margin-right: 15px;
  margin-top: 5px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #2d4a2d;
  flex-shrink: 0;
}

.pledge-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.pledge-hindi {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 500;
  color: #2d4a2d;
}

.pledge-english {
  font-family: "Crimson Text", serif;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: #3d5a3d;
  font-style: italic;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 600;
  color: #2d4a2d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  padding: 12px 16px;
  border: 2px solid #d4c5b0;
  border-radius: 6px;
  background-color: #ffffff;
  color: #2d4a2d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.form-group input:focus {
  outline: none;
  border-color: #2d4a2d;
  box-shadow: 0 0 0 3px rgba(45, 74, 45, 0.1);
}

.form-group input::placeholder {
  color: #9a8a7a;
}

.submit-button {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: #ffffff;
  background-color: #2d4a2d;
  border: none;
  border-radius: 8px;
  padding: 16px 40px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 10px;
}

.submit-button:hover {
  background-color: #1e3320;
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  background-color: #6b7a6b;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  display: none;
}

.form-message.success {
  display: block;
  background-color: rgba(45, 74, 45, 0.1);
  color: #1e3320;
  border: 2px solid #2d4a2d;
}

.form-message.error {
  display: block;
  background-color: rgba(180, 60, 60, 0.1);
  color: #8b1a1a;
  border: 2px solid #b43c3c;
}

/* Footer */
.footer-section {
  padding: 40px 20px;
  min-height: auto;
}

.footer-text {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: #2d4a2d;
  text-align: center;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-section {
    padding: 60px 20px;
    min-height: 80vh;
  }

  .form-container {
    padding: 30px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pledge-option {
    padding: 15px;
  }

  .intro-section {
    min-height: 100vh;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 40px 15px;
  }

  .form-container {
    padding: 25px 15px;
  }

  .main-title {
    font-size: 2rem;
  }

  .quote-hindi,
  .statement-hindi {
    font-size: 1.3rem;
  }

  .quote-english,
  .statement-english {
    font-size: 1.1rem;
  }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .background-container {
    display: none;
  }

  .content-wrapper {
    background-color: #f5f1e8;
  }
}
