/* =================================================
   CONTACT US PAGE — contact.css
   Node/3 — All three sections
   ================================================= */

/* ── Shared page reset ── */
.contact-us-section,
.our-branch-section,
.customer-support-section {
  background-color: #ffffff;
  font-family: 'Inter', 'Roboto', sans-serif;
}

/* =================================================
   SECTION 1 — CONTACT US (Hero + Form)
   ================================================= */

@media (min-width: 768px) {
  .contact-us-section {
    padding: 72px 0 80px;
  }
}

.contact-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

/* ── Left column ── */
.contact-us-left {
  padding-right: 20px;
  padding-top: 3rem;
}

.contact-us-title {
  font-size: 50px;
  font-weight: 500;
  color: #0f1117;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 16px;
}

.contact-us-description {
  font-size: 18px;
  color: #555f6d;
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 28px;
}

.contact-us-description p {
  margin: 0;
}

/* Contact info rows */
.contact-info-list {
  display: flex;
  flex-direction: column;
}

/* Drupal wraps all items in .field__items — target that as the real flex parent */
.contact-info-list .field__items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-list .field__item {
  display: block;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e2e5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f8f9fa;
  overflow: hidden;
}

.contact-info-icon img,
.contact-info-icon svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
}

/* Fix Drupal image field wrapper inside icon */
.contact-info-icon .field--type-image,
.contact-info-icon .field__item,
.contact-info-icon .field__items {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.contact-info-label {
  font-size: 18px;
  font-weight: 500;
  color: #0f1117;
  line-height: 1.5;
}

/* ── Right column — Form card ── */
.contact-us-right {
  position: sticky;
  top: 100px;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-form-card__heading {
  font-size: 20px;
  font-weight: 700;
  color: #0f1117;
  margin: 0 0 28px;
}

/* Webform field overrides */
.contact-form-wrap .form-item {
  margin-bottom: 20px;
}

.contact-form-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.contact-form-wrap .form-control,
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #0f1117;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.contact-form-wrap .form-control:focus,
.contact-form-wrap input[type="text"]:focus,
.contact-form-wrap input[type="email"]:focus,
.contact-form-wrap input[type="tel"]:focus,
.contact-form-wrap textarea:focus {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.contact-form-wrap textarea {
  resize: vertical;
  min-height: 110px;
}

/* Two-column form row (first name + last name) */
.contact-form-wrap .webform-flexbox,
.contact-form-wrap .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Submit button */
.contact-form-wrap .form-submit,
.contact-form-wrap .btn-primary,
.contact-form-wrap [data-drupal-selector*="submit"],
.contact-form-wrap input[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #c8102e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 8px;
  letter-spacing: 0.2px;
}

.contact-form-wrap .form-submit:hover,
.contact-form-wrap input[type="submit"]:hover {
  background: #a00d24;
  transform: translateY(-1px);
}

.contact-form-wrap .webform-confirmation {
  font-size: 14px;
  color: #555f6d;
  text-align: center;
  margin-top: 12px;
}

/* =================================================
   SECTION 2 — OUR BRANCH / HEADQUARTERS
   ================================================= */

.our-branch-section {
  padding: 72px 0;
  background-color: #f9fafb;
}

.our-branch-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ── Map ── */
.our-branch-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.map-wrapper {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── HQ Info ── */
.our-branch-info {
  padding-left: 10px;
}

.branch-label-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.branch-title {
  font-size: 38px;
  font-weight: 800;
  color: #0f1117;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
}

.branch-intro {
  font-size: 15px;
  color: #555f6d;
  line-height: 1.7;
  margin-bottom: 28px;
}

.branch-intro p {
  margin: 0;
}

/* Branch address items */
.branch-addresses .field__item {
  display: block;
  margin-bottom: 16px;
}

.branch-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-left: -14px;
  /* optical alignment — cancel padding offset */
}

.branch-item:hover {
  background: #f0f4ff;
  border-left-color: #93aef7;
}

.branch-item--active {
  background: #fff5f5;
  border-left-color: #c8102e;
}

.branch-item--active .branch-description,
.branch-item--active .branch-description strong {
  color: #c8102e;
}

/* Smooth map fade on swap */
#branch-map-iframe {
  transition: opacity 0.3s ease;
}

.branch-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  padding-top: 2px;
}

.branch-icon img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
}

.branch-description {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

.branch-description p {
  margin: 0;
}

.branch-description strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f1117;
  margin-bottom: 2px;
}

/* =================================================
   SECTION 3 — CUSTOMER SUPPORT CARDS
   ================================================= */

@media (min-width: 768px) {
  .customer-support-section {
    padding: 72px 0 80px;
    background-color: #ffffff;
  }
}

/* ── Centered header ── */
.customer-support-header {
  text-align: left;
  margin-bottom: 40px;
}

.customer-support-title {
  font-size: 38px;
  font-weight: 800;
  color: #0f1117;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
}

.customer-support-description {
  font-size: 15px;
  color: #555f6d;
  line-height: 1.7;
}

.customer-support-description p {
  margin: 0;
}

/* ── Cards grid ── */
.support-cards-grid {
  /* wrapper — let field__items handle the grid */
}

/* Drupal wraps cards in .field__items — this is the real grid parent */
.support-cards-grid .field__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.support-cards-grid .field__item {
  display: flex;
}

/* ── Individual card ── */
.support-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* children fill full card width */
  gap: 0;
  width: 100%;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.support-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.support-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-card__icon img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
}

.support-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f1117;
  margin: 0 0 10px;
  line-height: 1.3;
  width: 100%;
  text-align: left;
}

.support-card__description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
  width: 100%;
  text-align: left;
}

.support-card__description p {
  margin: 0;
}

/* CTA button */
.support-card__btn-wrap a,
.support-card__btn-wrap .btn {
  display: inline-block;
  padding: 10px 22px;
  background: #c8102e;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.support-card__btn-wrap a:hover {
  background: #a00d24;
  transform: translateY(-1px);
}

/* =================================================
   RESPONSIVE
   ================================================= */

/* Tablet */
@media (max-width: 1024px) {

  .contact-us-inner,
  .our-branch-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-us-left {
    padding-right: 0;
  }

  .contact-us-right {
    position: static;
  }

  .contact-us-title {
    font-size: 34px;
  }

  .branch-title,
  .customer-support-title {
    font-size: 30px;
  }

  .map-wrapper {
    height: 300px;
  }

  .support-cards-grid .field__items {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 3rd card centered on tablet */
  .support-cards-grid .field__item:last-child {
    grid-column: 1 / -1;
    margin: 0 auto;
  }
}

/* Mobile */
@media (max-width: 767px) {

  .our-branch-section,
  .customer-support-section {
    margin-top: 40px;
  }

  .contact-us-title {
    font-size: 28px;
  }

  .contact-form-card {
    padding: 24px 20px;
  }

  .contact-form-wrap .webform-flexbox,
  .contact-form-wrap .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .branch-title,
  .customer-support-title {
    font-size: 26px;
  }

  .map-wrapper {
    height: 240px;
  }

  .our-branch-info {
    padding-left: 0;
  }

  .support-cards-grid .field__items {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* reset last-child centering on mobile */
  .support-cards-grid .field__item:last-child {
    grid-column: auto;
    max-width: 100%;
    margin: 0;
  }

  .support-card {
    padding: 24px 20px;
  }
}