/* ============================================
   CONTACTS PAGE STYLES
   ============================================ */

/* Added container styles for 1200px max-width and centering */
.about .container,
.contacts .container,
.cta .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: 42px 0 60px;
  background-color: var(--color-bg);
}

.about__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 50px;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 37px;
}

.about__content {
    max-width: 100%;
}

.about__content p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.25;
    color: var(--color-text-main);
    margin-bottom: 20px;
}

.about__content p:last-child {
  margin-bottom: 0;
}

.about__content strong {
  font-weight: 600;
}

/* Contacts Section */
.contacts {
    padding: 4px 0 60px;
  background-color: var(--color-bg);
}

.contacts__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 50px;
    line-height: 1.25;
    color: var(--color-text-primary);
    margin-bottom: 32px;
    text-align: start;
}

/* Fixed grid layout for contacts - info on left, map on right */
.contacts__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts__item {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  color: var(--color-text-main);
}

.contacts__messengers,
.contacts__socials {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.contacts__messengers span,
.contacts__socials span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  color: var(--color-text-main);
}

.contacts__messengers strong,
.contacts__socials strong {
  font-weight: 600;
}

.contacts__messenger-icons,
.contacts__social-icons {
  display: flex;
  gap: 12px;
}

.contacts__messenger-icons a,
.contacts__social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.contacts__messenger-icons a:hover,
.contacts__social-icons a:hover {
  opacity: 0.7;
}

/* Fixed map container size */
.contacts__map {
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* CTA Section */
.cta {
    padding: 0px 0 80px;
  background-color: var(--color-bg);
}

/* Fixed CTA grid layout - content on left, images on right */
.cta__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta__content {
  max-width: 480px;
}

.cta__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 50px;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 23px;
}

.cta__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-text-main);
  margin-bottom: 38px;
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta__form-row {
  display: flex;
  gap: 24px;
}

.cta__field {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  height: 56px;
  width: 200px;
}

.cta__icon {
  flex-shrink: 0;
  margin-right: 12px;
}

.cta__field input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-main);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
}

.cta__field input::placeholder {
  color: var(--color-text-secondary);
}

.cta__privacy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  max-width: 400px;
}

.cta__privacy a {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

.cta__privacy a:hover {
  color: var(--color-accent);
}

/* Fixed submit button styles */
.cta__submit {
  width: fit-content;
  padding: 18px 64px;
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-button);
  font-weight: 500;
  font-size: 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta__submit:hover {
  background-color: var(--color-accent-hover);
}

/* Fixed car images positioning */
.cta__images {
  position: relative;
  height: 400px;
}

.cta__car {
  position: absolute;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.cta__car--1 {
  top: 0;
  right: 0;
  width: 90%;
  z-index: 1;
}

.cta__car--2 {
  bottom: 0;
  right: 10%;
  width: 85%;
  z-index: 2;
}
.cta__image--top {
    top: 5px;
    right: 120px;
}
.cta__image--bottom {
    bottom: 45px;
    left: 236px;
}
.cta__form-consent {
    margin: -10px 0 0px 5px;
}

/* ============================================
   CONTACTS PAGE MOBILE STYLES (360px)
   ============================================ */

@media (max-width: 768px) {
  /* Container padding for mobile */
  .about .container,
  .contacts .container,
  .cta .container {
    padding: 0 10px;
  }

  /* About Mobile */
  .about {
    padding: 40px 0 32px;
  }

  .about__title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .about__content {
    max-width: 100%;
  }

  .about__content p {
    font-size: 16px;
    line-height: 1.23;
    margin-bottom: 16px;
  }

  /* Contacts Mobile */
  .contacts {
    padding: 5px 0 32px;
  }

  .contacts__title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .contacts__wrapper {
    display: flex;
        flex-direction: column-reverse;
        gap: 7px;
  }
  .contacts__messengers, .contacts__socials  {
    display: flex;
    flex-direction: row;
    justify-content: space-between
  }

  .contacts__item {
    font-size: 16px;
  }
  .contacts__details {
    gap: 11px;
  }
  .contacts__info {
    gap: 8px;
  }

  .contacts__messengers span,
  .contacts__socials span {
    font-size: 16px;
  }

  .contacts__messenger-icons,
  .contacts__social-icons {
    flex-direction: row;
  }

  .contacts__map {
    height: 179px;
    width: 100%;
  }

  /* CTA Mobile */
  .cta {
    padding: 8px 0 40px
  }

  .cta__wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta__content {
    max-width: 100%;
  }

  .cta__title {
    font-size: 22px;
    margin-bottom: 16px;
    text-align: center;
  }

  .cta__text {
    font-size: 16px;
        line-height: 1.3;
        margin-bottom: 17px;
        text-align: center;
  }

  .cta__form-fields {
    width: 100%;
  }

  .cta__form {
    align-items: center;
  }

  .cta__form-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
  }

  .cta__field {
    width: 340px;
    max-width: 100%;
    height: 48px;
    padding: 12px 16px;
  }

  .cta__privacy {
    font-size: 12px;
    text-align: left;
    max-width: 340px;
  }

  .cta__submit {
    width: 340px;
    max-width: 100%;
    padding: 14px 32px;
  }

  .cta__images {
    display: none;
  }
}
