:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
}

:root { 
  --background-color: #ffffff; 
  --default-color: #342c26;
  --heading-color: #2c1607; 
  --accent-color: #23469f; 
  --surface-color: #ffffff;
  --contrast-color: #ffffff; 
}

.light-background {
  --background-color: #f9f7f6;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

.contact .contact-main-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .contact .contact-main-wrapper {
    grid-template-columns: 45% 55%;
    min-height: 600px;
  }
}

.contact .map-wrapper {
  height: 300px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .contact .map-wrapper {
    height: 100%;
    position: sticky;
    top: 100px;
  }
}

.contact .contact-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact .contact-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 576px) {
  .contact .contact-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact .contact-card {
  background-color: var(--surface-color);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact .contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact .contact-card .icon-box {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-color:#cbdffb;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact .contact-card .icon-box i {
  font-size: 22px;
  color:rgb(23, 51, 130);
}

.contact .contact-card .contact-text h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--heading-color);
}

.contact .contact-card .contact-text p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--default-color);
  margin-bottom: 0;
}

.contact .contact-form-container {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact .contact-form-container h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--heading-color);
  position: relative;
  padding-left: 15px;
}

.contact .contact-form-container h3:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: rgb(23, 51, 130);
  border-radius: 2px;
}

.contact .contact-form-container>p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--default-color);
}
.contact .contact-form-container .email-form .form-control {
    height: auto;
    padding: 12px 20px;
    border-radius: 10px;
    background-color: color-mix(in srgb, var(--background-color), #f5f8fd 30%);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    color: var(--default-color);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.contact .contact-form-container .email-form .form-control:focus {
  background-color: var(--surface-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.contact .contact-form-container .email-form .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.contact .contact-form-container .email-form textarea.form-control {
  min-height: 140px;
}

.contact .contact-form-container .email-form .form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 576px) {
  .contact .contact-form-container .email-form .form-submit {
    flex-direction: column;
    align-items: flex-start;
  }
}

.contact .contact-form-container .email-form button {
  background-color:rgb(33, 60, 134);
  color: var(--contrast-color);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;

}

.contact .contact-form-container .email-form button:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 15%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px color-mix(in srgb, var(--accent-color), transparent 75%);
}

@media (max-width: 768px) {
  .contact .contact-form-container {
    padding: 25px 20px;
  }

  .contact .contact-form-container h3 {
    font-size: 22px;
  }
}

.contact-hero-wrapper {
  position: relative;
  background-image: linear-gradient(rgba(0, 50, 150, 0.8), rgba(0, 50, 150, 0.8)),
                    url("assets/bluebldg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #fff;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 60px; 
}

.contact-hero-text-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.contact-hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: #e0e0e0;
  font-family: 'Montserrat', sans-serif !important;
}

.contact-hero-logo-blur {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  opacity: 0.1;
  z-index: 1;
  max-width: 350px;
}

.contact-hero-logo-blur img {
  width: 100%;
  height: auto;
}


/* Tablet (≤ 768px) */
@media (max-width: 768px) {
  .contact-hero-wrapper {
    padding: 80px 15px;
  }

  .contact-hero-title {
    font-size: 2.3rem;
  }

  .contact-hero-subtitle {
    font-size: 1rem;
  }

  .contact-hero-logo-blur {
    max-width: 250px;
    left: 15px;
  }
}

/* Mobile (≤ 567px) */
@media (max-width: 567px) {
  .contact-hero-wrapper {
    padding: 60px 12px;
  }

  .contact-hero-title {
    font-size: 1.8rem;
  }

  .contact-hero-subtitle {
    font-size: 0.95rem;
  }

  .contact-hero-logo-blur {
    max-width: 180px;
    left: 10px;
  }
}

.contact {
  margin-bottom: 60px; 
}

@media (max-width: 768px) {
  .contact {
    margin-bottom: 40px;
  }
}

@media (max-width: 567px) {
  .contact {
    margin-bottom: 30px;
  }
}

.contact-card .contact-text a {
  color: inherit;    
  text-decoration: none;
}

.contact-card .contact-text a:hover {
  text-decoration: underline;
}

/* --- Message Base Styles --- */
.email-form .error-message,
.email-form .sent-message,
.email-form .loading {
  display: none;
  padding: 0;
  margin: 20px auto;
  font-weight: 500;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  animation: fadeInUp 0.3s ease forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  max-width: 500px;
}

/* --- Error Message --- */
.email-form .error-message {
  color: #e02424;
}

.email-form .error-message::before {
  font-size: 1.2em;
}

/* --- Success Message --- */
.email-form .sent-message {
  color: #2f855a;
}

.email-form .sent-message::before {
  font-size: 1.2em;
}

/* --- Loading Spinner --- */
.email-form .loading {
  color: #444;
  font-style: italic;
  gap: 12px;
}

.email-form .loading::before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  border: 3px solid #2f855a;
  border-top-color: transparent;
  animation: email-form-loading 1s linear infinite;
}

/* --- Animations --- */
@keyframes email-form-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g-recaptcha {
  display: flex !important;
  justify-content: center !important;
}

@media (max-width: 576px) {
  .g-recaptcha {
    justify-content: flex-start !important;
  }
}