/* ===== CONTACT PAGE ENHANCED STYLES ===== */

.contact-hero {
  padding: 90px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.88) 100%),
              url('../image-optimized/hero_1.webp') no-repeat center/cover;
  color: #ffffff;
}

.contact-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
}

.contact-hero p {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto;
}

/* Contact Main Section */
.contact-section {
  padding: 80px 20px;
  max-width: 1250px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Contact Info Card */
.contact-info {
  background: #ffffff;
  padding: 38px 34px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.contact-info-header {
  margin-bottom: 22px;
}

.info-pill {
  display: inline-block;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  margin-bottom: 10px;
}

.contact-info h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.info-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* Contact Directory & Representative Cards */
.contact-directory {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
}

.directory-header {
  margin-bottom: 14px;
}

.directory-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
}

.directory-badge svg {
  color: #dc2626;
  flex-shrink: 0;
}

.contact-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rep-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.rep-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}

.rep-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.rep-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.avatar-wong {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #dc2626;
  border: 1.5px solid #fca5a5;
}

.avatar-lee {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1.5px solid #93c5fd;
}

.avatar-gerald {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #16a34a;
  border: 1.5px solid #86efac;
}

.rep-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rep-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rep-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.rep-lang-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  line-height: 1.35;
  white-space: nowrap;
}

.tag-wong {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.tag-lee {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.tag-gerald {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.rep-phone-number {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.2px;
}

.rep-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-rep-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-call {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.btn-call:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: translateY(-1px);
}

.btn-wa {
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  color: #ffffff !important;
  border: 1px solid #1da851;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.btn-wa:hover {
  background: linear-gradient(135deg, #1ebc59 0%, #158741 100%);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* General Office Details List */
.general-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.general-info-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.general-info-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.info-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.info-text-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.general-info-item a.email-link {
  color: #dc2626;
  text-decoration: none;
  transition: color 0.2s;
}

.general-info-item a.email-link:hover {
  color: #991b1b;
  text-decoration: underline;
}

@media (max-width: 580px) {
  .contact-info {
    padding: 24px 18px;
  }
  .rep-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .rep-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .btn-rep-action {
    justify-content: center;
  }
}

/* Contact Form Card */
.contact-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.contact-form h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 25px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #1e293b;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #dc2626;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
}

.form-status.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-status.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Map Section */
.map-section {
  padding: 60px 20px 90px;
  max-width: 1250px;
  margin: 0 auto;
  text-align: center;
}

.map-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.map-section iframe {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
}

@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
