/**
 * lists_guestbook.htm — banner + contact layout helpers (optional sections).
 */

.page-banner {
  position: relative;
  margin-bottom: 40px;
}

.banner-bg {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.banner-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../imgs/home/banner_contact.jpg") center center/cover no-repeat;
  opacity: 0.3;
}

.banner-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.banner-content {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 2;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.9;
  line-height: 1.6;
}

.banner-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.banner-breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.banner-breadcrumb a:hover {
  opacity: 0.8;
}

.banner-breadcrumb .separator {
  color: rgba(255, 255, 255, 0.6);
}

.banner-breadcrumb .current {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

@media (max-width: 768px) {
  .banner-bg {
    padding: 40px 0;
  }

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

  .banner-subtitle {
    font-size: 1rem;
  }
}

.contact-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  min-height: 600px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.contact-form-section {
  flex: 1;
  padding: 30px 25px;
  background: #fff;
}

.contact-image-section {
  flex: 1;
  background: url("../imgs/home/choose_us.jpg") center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-image-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.43);
  z-index: 1;
}

.image-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.contact-image-content {
  text-align: center;
  color: #fff;
  z-index: 2;
  position: relative;
}

.contact-image-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-image-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 280px;
  margin: 0 auto;
}

.contact-form-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
  text-align: center;
}

.contact-form-section .desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 25px;
  line-height: 1.5;
  text-align: center;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  display: block;
  font-size: 0.85rem;
}

.contact-form .required {
  color: #d80000;
  margin-left: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  background: #fafbfc;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.contact-form .row-flex {
  display: flex;
  gap: 10px;
}

.contact-form .row-flex .form-group {
  flex: 1;
  margin-bottom: 0;
}

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

.contact-form .whatsapp-hint {
  font-size: 11px;
  margin-top: 3px;
  color: #888;
  display: block;
  transition: color 0.2s;
}

.contact-form .whatsapp-hint.valid {
  color: #28a745;
}

.contact-form .whatsapp-hint.invalid {
  color: #dc3545;
}

.contact-form button[type="submit"] {
  width: 100%;
  background: #000000;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  padding: 10px 0;
  margin-top: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* lists_guestbook.htm layout (was inline styles) */
.guestbook-page-wrap {
  max-width: 80%;
  margin: 25px auto;
}

.guestbook-form-section {
  background: transparent;
}

.guestbook-side-photo {
  object-fit: contain;
  max-height: 640px;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 768px) {
  .guestbook-page-wrap {
    max-width: 100%;
    margin: 16px auto;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    margin: 10px;
  }

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

  .contact-image-section {
    min-height: 200px;
  }

  .contact-form .row-flex {
    flex-direction: column;
    gap: 0;
  }

  .contact-image-content h3 {
    font-size: 1.5rem;
  }

  .contact-image-content p {
    font-size: 0.9rem;
  }
}
