/* Contact Page Styles - Enhanced Version */

/* Section Spacing */
.contact.section {
  padding: 60px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

/* Map Container - No Movement */
.map-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.map-container:hover {
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.18);
}

/* Contact Info Wrapper - Match Map Height */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 450px;
}

/* Contact Info Cards - Equal Height Distribution */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(137, 40, 127, 0.1);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-color, #89287f) 0%, #6a1f5f 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.contact-info-card:hover::before {
  transform: scaleY(1);
}

.contact-info-card:hover {
  box-shadow: 0 8px 30px rgba(137, 40, 127, 0.12);
  border-color: rgba(137, 40, 127, 0.2);
}

/* Icon Box - Smaller & Proportional */
.icon-box {
  flex-shrink: 0;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color, #89287f) 0%, #6a1f5f 100%);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(137, 40, 127, 0.25);
  transition: box-shadow 0.3s ease;
}

.contact-info-card:hover .icon-box {
  box-shadow: 0 8px 25px rgba(137, 40, 127, 0.35);
}

.icon-box i {
  font-size: 30px;
  color: #ffffff;
}

/* Info Content - Enhanced Typography */
.info-content {
  flex: 1;
  min-width: 0;
}

.info-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

/* Address Text - Balanced & Readable */
.address-text {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  font-weight: 400;
  margin: 0;
}

/* Contact Text - Professional Look */
.contact-text {
  font-size: 16px;
  font-weight: 600;
  margin: 5px 0;
  color: #2c3e50;
  line-height: 1.5;
}

.contact-text.sub-text {
  font-size: 15px;
  font-weight: 500;
  color: #666;
  margin-top: 8px;
}

/* Contact Links - No Movement */
.contact-link {
  color: var(--accent-color, #89287f);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  position: relative;
}

.contact-link:hover {
  color: #6a1f5f;
}

/* ========================================
   Complain Section - ส่วนร้องเรียน
   ======================================== */
.complain-section {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(220, 53, 69, 0.1);
}

.complain-section .section-title {
  color: #dc3545;
}

.complain-section .section-title i {
  color: #dc3545;
}

.section-subtitle {
  font-size: 16px;
  color: #666;
  font-weight: 400;
}

/* Complain Cards */
.complain-card {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 35px 30px;
  background: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 160px;
}

.complain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.complain-card:hover::before {
  opacity: 1;
}

.complain-card:hover {
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

/* Complain Submit Card */
.complain-submit-card .complain-icon {
  background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.complain-submit-card:hover {
  border-color: rgba(220, 53, 69, 0.3);
}

.complain-submit-card:hover .complain-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
}

.complain-submit-card .complain-btn {
  background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

.complain-submit-card:hover .complain-btn {
  background: linear-gradient(135deg, #b02a37 0%, #8b2131 100%);
}

/* Complain Track Card */
.complain-track-card .complain-icon {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

.complain-track-card:hover {
  border-color: rgba(23, 162, 184, 0.3);
}

.complain-track-card:hover .complain-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(23, 162, 184, 0.4);
}

.complain-track-card .complain-btn {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.complain-track-card:hover .complain-btn {
  background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
}

/* Complain Icon */
.complain-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.complain-icon i {
  font-size: 36px;
  color: #ffffff;
}

/* Complain Content */
.complain-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.complain-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.complain-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Complain Button */
.complain-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.complain-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.complain-card:hover .complain-btn i {
  transform: translateX(5px);
}

/* ========================================
   Social Section
   ======================================== */
.social-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color, #2c3e50);
  margin-bottom: 40px;
}

.section-title i {
  color: var(--accent-color, #89287f);
  margin-right: 10px;
}

/* Social Cards - Fixed Equal Height & No Movement */
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 40px 25px;
  height: 280px;
  background: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.social-card:hover::before {
  opacity: 1;
}

.social-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.social-icon {
  width: 85px;
  height: 85px;
  margin-bottom: 20px;
  margin-top: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Facebook Card */
.facebook-card .social-icon {
  background: linear-gradient(135deg, #1877f2 0%, #0d5cbf 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.25);
}

.facebook-card:hover {
  border-color: rgba(24, 119, 242, 0.3);
}

.facebook-card:hover .social-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.35);
}

/* YouTube Card */
.youtube-card .social-icon {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.25);
}

.youtube-card:hover {
  border-color: rgba(255, 0, 0, 0.3);
}

.youtube-card:hover .social-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.35);
}

/* LinkedIn Card */
.linkedin-card .social-icon {
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(10, 102, 194, 0.25);
}

.linkedin-card:hover {
  border-color: rgba(10, 102, 194, 0.3);
}

.linkedin-card:hover .social-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(10, 102, 194, 0.35);
}

/* LINE Card */
.line-card .social-icon {
  background: linear-gradient(135deg, #00b900 0%, #009900 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 185, 0, 0.25);
}

.line-card:hover {
  border-color: rgba(0, 185, 0, 0.3);
}

.line-card:hover .social-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 185, 0, 0.35);
}

.social-card h4 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.social-card p {
  font-size: 15px;
  color: #666;
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 10px;
}

/* QR Code Section - No Movement */
.qr-code-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.qr-code-section h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color, #2c3e50);
  margin-bottom: 30px;
}

.qr-code-section h3 i {
  color: var(--accent-color, #89287f);
  margin-right: 10px;
}

.qr-code-wrapper {
  display: inline-block;
}

.qr-code-link {
  display: block;
  transition: none;
}

.qr-code-image {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(137, 40, 127, 0.2);
  padding: 20px;
  background: white;
  border: 3px solid var(--accent-color, #89287f);
  transition: box-shadow 0.3s ease, border-width 0.3s ease;
}

.qr-code-image:hover {
  box-shadow: 0 12px 45px rgba(137, 40, 127, 0.3);
  border-width: 4px;
}

.qr-code-hint {
  margin-top: 20px;
  font-size: 16px;
  color: var(--default-color, #666);
  font-weight: 500;
}

.qr-code-hint i {
  color: var(--accent-color, #89287f);
  margin-right: 8px;
  font-size: 18px;
}

/* Page Title Enhancement */
.page-title .heading h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--heading-color, #2c3e50);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-title .heading p {
  color: var(--default-color, #666);
  font-size: 20px;
  font-weight: 500;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
  .map-container iframe {
    height: 350px !important;
  }
  
  .contact-info-wrapper {
    height: 350px;
  }
  
  .contact-info-card {
    padding: 30px;
  }
  
  .icon-box {
    width: 70px;
    height: 70px;
  }
  
  .icon-box i {
    font-size: 30px;
  }
  
  .complain-section {
    padding: 50px 30px;
  }
  
  .complain-card {
    padding: 30px 25px;
    min-height: 140px;
  }
  
  .complain-icon {
    width: 70px;
    height: 70px;
  }
  
  .complain-icon i {
    font-size: 32px;
  }
  
  .social-section {
    padding: 50px 30px;
  }
  
  .social-card {
    margin-bottom: 20px;
    height: 260px;
  }
  
  .social-icon {
    width: 75px;
    height: 75px;
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .page-title .heading h1 {
    font-size: 36px;
  }
  
  .map-container iframe {
    height: 300px !important;
    border-radius: 12px;
  }
  
  .contact-info-wrapper {
    height: auto;
  }
  
  .contact-info-card {
    padding: 25px;
    gap: 20px;
  }
  
  .icon-box {
    width: 65px;
    height: 65px;
  }
  
  .icon-box i {
    font-size: 28px;
  }
  
  .info-content h3 {
    font-size: 18px;
  }
  
  .address-text,
  .contact-text {
    font-size: 15px;
  }
  
  .contact-text.sub-text {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .complain-section {
    padding: 40px 20px;
  }
  
  .complain-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }
  
  .complain-icon {
    width: 70px;
    height: 70px;
  }
  
  .complain-content h4 {
    font-size: 18px;
  }
  
  .complain-content p {
    font-size: 13px;
  }
  
  .social-section {
    padding: 40px 20px;
  }
  
  .social-card {
    padding: 35px 20px;
    height: 250px;
  }
  
  .social-icon {
    width: 70px;
    height: 70px;
    font-size: 35px;
  }
  
  .social-card h4 {
    font-size: 20px;
  }
  
  .social-card p {
    font-size: 14px;
  }
  
  .qr-code-section {
    padding: 35px 20px;
  }
  
  .qr-code-section h3 {
    font-size: 24px;
  }
  
  .qr-code-image {
    max-width: 220px;
  }
}

@media (max-width: 576px) {
  .contact-info-card {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }
  
  .complain-card {
    min-height: auto;
  }
  
  .social-card {
    height: auto;
    min-height: 240px;
    padding: 30px 20px;
  }
}

/* Smooth Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}