/* ===== CONTACT PAGE ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* SECTION HEADER */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  color: #1f488a;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #1f488a, transparent);
  border-radius: 2px;
}

.section-header p {
  color: #888;
  font-size: 16px;
  margin-top: 18px;
}

/* ===== CONTACT INFO ===== */
.contact-main {
  padding: 30px 0;
  background: #f5f7fa;
}

.contact-info-section {
  margin-bottom: 60px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 10px 28px;
  display: flex;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(31, 72, 138, 0.12);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1f488a, #2d5aa0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.icon-fallback {
  font-size: 24px;
  color: #fff;
}

.contact-card-content h3 {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-card-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.phone-number {
  font-size: 22px !important;
  font-weight: 700;
  color: #1f488a !important;
}

.phone-time {
  font-size: 13px !important;
  color: #999 !important;
}

.card-note {
  font-size: 13px !important;
  color: #999 !important;
}

.card-link {
  display: inline-block;
  color: #1f488a;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.card-link:hover {
  color: #16407a;
}

.qrcode-box {
  background: #f5f7fa;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
}

.qrcode-box img {
  width: 100px;
  object-fit: cover;
}

.qrcode-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* ===== MAP SECTION ===== */
.map-section {
  margin-bottom: 60px;
}

.map-container {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.map-placeholder {
  display: flex;
}

.map-content {
  flex: 1;
  min-height: 400px;
  background: #e8edf4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e8edf4, #d4dce8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 16px;
}

.map-info {
  width: 320px;
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-marker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.marker-icon {
  font-size: 28px;
}

.marker-text {
  font-size: 18px;
  font-weight: 600;
  color: #1f488a;
}

.map-address {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.map-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #1f488a;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: background 0.3s;
}

.map-btn:hover {
  background: #16407a;
}

/* ===== MESSAGE FORM ===== */
.message-section {
  margin-bottom: 60px;
}

.message-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.message-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.message-form .form-group {
  display: flex;
  flex-direction: column;
}

.message-form .form-group.full {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.message-form label {
  color: #333;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.required {
  color: #e74c3c;
  margin-right: 4px;
}

.message-form input,
.message-form select,
.message-form textarea {
  padding: 12px 16px;
  border: 2px solid #e0e5ec;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: #fff;
  transition: border-color 0.3s;
}

.message-form input:focus,
.message-form select:focus,
.message-form textarea:focus {
  border-color: #1f488a;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: #aaa;
}

.message-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* VERIFY CODE */
.verify-code-group {
  display: flex;
  gap: 12px;
}

.verify-code-group input {
  flex: 1;
}

.verify-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  background: linear-gradient(135deg, #f5f7fa, #e8edf4);
  border: 2px solid #e0e5ec;
  border-radius: 8px;
  cursor: pointer;
}

.code-num {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #1f488a;
}

.code-refresh {
  font-size: 14px;
  color: #999;
  transition: transform 0.3s;
}

.verify-code:hover .code-refresh {
  transform: rotate(180deg);
}

/* FORM ACTIONS */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.btn-submit,
.btn-reset {
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit {
  background: #1f488a;
  color: #fff;
  border: 2px solid #1f488a;
}

.btn-submit:hover {
  background: #16407a;
  border-color: #16407a;
}

.btn-reset {
  background: #fff;
  color: #666;
  border: 2px solid #ddd;
}

.btn-reset:hover {
  border-color: #1f488a;
  color: #1f488a;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  margin-bottom: 40px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-icon {
  width: 36px;
  height: 36px;
  background: #1f488a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-question h4 {
  flex: 1;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.faq-answer {
  display: none;
  padding: 0 24px 20px 76px;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

.faq-item.active .faq-question {
  border-bottom: 1px solid #eee;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: #27ae60;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.modal-content h3 {
  color: #333;
  font-size: 22px;
  margin-bottom: 12px;
}

.modal-content p {
  color: #666;
  font-size: 15px;
  margin-bottom: 24px;
}

.modal-close {
  padding: 12px 32px;
  background: #1f488a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-close:hover {
  background: #16407a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .container {
    padding: 0 3%;
  }
  .section-header{
    display: none;
  }
  .contact-info-section{
    margin-bottom: 30px;
  }
  .contact-info-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .map-placeholder {
    flex-direction: column;
  }
  
  .map-info {
    width: 100%;
  }
  .map-content{
    min-height: auto;
  }
  .message-form .form-row{
    grid-template-columns: repeat(1, 1fr);
  }
  .message-form-wrapper {
    padding: 24px;
  }
}



/* ===== TIPS SECTION (Message Page) ===== */
.tips-section {
  margin-bottom: 60px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tips-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tips-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(31, 72, 138, 0.12);
}

.tips-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.tips-card h3 {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.tips-card p {
  color: #888;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== QUICK CONTACT (Message Page) ===== */
.quick-contact {
  margin-bottom: 40px;
}

.quick-contact-card {
  background: linear-gradient(135deg, #1f488a, #2d5aa0);
  border-radius: 16px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.quick-info h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.quick-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.quick-actions {
  display: flex;
  gap: 16px;
}

.quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 8px;
  transition: all 0.3s;
}

.quick-btn.phone-btn {
  background: #fff;
  color: #1f488a;
}

.quick-btn.phone-btn:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
}

.quick-btn.contact-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.quick-btn.contact-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.quick-icon {
  font-size: 24px;
}

.quick-text {
  display: flex;
  flex-direction: column;
}

.quick-text small {
  font-size: 12px;
  opacity: 0.8;
}

.quick-text strong {
  font-size: 15px;
  font-weight: 600;
}

/* ===== RESPONSIVE FOR MESSAGE PAGE ===== */
@media (max-width: 960px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-contact-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  
  .quick-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .quick-btn {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .tips-grid {
    grid-template-columns: 1fr;
  }
}
