.contact-wrap {
  background: white;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 40px;
  margin: 0 auto;
  text-align: center;
}

.sub-heading-wrap p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--tertiary-900, rgba(255, 255, 255, 0.8));
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 16px;
}

.contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
  padding: 0 24px 40px;
  width: 100%;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: rgba(5, 75, 171, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-900, #054bab);
  box-shadow: 0 15px 40px rgba(5, 75, 171, 0.2);
}

.contact-card-icon {
  font-size: 32px;
  color: var(--primary-900, #054bab);
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 75, 171, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.1);
  background: var(--primary-900, #054bab);
  color: white;
}

.contact-card-content {
  flex: 1;
}

.contact-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-900, #054bab);
  margin-bottom: 8px;
}

.contact-card-text {
  font-size: 16px;
  color: var(--tertiary-900, rgba(255, 255, 255, 0.7));
  line-height: 1.6;
}

.contact-card-text a {
  color: var(--primary-900, #054bab);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-card-text a:hover {
  color: var(--secondary-900, #e65100);
  text-decoration: underline;
}

.social-links {
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(5, 75, 171, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--primary-900, #054bab);
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-900, #054bab);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(5, 75, 171, 0.3);
}

.contact-form-section {
  background: rgba(5, 75, 171, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  align-items: center;
}

.contact-form-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-900, #054bab);
  margin-bottom: 32px;
  text-align: center;
}

.contact-form-wrap {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

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

.form-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-900, #054bab);
  margin-bottom: 8px;
  display: block;
}

.text-field-v5,
textarea.text-field-v5,
select.text-field-v5 {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(5, 75, 171, 0.4);
  border-radius: 12px;
  color: var(--tertiary-900, rgba(0, 0, 0, 0.9));
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.text-field-v5:focus,
textarea.text-field-v5:focus,
select.text-field-v5:focus {
  outline: none;
  border-color: var(--primary-900, #054bab);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(5, 75, 171, 0.1);
}

.text-field-v5::placeholder,
textarea.text-field-v5::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

textarea.text-field-v5 {
  min-height: 120px;
  resize: vertical;
}

select.text-field-v5 {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.form-submit-button {
  padding: 16px 48px;
  background: var(--primary-900, #054bab);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 75, 171, 0.3);
}

.form-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 75, 171, 0.4);
  background: var(--secondary-900, #e65100);
}

.form-submit-button:active {
  transform: translateY(0);
}

.form-success-message {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  padding: 20px;
  color: #4caf50;
  text-align: center;
  margin-top: 20px;
}

.form-error-message {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 12px;
  padding: 20px;
  color: #f44336;
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 991px) {
  .contact-bottom {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {

  .heading-wrap h1 {
    font-size: 36px;
  }

  .sub-heading-wrap p {
    font-size: 16px;
  }

  .contact-form-section {
    padding: 28px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-submit-button {
    width: 100%;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

@media (max-width: 479px) {

  .contact-form-section {
    padding: 20px 16px;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact-card-icon {
    margin: 0 auto;
  }
}
