/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  background: #f4f8fc;
  padding-bottom: 0;
}

.contact-page-footer {
  margin-top: 0;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--pad-x) 0;
}

.contact-hero .hero-menu-btn {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
}

.contact-hero .hero-menu-btn span {
  background: var(--black);
}

.contact-hero-panel {
  position: relative;
  padding: 36px 0 0;
  padding-right: 100px;
}

.contact-form-card {
  position: relative;
  z-index: 1;
  max-width: 820px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 40px 44px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.contact-form-title {
  font-size: clamp(1.65rem, 2.8vw, 2.125rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 22px;
}

.contact-services-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 14px;
}

.contact-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.contact-service-tag {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(27, 74, 107, 0.28);
  background: rgba(227, 242, 251, 0.45);
  color: #1b4a6b;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1.3;
}

.contact-service-tag:hover {
  background: rgba(214, 236, 250, 0.55);
  border-color: rgba(27, 74, 107, 0.4);
}

.contact-service-tag.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--red);
  color: var(--black);
  box-shadow: 0 0 0 1px rgba(230, 59, 59, 0.15);
}

.contact-form-row {
  display: grid;
  gap: 24px 28px;
  margin-bottom: 24px;
}

.contact-form-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-form-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-600);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d8d8d8;
  background: transparent;
  color: var(--black);
  font-family: var(--font);
  font-size: 14px;
  padding: 0 0 10px;
  outline: none;
  resize: none;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #b0b0b0;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-bottom-color: #888;
}

.contact-field--full textarea {
  min-height: 72px;
}

.contact-form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.contact-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.contact-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--grey-600);
  cursor: pointer;
}

.contact-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--black);
}

.contact-check a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-check a:hover {
  color: var(--black);
}

/* SMS Consent Checkbox Styling */
.contact-check--sms {
  margin-top: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-check--sms span {
  font-size: 13px;
  line-height: 1.5;
}

.contact-sms-details {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.65);
  font-weight: 400;
}

.contact-sms-details a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-sms-details a:hover {
  color: var(--red);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.contact-submit:hover {
  background: var(--red-hover);
}

.contact-info-card {
  position: absolute;
  top: 56px;
  right: 0;
  z-index: 2;
  width: 300px;
  background: #121212;
  border-radius: 18px;
  padding: 28px 28px 26px;
  color: var(--white);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.contact-info-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

.contact-info-email {
  display: inline-block;
  font-size: 13px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 16px;
}

.contact-info-email:hover {
  color: rgba(255, 255, 255, 0.85);
}

.contact-info-phone {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 4px;
}

.contact-info-address {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 18px 0 22px;
}

.contact-info-social {
  display: flex;
  gap: 10px;
}

.contact-info-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.contact-info-social a:hover {
  background: var(--red-hover);
}

/* Trusted By */
.contact-trusted {
  padding: 0 0 80px;
  margin-top: 56px;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.contact-trusted-wrap {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.contact-trusted-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 180px;
  background: var(--red);
  opacity: 0.08;
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.contact-trusted-panel {
  position: relative;
  background: #121212;
  border-radius: 20px;
  padding: 36px 40px 40px;
  overflow: hidden;
}

.contact-trusted-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.contact-trusted-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.contact-trust-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  min-width: 0;
}

a.contact-trust-badge {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

a.contact-trust-badge:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.contact-trust-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  white-space: nowrap;
}

.contact-trust-badge--clutch {
  justify-content: flex-start;
  gap: 12px;
  padding-left: 18px;
  padding-right: 14px;
}

.contact-trust-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-trust-reviews {
  font-size: 9px;
  font-weight: 600;
  color: var(--red);
  line-height: 1.2;
}

.contact-trust-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.contact-trust-score {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
}

.contact-trust-stars {
  font-size: 9px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.contact-trust-stars--red {
  color: var(--red);
}

.contact-trust-stars--gold {
  color: #f5a623;
  font-size: 8px;
  letter-spacing: 1px;
}

.contact-trust-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-trust-icon--trustpilot {
  color: #00b67a;
}

.contact-trust-icon--goodfirms {
  width: 22px;
  height: 22px;
  background: var(--white);
  color: #121212;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.contact-trust-badge--goodfirms {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 18px;
}

.contact-trust-goodfirms-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* FAQ */
.contact-faq {
  padding-bottom: 80px;
}

.contact-faq-heading {
  line-height: 1.15;
}

.contact-faq-blue {
  color: #3b82f6;
}

/* Gallery — reuse blog-gallery */
.contact-gallery {
  width: 100%;
  overflow: hidden;
}

.contact-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1100px) {
  .contact-hero-panel {
    padding-right: 0;
  }

  .contact-info-card {
    position: static;
    width: 100%;
    max-width: 420px;
    margin-top: 24px;
  }

  .contact-form-card {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .contact-form-row--3 {
    grid-template-columns: 1fr 1fr;
  }

  .contact-trusted-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .contact-trust-badge--goodfirms {
    grid-column: 1 / -1;
  }

  .contact-trust-badge--clutch {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .contact-trust-name {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: auto;
  }

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

  .contact-form-row--3,
  .contact-form-row--2 {
    grid-template-columns: 1fr;
  }

  .contact-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-trusted-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .contact-trusted-panel {
    padding: 32px 24px 28px;
  }

  .contact-trust-badge--clutch {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }

  .contact-trust-name {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .contact-trusted {
    margin-top: 40px;
    padding-bottom: 64px;
  }

  .contact-trusted-panel {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }

  .contact-trusted-title {
    margin-bottom: 20px;
    font-size: 1.375rem;
  }

  .contact-trusted-logos {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-trust-badge {
    min-height: auto;
    padding: 14px 16px;
    justify-content: flex-start;
  }

  .contact-trust-badge--clutch {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
  }

  .contact-trust-badge--goodfirms {
    align-items: flex-start;
  }
}

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