/* ยกเว้น icon ไม่ให้ใช้ฟอนต์ Prompt */
.contact-main-content :not([class*="fa"]):not(.material-icons) {
  font-family: 'Prompt', sans-serif;
}


.contact-main-content {
  display: flex;
  gap: 48px;
  max-width: 1100px;
  margin: 48px auto 56px auto;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 40px 32px;
  justify-content: space-between;
  align-items: flex-start;
  animation: fadeInUp 0.9s cubic-bezier(.6,-0.01,0,1.01);
  box-shadow: 0 8px 32px rgba(26,35,126,0.13), 0 1.5px 0 #ffb300 inset;
  border: 1.5px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #fff 80%, #ffb3000a 100%);
}

.contact-left, .contact-right {
  flex: 1 1 0;
  min-width: 0;
}

.contact-left {
  padding-right: 24px;
  border-right: 1.5px solid #f0f0f0;
  animation: fadeInLeft 1.1s 0.1s both;
}

.contact-right {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInRight 1.1s 0.2s both;
}

.contact-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a237e;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #ffb30011 0%, #fff 100%);
  border-radius: 16px;
  padding: 8px 18px 8px 10px;
  box-shadow: 0 2px 8px #ffb30011;
  animation: fadeInUp 1.1s 0.2s both;
}

.contact-address-block {
  margin-bottom: 32px;
}

.contact-address-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 1.5px 8px #1a237e0a;
  padding: 10px 16px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: fadeInUp 1.1s both;
}
.contact-address-item:hover {
  box-shadow: 0 4px 18px #ffb30033;
  transform: translateY(-2px) scale(1.03);
}

.contact-address-label {
  font-weight: 700;
  color: #ffb300;
  font-size: 1.08rem;
}

.contact-address-detail {
  color: #263159;
  font-size: 1.02rem;
}

.contact-info-list {
  margin-bottom: 32px;
}

.contact-info-item {
  font-size: 1.05rem;
  color: #263159;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 1.5px 8px #1a237e0a;
  padding: 10px 16px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: fadeInUp 1.1s both;
}
.contact-info-item:hover {
  box-shadow: 0 4px 18px #ffb30033;
  transform: translateY(-2px) scale(1.03);
}

/* Round, color-coded contact icons to match About page */
.contact-info-item i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  text-shadow: 0 0 1px rgba(0,0,0,0.25);
}
.contact-info-item .fa-envelope { background: linear-gradient(45deg, #ff8c00, #ffa500); }
.contact-info-item .fa-phone-alt { background: linear-gradient(45deg, #0b4fa8, #09408f); }
.contact-info-item .fa-line { background: linear-gradient(45deg, #00c300, #00e000); }

.contact-info-item a {
  color: #1a73e8;
  text-decoration: underline;
}

.contact-form {
  width: 100%;
  max-width: 400px;
  background: #f8fafc;
  border-radius: 24px;
  box-shadow: 0 2px 12px #1a237e11;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 4px 24px #ffb30022, 0 2px 12px #1a237e11;
  border: 1.5px solid #ffb30022;
  animation: kpsFloat 3.5s ease-in-out infinite;
  background: linear-gradient(120deg, #fff 80%, #ffb3000a 100%);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 700;
  color: #1a237e;
  font-size: 1.05rem;
}

.form-group input, .form-group textarea {
  font-family: 'Prompt', sans-serif;
  font-size: 1.05rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #263159;
  transition: border 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
  border: 1.5px solid #ffb300;
  outline: none;
}

.contact-submit-btn {
  background: linear-gradient(90deg, #ffb300 0%, #ff6f00 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.12rem;
  border: none;
  border-radius: 18px;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 2px 12px #ffb30033;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  margin-top: 8px;
  box-shadow: 0 2px 12px #ffb30033, 0 1.5px 0 #1a237e22 inset;
  animation: kpsGlow 2.5s infinite;
}
.contact-submit-btn:hover {
  background: linear-gradient(90deg, #ff6f00 0%, #ffb300 100%);
  transform: scale(1.04);
  box-shadow: 0 4px 18px #ffb30055;
}
.contact-submit-btn:active {
  box-shadow: 0 1px 4px #ffb30055;
  transform: scale(0.98);
}

#form-status {
  margin-top: 10px;
  font-size: 1.02rem;
  color: #1a237e;
  min-height: 24px;
}

@media (max-width: 900px) {
  .contact-main-content {
    flex-direction: column;
    gap: 24px;
    padding: 18px 4vw;
    border-radius: 0;
    box-shadow: none;
    animation: fadeInUp 0.9s cubic-bezier(.6,-0.01,0,1.01);
  }

  .contact-left, .contact-right {
    padding: 0;
    border: none;
    width: 100%;
    animation: none;
  }

  .contact-form {
    max-width: 100vw;
    padding: 18px 4vw 18px 4vw;
    animation: none;
  }
}

/* Animation keyframes */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ====== KPS Modern Soft Floating Effect & Accent Animation ====== */
@keyframes kpsFloat {
  0% { box-shadow: 0 4px 24px #ffb30022, 0 2px 12px #1a237e11; transform: translateY(0); }
  50% { box-shadow: 0 8px 32px #ffb30033, 0 4px 24px #1a237e22; transform: translateY(-6px); }
  100% { box-shadow: 0 4px 24px #ffb30022, 0 2px 12px #1a237e11; transform: translateY(0); }
}
@keyframes kpsGlow {
  0% { box-shadow: 0 0 0 0 #ffb30044; }
  70% { box-shadow: 0 0 16px 8px #ffb30044; }
  100% { box-shadow: 0 0 0 0 #ffb30044; }
}

/* Mobile Navigation System */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: linear-gradient(135deg, #00A651, #0077ff);
  border: none;
  border-radius: 12px;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1002;
  backdrop-filter: blur(5px);
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  z-index: 1003;
  overflow-y: auto;
  transition: right 0.3s ease-in-out;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #00A651, #0077ff);
  color: white;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo {
  height: 40px;
}

.mobile-brand {
  font-size: 14px;
  font-weight: 600;
  font-family: 'Prompt', sans-serif;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-content {
  padding: 30px 20px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 15px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-family: 'Prompt', sans-serif;
  font-weight: 500;
  border-radius: 12px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-link:hover {
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.1), rgba(0, 119, 255, 0.1));
  color: #00A651;
  transform: translateX(5px);
}

.mobile-nav-link i {
  width: 24px;
  color: #00A651;
  font-size: 18px;
}

/* Make contact icons more prominent */
.contact-info-item i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 18px;
  background:
    radial-gradient(60px 60px at 50% 28%, rgba(255,216,130,.95), rgba(255,216,130,0) 55%),
    linear-gradient(160deg, rgba(123, 154, 255, .22), rgba(59, 89, 255, .35) 60%, rgba(59, 89, 255, .45));
  box-shadow:
    inset 8px 8px 16px rgba(17,24,39,.08),
    6px 8px 18px rgba(17,24,39,.12);
}

.mobile-nav-link span {
  font-weight: 500;
}

.mobile-nav-dropdown {
  margin-bottom: 5px;
}

/* Show mobile menu toggle on mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .mobile-nav-menu {
    width: 280px;
  }
  
  .mobile-menu-toggle {
    width: 45px;
    height: 45px;
    font-size: 16px;
    top: 15px;
    right: 15px;
  }
}