/* ========== LIÊN HỆ PAGE STYLES ========== */

/* ========== CONTACT INTRO ========== */
.contact-intro {
  background: #e8f0e5;
}

.contact-intro__box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
}

.contact-intro__title {
  color: #2f6f44;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.contact-intro__text {
  color: #999;
  font-family: 'Crimson Text', 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 400;
  font-style: normal;
}

.text-line {
  margin-bottom: 0.2rem;
}

.text-line-1,
.text-line-2,
.text-line-3,
.text-line-4,
.text-line-5 {
  text-indent: 0;
}

.contact-intro__btn {
  display: inline-block;
  padding: 0.75rem 3rem;
  background: #2f6f44;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.contact-intro__btn:hover {
  background: #1f4f2f;
  color: #fff;
}

@media (max-width: 767.98px) {
  .contact-intro__title {
    font-size: 1.4rem;
  }
  .contact-intro__text {
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.7;
  }
}

/* ========== CONTACT INFO ========== */
.contact-info {
  background: #fff;
}

.contact-info__item {
  padding: 1.5rem;
}

.contact-info__icon-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border: 3px solid #5d4037;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-info__item:hover .contact-info__icon-wrap {
  transform: scale(1.05);
  border-color: #2f6f44;
}

.contact-info__icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.contact-info__title {
  color: #2f6f44;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info__text {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 767.98px) {
  .contact-info__icon-wrap {
    width: 80px;
    height: 80px;
  }
  .contact-info__icon {
    width: 40px;
    height: 40px;
  }
  .contact-info__title {
    font-size: 1rem;
  }
}

/* ========== CONTACT FORM SECTION ========== */
.contact-form-section {
  background: #f9f9f9;
}

/* Left Image */
.contact-form-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 550px;
  display: flex;
  flex-direction: column;
}

.contact-form-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex: 1;
}

.contact-form-image__text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(47, 111, 68, 0.9);
  color: #fff;
  padding: 2rem 1.5rem;
}

.contact-form-image__text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.contact-form-image__text p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Right Form */
.contact-form-box {
  background: #e8f0e5;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  height: 100%;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-box__title {
  color: #2f6f44;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.3;
}

.contact-form__input,
.contact-form__textarea {
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: #2f6f44;
  box-shadow: 0 0 0 0.2rem rgba(47, 111, 68, 0.15);
  outline: none;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form__btn {
  width: 100%;
  padding: 0.7rem;
  background: #7a4b12;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-form__btn:hover {
  background: #5a3509;
  transform: scale(1.02);
}

/* Form Loading State */
.contact-form__btn.loading {
  opacity: 0.8;
  cursor: not-allowed;
}

.contact-form__btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Form Messages */
#form-messages {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert {
  border-radius: 8px;
  border: none;
  font-weight: 500;
  animation: fadeIn 0.3s ease-out;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Form Validation */
.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Spinner Animation */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.125rem;
}

@media (max-width: 991.98px) {
  .contact-form-image {
    min-height: auto;
    height: auto;
  }
  .contact-form-image__img {
    height: auto;
  }
  .contact-form-image__text {
    padding: 1.5rem 1rem;
  }
  .contact-form-image__text h3 {
    font-size: 1.1rem;
  }
  .contact-form-box {
    padding: 2rem 1.5rem;
    min-height: auto;
    height: auto;
  }
  .contact-form-box__title {
    font-size: 1.3rem;
  }
}

@media (max-width: 767.98px) {
  .contact-form-image__text h3 {
    font-size: 1rem;
  }
  .contact-form-image__text p {
    font-size: 0.85rem;
  }
  .contact-form-box {
    padding: 1.5rem 1.25rem;
  }
  .contact-form-box__title {
    font-size: 1.2rem;
  }
  .contact-form__input,
  .contact-form__textarea {
    font-size: 0.9rem;
  }
}
