/* ==========================================================================
   EL-MET Contact Page Styles
   ========================================================================== */

/* HERO BANNER */
.contact-hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.contact-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.contact-hero-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.contact-hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
}

/* CONTACT FORM */
#contact-form {
  scroll-margin-top: 110px;
}
.contact-form-section {
  padding: 40px 0 120px;
  background: #fff;
}
.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.contact-form-wrap h2 {
  font-size: 28px;
  font-weight: 400;
  color: #2D2727;
  margin-bottom: 40px;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.contact-form-field {
  display: flex;
  flex-direction: column;
}
.contact-form-field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #2D2727;
  margin-bottom: 8px;
}
.contact-form-field input,
.contact-form-field textarea {
  border: 1px solid #ccc;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #2D2727;
  background: #fff;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
}
.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: #2164B9;
}
.contact-form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form-full {
  margin-bottom: 32px;
}
.contact-submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: #2164B9;
  border: 2px solid #2164B9;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.contact-submit-btn:hover {
  background: #fff;
  color: #2164B9;
}

/* REPRESENTATIVES */
#representatives {
  scroll-margin-top: 110px;
}
.contact-reps {
  padding: 120px 0 40px;
  background: #fff;
}
.contact-reps-header {
  text-align: center;
  margin-bottom: 60px;
}
.contact-reps-header h2 {
  font-size: 32px;
  font-weight: 400;
  color: #2D2727;
  margin-bottom: 20px;
}
.contact-reps-header .reps-divider {
  width: 60px;
  height: 2px;
  background: #2164B9;
  margin: 0 auto 20px;
}
.contact-reps-subtitle {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}

/* Rep row layout - country left, details right */
.contact-reps-list {
  max-width: 1000px;
  margin: 0 auto;
}
.contact-rep-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid #ddd;
  padding: 40px 0;
}
.contact-rep-row:last-child {
  border-bottom: 1px solid #ddd;
}
.contact-rep-pair {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  padding: 0 20px;
}
.contact-rep-pair:first-child {
  padding-left: 0;
}
.contact-rep-pair:last-child {
  padding-right: 0;
}
.rep-country {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2D2727;
  line-height: 1.6;
}
.rep-details,
.rep-details p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}
.rep-details a {
  color: #555;
  text-decoration: none;
}
.rep-details a:hover {
  color: #2D2727;
}

/* Card style for representatives */
.contact-rep-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid #ddd;
}
.contact-rep-card:last-child {
  border-bottom: 1px solid #ddd;
}
.contact-rep-card .rep-country {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2D2727;
}
.contact-rep-card .rep-info {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.rep-name {
  font-weight: 600;
  color: #2D2727;
  margin-bottom: 4px;
}
.contact-rep-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.contact-rep-card a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}
.contact-rep-card a:hover {
  color: #2164B9;
}

/* HEADQUARTERS */
.contact-hq {
  padding: 120px 0;
  background: #f5f5f5;
}
.contact-hq-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-hq-map iframe {
  width: 100%;
  height: 450px;
  border: 0;
  filter: grayscale(1) contrast(0.9);
  display: block;
}
.contact-hq-info h2 {
  font-size: 28px;
  font-weight: 400;
  color: #2D2727;
  margin-bottom: 40px;
}
.contact-hq-hours {
  margin-bottom: 32px;
}
.contact-hq-hours h3,
.contact-hq-detail h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2D2727;
  margin-bottom: 12px;
}
.contact-hq-hours table {
  border-collapse: collapse;
}
.contact-hq-hours table td {
  font-size: 15px;
  color: #555;
  padding: 6px 24px 6px 0;
}
.contact-hq-detail {
  margin-bottom: 32px;
}
.contact-hq-detail p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}
.contact-hq-detail a {
  color: #555;
  text-decoration: none;
}
.contact-hq-detail a:hover {
  color: #2D2727;
}

/* Hide footer map on contact page (HQ section already has one) */
.elmet-footer .elmet-map {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .contact-rep-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-rep-pair {
    padding: 0 !important;
    border-right: none !important;
  }
  .contact-rep-card {
    grid-template-columns: 160px 1fr;
  }
  .contact-hq-grid {
    grid-template-columns: 1fr;
  }
  .contact-hq-map iframe {
    height: 350px;
  }
}
@media (max-width: 768px) {
  .contact-hero {
    height: 40vh;
    min-height: 280px;
  }
  .contact-form-section {
    padding: 60px 0;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
  .contact-reps {
    padding: 60px 0;
  }
  .contact-rep-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-rep-pair {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-hq {
    padding: 60px 0;
  }
  .contact-hq-map iframe {
    height: 280px;
  }
}


/* Hide footer map on contact page */
.elmet-map { display: none; }


/* CF7 OVERRIDES - match existing design */
.contact-form-wrap .wpcf7 form { margin:0; padding:0; }
.contact-form-wrap .wpcf7 .contact-form-row { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:24px; }
.contact-form-wrap .wpcf7 .contact-form-field { display:flex; flex-direction:column; }
.contact-form-wrap .wpcf7 .contact-form-field label { font-size:13px; font-weight:600; letter-spacing:0.5px; color:#2D2727; margin-bottom:8px; }
.contact-form-wrap .wpcf7 .contact-form-field .wpcf7-form-control-wrap { display:block; }
.contact-form-wrap .wpcf7 input[type="text"],
.contact-form-wrap .wpcf7 input[type="email"],
.contact-form-wrap .wpcf7 input[type="tel"],
.contact-form-wrap .wpcf7 textarea { width:100%; border:1px solid #ccc; padding:12px 14px; font-size:15px; font-family:inherit; color:#2D2727; background:#fff; outline:none; transition:border-color 0.3s; border-radius:0; -webkit-appearance:none; }
.contact-form-wrap .wpcf7 input:focus,
.contact-form-wrap .wpcf7 textarea:focus { border-color:#2164B9; }
.contact-form-wrap .wpcf7 textarea { resize:vertical; min-height:120px; }
.contact-form-wrap .wpcf7 .contact-form-full { margin-bottom:32px; }
.contact-form-wrap .wpcf7 .contact-submit-btn { display:block; width:100%; padding:16px; font-size:14px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:#fff; background:#2164B9; border:2px solid #2164B9; cursor:pointer; transition:all 0.3s; font-family:inherit; border-radius:0; -webkit-appearance:none; }
.contact-form-wrap .wpcf7 .contact-submit-btn:hover { background:#fff; color:#2164B9; }
.contact-form-wrap .wpcf7 .wpcf7-response-output { border:none !important; padding:16px 0 !important; margin:16px 0 0 !important; font-size:14px; }
.contact-form-wrap .wpcf7 .wpcf7-not-valid-tip { font-size:12px; color:#c00; margin-top:4px; }
.contact-form-wrap .wpcf7 .wpcf7-spinner { margin:16px 0; }
@media (max-width:768px) {
  .contact-form-wrap .wpcf7 .contact-form-row { grid-template-columns:1fr; gap:16px; margin-bottom:16px; }
}