/* contact-style.css — only contact-card specific rules.
   The page layout (sidebar/navbar, body bg, form sizing) is fully owned by premium-theme.css.
   Legacy global selectors that used to clash with premium-theme have been removed. */

/* === Contact details card (rich, linked) === */
.contact-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact-card h2 { margin: 0 0 4px; }
.contact-card .contact-block { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-card .contact-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(227, 200, 129, 0.9); font-weight: 700;
}
.contact-card .contact-line {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
  font-size: 15px; line-height: 1.4;
  padding: 8px 0; min-width: 0;
  word-break: break-word; overflow-wrap: anywhere;
  transition: color .2s ease;
}
.contact-card .contact-line:hover { color: #e3c881; }
.contact-card .contact-line > span:not(.ico) {
  flex: 1 1 auto; min-width: 0;
}
.contact-card .contact-line .ico {
  width: 22px; height: 22px; flex: 0 0 22px;
  display: inline-flex; align-items: center; justify-content: center;
  align-self: center;
}
.contact-card .contact-line .ico img,
.contact-card .contact-line .ico svg {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

.contact-card .contact-channels {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px;
}
.contact-card .channel-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1;
  border: 1px solid rgba(255,255,255,0.1); white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
/* Override premium-theme.css .whatsapp { position:fixed } so the channel button stays inline */
.contact-card .channel-btn.whatsapp {
  position: static !important;
  width: auto !important; height: auto !important;
  right: auto !important; bottom: auto !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.06) !important;
  box-shadow: none !important;
  display: inline-flex !important;
  z-index: auto !important;
}
.contact-card .channel-btn.whatsapp .ico { width: 16px; height: 16px; }
.contact-card .channel-btn.whatsapp .ico img { width: 100%; height: 100%; }
.contact-card .channel-btn:hover { background: rgba(227, 200, 129, 0.18); border-color: rgba(227,200,129,0.45); transform: translateY(-1px); }
.contact-card .channel-btn.whatsapp:hover { background: rgba(37, 211, 102, 0.18); border-color: rgba(37, 211, 102, 0.55); }
.contact-card .channel-btn.viber:hover { background: rgba(127, 76, 159, 0.22); border-color: rgba(127, 76, 159, 0.6); }
.contact-card .channel-btn.telegram:hover { background: rgba(36, 161, 222, 0.22); border-color: rgba(36, 161, 222, 0.6); }
.contact-card .channel-btn .ico {
  width: 16px; height: 16px; flex: 0 0 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-card .channel-btn .ico img,
.contact-card .channel-btn .ico svg {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.contact-card .contact-hours { font-size: 13px; color: rgba(255,255,255,0.7); margin: 4px 0 0; }

/* === Contact QR (vCard) === */
.contact-card .contact-qr {
  margin-top: 6px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(227,200,129,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(227,200,129,0.25);
  display: flex; align-items: center; gap: 14px;
}
.contact-card .contact-qr .qr-text { flex: 1 1 auto; min-width: 0; }
.contact-card .contact-qr .qr-title {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; color: #e3c881;
  margin-bottom: 4px;
}
.contact-card .contact-qr .qr-hint {
  font-size: 12px; line-height: 1.45;
  color: rgba(255,255,255,0.75);
}
.contact-card .contact-qr .qr-image {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  line-height: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
  display: block;
}
.contact-card .contact-qr .qr-image:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
.contact-card .contact-qr .qr-image img {
  width: 110px; height: 110px; display: block;
}
@media (max-width: 480px) {
  .contact-card .contact-qr { padding: 12px; gap: 12px; }
  .contact-card .contact-qr .qr-image img { width: 96px; height: 96px; }
  .contact-card .contact-qr .qr-title { font-size: 12.5px; }
  .contact-card .contact-qr .qr-hint { font-size: 11.5px; }
}

/* Company legal block */
.contact-card .company-legal {
  margin-top: 4px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 6px;
}
.contact-card .company-legal .company-name {
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: #fff;
}
.contact-card .company-legal dl {
  display: grid; grid-template-columns: max-content 1fr;
  column-gap: 12px; row-gap: 4px; margin: 0;
  font-size: 13px; line-height: 1.45;
}
.contact-card .company-legal dt {
  color: rgba(227, 200, 129, 0.85); font-weight: 600;
  letter-spacing: 0.04em;
}
.contact-card .company-legal dd {
  margin: 0; color: rgba(255,255,255,0.92);
  word-break: break-word; overflow-wrap: anywhere;
}

/* === Mobile responsive — contact card === */
@media (max-width: 720px) {
  /* Stack the form + contact card */
  .grid.two { display: flex; flex-direction: column; gap: 16px; }

  .contact-card {
    gap: 14px;
    padding: 18px !important;
    /* Prevent the card itself from causing horizontal overflow */
    max-width: 100%; box-sizing: border-box; overflow: hidden;
  }
  .contact-card h2 { font-size: 19px; line-height: 1.25; margin: 0; }

  /* Each contact row */
  .contact-card .contact-block { gap: 4px; }
  .contact-card .contact-eyebrow { font-size: 10.5px; letter-spacing: 0.14em; }

  .contact-card .contact-line {
    font-size: 14px; line-height: 1.45;
    padding: 9px 0; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    /* Force long strings (email, address) to wrap rather than overflow */
    word-break: break-word; overflow-wrap: anywhere;
  }
  .contact-card .contact-block:last-of-type .contact-line { border-bottom: none; }
  .contact-card .contact-line > span:not(.ico) { min-width: 0; flex: 1 1 auto; }
  .contact-card .contact-line .ico { width: 20px; height: 20px; flex: 0 0 20px; }

  /* Channel buttons — 2-column thumb-friendly grid */
  .contact-card .contact-channels {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  }
  .contact-card .channel-btn {
    justify-content: center; padding: 10px 6px;
    font-size: 12px; min-width: 0;
  }
  .contact-card .channel-btn span:not(.ico) {
    font-size: 12px; overflow: hidden; text-overflow: ellipsis;
  }

  /* Company legal — stacked, no cramped 2-col */
  .contact-card .company-legal { padding-top: 12px; gap: 6px; }
  .contact-card .company-legal .company-name {
    font-size: 13.5px; letter-spacing: 0.03em;
  }
  .contact-card .company-legal dl {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 12.5px; line-height: 1.45;
  }
  .contact-card .company-legal dt {
    font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; margin-bottom: 0;
    color: rgba(227, 200, 129, 0.85);
  }
  .contact-card .company-legal dd {
    margin: 0; padding-bottom: 6px;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    word-break: break-word; overflow-wrap: anywhere;
  }
  .contact-card .company-legal dl > dd:last-of-type {
    border-bottom: none; padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .contact-card { padding: 16px !important; }
  .contact-card h2 { font-size: 18px; }
  .contact-card .contact-line { font-size: 13.5px; }
  .contact-card .channel-btn { padding: 9px 4px; font-size: 11.5px; }
  .contact-card .channel-btn span:not(.ico) { font-size: 11.5px; }
  .contact-card .company-legal dl { font-size: 12px; }
}

@media (max-width: 380px) {
  /* Keep WhatsApp + WeChat side-by-side even on very small screens (only 2 buttons) */
  .contact-card .contact-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card .channel-btn { justify-content: center; padding: 9px 4px; font-size: 11px; }
  .contact-card .channel-btn span:not(.ico) { font-size: 11px; }
}

/* WeChat brand hover */
.contact-card .channel-btn.wechat:hover {
  background: rgba(9, 184, 62, 0.18);
  border-color: rgba(9, 184, 62, 0.55);
}

/* === Fix floating WhatsApp overlap === */
/* Push body content above the floating button on mobile so it never covers text */
@media (max-width: 720px) {
  main { padding-bottom: 110px !important; }
}
/* Move the floating WhatsApp from bottom-left → bottom-right with safe spacing */
a.whatsapp {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  left: auto !important;
  width: 54px; height: 54px;
  border-radius: 50% !important;
  background: #25D366 !important;
  display: flex; align-items: center; justify-content: center;
  padding: 0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 4px rgba(37,211,102,0.15);
  z-index: 9000;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.whatsapp:hover { transform: scale(1.06); }
a.whatsapp img { width: 30px; height: 30px; display: block; }

/* === WeChat modal === */
.wechat-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72);
  display: none; align-items: center; justify-content: center;
  z-index: 10000; padding: 20px;
  backdrop-filter: blur(6px);
}
.wechat-modal.is-open { display: flex; }
.wechat-modal .box {
  background: linear-gradient(135deg, rgba(17,47,73,0.96), rgba(7,26,43,0.98));
  border: 1px solid rgba(227,200,129,0.35);
  border-radius: 18px; padding: 26px 24px;
  max-width: 340px; width: 100%; text-align: center; color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.wechat-modal .box h3 { margin: 0 0 14px; font-size: 18px; letter-spacing: 0.04em; }
.wechat-modal .box .qr-wrap {
  background: #fff; border-radius: 14px; padding: 12px;
  display: inline-block; line-height: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.wechat-modal .box .qr-wrap img {
  width: 220px; height: 220px; display: block; object-fit: contain;
}
.wechat-modal .box .company {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: #e3c881; margin: 14px 0 4px;
}
.wechat-modal .box .hint { font-size: 12px; color: rgba(255,255,255,0.7); margin: 0 0 16px; line-height: 1.5; }
.wechat-modal .box button {
  background: #e3c881; color: #0b1d2c; border: 0;
  padding: 10px 22px; border-radius: 999px; font-weight: 700;
  cursor: pointer; font-size: 13px; letter-spacing: 0.04em;
}
.wechat-modal .box button:hover { background: #f0d59a; }
