/* Contact & Footer Styles */
:root {
  --submit-btn-hover-color: #c4a030;
  --footer-social-bg-color: rgba(255,255,255,0.1);
}

.contact {
  background-color: var(--light-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-form {
      max-width: 600px;
      margin: 0 auto;
      background-color: var(--secondary-color);
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

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

    .form-label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: var(--primary-color);
      font-size: 0.95rem;
    }

    .form-control {
      width: 100%;
      padding: 12px 15px;
      border: 1px solid var(--medium-gray);
      border-radius: 5px;
      font-size: 1rem;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
      font-family: var(--body-font);
    }

    .form-control:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 5px rgba(44, 62, 80, 0.2);
    }

    .form-control.error {
      border-color: var(--error-color);
    }

    textarea.form-control {
      min-height: var(--textarea-min-height);
      resize: vertical;
    }

    .phone-input-container {
      display: flex;
      position: relative;
    }

    .country-select {
      position: relative;
      min-width: 100px;
    }

    .selected-flag {
      display: flex;
      align-items: center;
      padding: 10px;
      background-color: var(--light-gray);
      border: 1px solid var(--medium-gray);
      border-right: none;
      border-top-left-radius: 5px;
      border-bottom-left-radius: 5px;
      cursor: pointer;
      height: 46px;
      user-select: none;
    }

    .flag {
      width: 20px;
      height: 15px;
      margin-right: 8px;
      background-size: cover;
      background-position: center;
    }

    .dial-code {
      font-size: 0.95rem;
      color: var(--primary-color);
    }

    .country-list {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: var(--secondary-color);
      border: 1px solid var(--medium-gray);
      border-radius: 5px;
      max-height: 200px;
      overflow-y: auto;
      z-index: 1000;
      list-style: none;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .country-list.visible {
      display: block;
    }

    .country {
      display: flex;
      align-items: center;
      padding: 10px;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .country:hover,
    .country.active {
      background-color: var(--light-gray);
    }

    .country-name {
      flex: 1;
      font-size: 0.95rem;
      color: var(--primary-color);
    }

    .phone-number {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }

    .error-message {
      color: var(--error-color);
      font-size: 0.85rem;
      margin-top: 5px;
      display: none;
    }

    .error-message.visible {
      display: block;
    }

    .submit-btn {
      background-color: var(--primary-color);
      color: var(--secondary-color);
      border: none;
      padding: 12px 25px;
      border-radius: 5px;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.3s ease;
      width: 100%;
      font-size: 1rem;
      font-family: var(--heading-font);
    }

    .submit-btn:hover {
      background-color: var(--submit-btn-hover-color);
    }

    .submit-btn:disabled {
      background-color: var(--medium-gray);
      cursor: not-allowed;
    }

    .status-message {
      margin-top: 20px;
      padding: 10px;
      border-radius: 5px;
      font-size: 0.95rem;
      text-align: center;
      display: none;
    }

    .status-message.success {
      background-color: var(--success-color);
      color: var(--secondary-color);
      display: block;
    }

    .status-message.error {
      background-color: var(--error-color);
      color: var(--secondary-color);
      display: block;
    }

    @media (max-width: 576px) {
      .contact-form {
        padding: 20px;
      }

      .form-control {
        font-size: 0.95rem;
      }

      .submit-btn {
        font-size: 0.95rem;
      }
    }


.contact-info {
  display: flex;
  flex-direction: column;
}

.info-card {
  background-color: var(--white-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.info-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.info-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.info-item {
  display: flex;
  margin-bottom: 15px;
}

.info-icon {
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 1.2rem;
}
.info-text {
  color: #333333; /* Adjusted to a darker shade for better contrast */
  transition: all 0.3s ease;
}

.info-text a {
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-text a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: var(--secondary-color);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}


/* Footer Styles */
.footer {
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 20px;
  max-width: 150px;
}

.footer-about p {
  color: var(--medium-gray);
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--white-color);
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--medium-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact-item {
  display: flex;
  margin-bottom: 15px;
}

.footer-contact-icon {
  margin-right: 15px;
  color: var(--primary-color);
}

.footer-contact-text {
  color: var(--medium-gray);
}

.footer-contact-text a {
  color: var(--medium-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-text a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  margin-top: 20px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  background-color: var(--footer-social-bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: var(--white-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

/* The copyright text uses a smaller font size (0.9rem) to maintain a subtle appearance while ensuring readability. 
   This choice aligns with the overall design system and accessibility standards. */
.copyright {
  color: var(--medium-gray);
  font-size: 0.9rem; /* Small but accessible font size */
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-content > * {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-heading {
    font-size: 1.3rem;
  }
}
