/* Contact Section */
.contact-section {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  align-items: center;
}

/* Main Container */
.contact-container {
  width: 100%;
  max-width: 1200px;
  position: relative;
}

/* Decorative Elements */
.contact-decoration {
  position: absolute;
}

.circles {
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(78, 115, 223, 0.1) 0%,
    rgba(78, 115, 223, 0) 70%
  );
}

.lines {
  bottom: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  border-left: 2px dashed rgba(78, 115, 223, 0.3);
  border-bottom: 2px dashed rgba(78, 115, 223, 0.3);
}

/* Wrapper - Updated for better tablet alignment */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}

/* Form Section */
.contact-form {
  flex: 1;
  padding: 60px 50px;
  background: #e3f2fb;
  min-width: 60%;
}

.form-header {
  margin-bottom: 40px;
  text-align: center;
}

.form-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.form-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #4e73df, #3d5ec0);
  border-radius: 2px;
}

.form-subtitle {
  color: #7f8c8d;
  font-weight: 400;
}

/* Form Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

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

.form-group-full {
  grid-column: span 2;
}

/* Form Elements */
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2c3e50;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  background-color: #f9fbfd;
}

.form-input:focus {
  border-color: #4e73df;
  outline: none;
  box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.15);
  transform: translateY(-2px);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Submit Button */
.submit-btn {
  margin-top: 20px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background-color: #017eb4;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
  box-shadow: 0 8px 20px rgba(78, 115, 223, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(78, 115, 223, 0.4);
}

.submit-btn:active {
  transform: translateY(1px);
}

/* Info Card */
.contact-info {
  flex: 1;
  padding: 60px 50px;
  background-color: #017eb4;
  color: white;
  position: relative;
  overflow: hidden;
  min-width: 40%;
}

.contact-info:before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.info-header {
  margin-bottom: 40px;
  position: relative;
}

.info-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.info-subtitle {
  opacity: 0.9;
  font-weight: 300;
}

/* Info Items */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-icon {
  font-size: 1.4rem;
  color: white;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  min-width: 45px;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.info-item:hover .info-icon {
  transform: rotate(10deg) scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

.info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
  color: #ffffff;
}

.info-content p {
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.social-link {
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.25);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

/* ReCAPTCHA Styling */
.g-recaptcha {
  margin: 20px 0;
  transform: scale(1);
  transform-origin: left top;
}

/* Responsive Design - Updated for better tablet alignment */
@media (max-width: 1024px) {
  .contact-wrapper {
    flex-direction: row;
    max-width: 900px;
  }

  .contact-form,
  .contact-info {
    padding: 50px 40px;
  }
}

@media (max-width: 920px) {
  .contact-wrapper {
    flex-direction: column;
    max-width: 650px;
    gap: 0;
  }

  .contact-form,
  .contact-info {
    width: 100%;
    padding: 50px 40px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    display: block;
  }

  .form-group-full {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 20px;
  }

  .contact-wrapper {
    border-radius: 15px;
  }
}

@media (max-width: 576px) {
  .contact-form,
  .contact-info {
    padding: 40px 30px;
  }

  .form-title {
    font-size: 2rem;
  }

  .info-title {
    font-size: 1.8rem;
  }
}

.g-recaptcha {
  margin: 20px 0;
  transform: scale(1);
  transform-origin: left top;
  overflow: hidden; /* Prevent horizontal scrolling */
}

/* Mobile-specific adjustments */
@media (max-width: 576px) {
  .g-recaptcha {
    transform: scale(0.85); /* Scale down on very small screens */
    transform-origin: left top;
    margin: 15px auto; /* Center with auto margins */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .g-recaptcha > div {
    width: 100% !important;
  }

  .g-recaptcha iframe {
    width: 100% !important;
    max-width: 304px !important; /* Standard reCAPTCHA width */
  }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .g-recaptcha {
    transform: scale(0.9);
    transform-origin: left top;
  }
}

.terms-wrapper {
  background-color: #fff;
  max-width: 900px;
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 2.8px 2.2px rgba(99, 102, 241, 0.034),
    0 6.7px 5.3px rgba(99, 102, 241, 0.048),
    0 12.5px 10px rgba(99, 102, 241, 0.06),
    0 22.3px 17.9px rgba(99, 102, 241, 0.072),
    0 41.8px 33.4px rgba(99, 102, 241, 0.086),
    0 100px 80px rgba(99, 102, 241, 0.12);
  padding: 3rem 3.5rem;
  border: 1px solid #c7d2fe;
  transition: box-shadow 0.4s ease;
}

.terms-wrapper:hover {
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35),
    0 40px 80px rgba(99, 102, 241, 0.2);
}

h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #3730a3;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 4px rgba(55, 48, 163, 0.35);
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4f46e5;
  margin-bottom: 0.75rem;
}

.subtitle {
  text-align: center;
  color: #6366f1;
  font-weight: 600;
  margin-bottom: 3rem;
}

.term-item {
  background: #f0faff;
  border-left: 6px solid #6366f1;
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.term-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(99, 102, 241, 0.35);
}

.term-item p {
  font-size: 1.125rem;
  color: #312e81;
  line-height: 1.6;
}

.term-item span {
  font-weight: 700;
  color: #4338ca;
}

.btn-agree {
  display: inline-block;
  background: #4f46e5;
  color: white;
  font-weight: 700;
  text-align: center;
  padding: 1rem 3rem;
  border-radius: 9999px;
  font-size: 1.25rem;
  box-shadow: 0 8px 15px rgba(79, 70, 229, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  cursor: pointer;
  margin: 3rem auto 0;
  display: block;
  max-width: 280px;
}

.btn-agree:hover {
  background: #4338ca;
  box-shadow: 0 12px 25px rgba(67, 56, 202, 0.65);
}

/* Responsive Typography and Spacing */
@media (max-width: 768px) {
  .terms-wrapper {
    padding: 2.5rem 2rem;
    max-width: 95%;
  }
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .term-item {
    padding: 1.25rem 1.5rem;
  }
  .term-item p {
    font-size: 1rem;
  }
  .btn-agree {
    padding: 0.85rem 2.5rem;
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.9rem;
  }
  h2 {
    font-size: 1.125rem;
  }
  .btn-agree {
    max-width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}


.info-content a {
  color: #fff; /* Force white color */
  text-decoration: none; /* Remove underline */
}

.info-content a:hover {
  color: #ddd; /* Slight gray on hover for effect */
  text-decoration: underline; /* Optional: show underline on hover */
}
