* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: url("../assets/BG.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 132, 55, 0.3), transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-50px, 50px) scale(1.1);
  }
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.form-section {
  width: 100%;
  max-width: 550px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 50px 45px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-header {
  margin-bottom: 40px;
  text-align: center;
}

.form-header h1 {
  font-size: 2.2rem;
  color: #2d3436;
  margin-bottom: 12px;
  font-weight: 700;
}

.form-header p {
  font-size: 1.05rem;
  color: #636e72;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #2d3436;
}

.form-group input:focus {
  outline: none;
  border-color: #048437;
  box-shadow: 0 0 0 4px rgba(4, 132, 55, 0.1);
}

.form-group input::placeholder {
  color: #b2bec3;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  background: #048437;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
  box-shadow: 0 4px 15px rgba(4, 132, 55, 0.3);
  opacity: 0.4;
  cursor: not-allowed;
}

.submit-btn.active {
  opacity: 1;
  cursor: pointer;
}

.submit-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 132, 55, 0.5);
  background: #036a2d;
}

.submit-btn.active:active {
  transform: translateY(0);
}

.required {
  color: #048437;
}

.consent-section {
  margin: 32px 0 24px 0;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.checkbox-group:last-child {
  margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #048437;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: #2d3436;
  line-height: 1.5;
  cursor: pointer;
  font-weight: 400;
}

.success-message {
  display: none;
  padding: 16px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 12px;
  color: #155724;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.success-message.show {
  display: block;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: modalSlideUp 0.4s ease;
  position: relative;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #048437, #036a2d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: checkmarkPop 0.6s ease 0.2s both;
  box-shadow: 0 8px 20px rgba(4, 132, 55, 0.3);
}

.modal-icon.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-icon svg {
  width: 45px;
  height: 45px;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 0.5s ease 0.4s forwards;
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 16px;
}

.modal-title.error {
  color: #e74c3c;
}

.modal-message {
  font-size: 1.05rem;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 32px;
}

.modal-close-btn {
  background: linear-gradient(135deg, #048437, #036a2d);
  color: #ffffff;
  border: none;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(4, 132, 55, 0.3);
}

.modal-close-btn.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 132, 55, 0.4);
}

.modal-close-btn.error:hover {
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.modal-close-btn:active {
  transform: translateY(0);
}

/* Read More Toggle Section */
.read-more-section {
  margin-top: 20px;
  margin-bottom: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.read-more-toggle {
  background: transparent;
  border: none;
  color: #048437;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.read-more-toggle:hover {
  background: rgba(4, 132, 55, 0.05);
}

.read-more-toggle svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.read-more-toggle.active svg {
  transform: rotate(180deg);
}

.legal-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
  opacity: 0;
}

.legal-content.show {
  max-height: 800px;
  opacity: 1;
  margin-top: 16px;
}

.legal-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 16px;
  text-align: center;
}

.legal-content p {
  font-size: 0.85rem;
  color: #636e72;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 12px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content strong {
  color: #2d3436;
  font-weight: 600;
}

.legal-content a {
  color: #048437;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: #036a2d;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-section {
    padding: 40px 30px;
    max-width: 100%;
  }

  .form-header h1 {
    font-size: 1.8rem;
  }

  .form-header p {
    font-size: 1rem;
  }

  .legal-content h3 {
    font-size: 0.9rem;
  }

  .legal-content p {
    font-size: 0.8rem;
  }

  .modal-content {
    padding: 40px 30px;
  }

  .modal-icon {
    width: 70px;
    height: 70px;
  }

  .modal-icon svg {
    width: 40px;
    height: 40px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-message {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .form-section {
    padding: 35px 25px;
  }

  .form-header h1 {
    font-size: 1.6rem;
  }

  .form-group input {
    padding: 14px 16px;
  }

  .submit-btn {
    padding: 16px;
    font-size: 1rem;
  }

  .modal-content {
    padding: 35px 25px;
    width: 92%;
  }

  .modal-icon {
    width: 65px;
    height: 65px;
  }

  .modal-icon svg {
    width: 35px;
    height: 35px;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-message {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .modal-close-btn {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .legal-content h3 {
    font-size: 0.85rem;
  }

  .legal-content p {
    font-size: 0.75rem;
  }

  .read-more-toggle {
    font-size: 0.9rem;
  }
}
