/* Contact page — Figma node 4177:510 */

/* Main section */
.contact-main {
  padding-top: 10px;
  padding-bottom: 95px;
}

.contact-main__grid {
  display: grid;
  grid-template-columns: 554px 558px;
  justify-content: space-between;
  align-items: start;
  gap: 48px;
}

/* Left — contact info */
.contact-info__title {
  font-size: 45px;
  font-weight: 700;
  line-height: normal;
  color: var(--text);
  margin-bottom: 26px;
}

.contact-info__desc {
  font-size: 22px;
  font-weight: 500;
  line-height: normal;
  color: var(--text);
  max-width: 503px;
  margin-bottom: 52px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 222px 320px;
  grid-template-rows: auto auto;
  gap: 22px 13px;
}

.contact-card {
  position: relative;
  min-height: 177px;
  padding: 19px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 15px;
}

.contact-card--wide {
  grid-column: 1 / -1;
}

.contact-card__icon {
  width: 57px;
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  margin-bottom: 28px;
}

.contact-card__icon--phone {
  background: #defffb;
}

.contact-card__icon--phone img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.contact-card__icon--email {
  background: #dee2ff;
}

.contact-card__icon--email img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.contact-card__icon--office {
  background: #ffe5de;
}

.contact-card__icon--office img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.contact-card__title {
  font-size: 23px;
  font-weight: 700;
  line-height: normal;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-card__detail {
  font-size: 18px;
  font-weight: 300;
  line-height: normal;
  color: var(--text);
}

.contact-card__detail a {
  color: inherit;
}

.contact-card__detail a:hover {
  text-decoration: underline;
}

/* Right — form panel */
.contact-form-panel {
  width: 558px;
  min-height: 711px;
  padding: 41px 49px 48px;
  background: rgba(244, 244, 244, 1);
  border-radius: 27px;
  margin-top: 28px;
}

.contact-form-panel__title {
  font-size: 25px;
  font-weight: 700;
  line-height: normal;
  color: var(--text);
  margin-bottom: 46px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.contact-form__row {
  display: flex;
  gap: 17px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form__field--half {
  flex: 1;
  min-width: 0;
}

.contact-form__field label {
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  color: var(--text);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: normal;
  color: #2b2626;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9px;
}

.contact-form__field input {
  height: 34px;
  padding: 0 12px;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: #aaa;
  font-weight: 500;
}

.contact-form__field textarea {
  min-height: 100px;
  padding: 12px;
  resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: 2px solid rgba(80, 69, 232, 0.35);
  outline-offset: 1px;
}

.contact-form__phone {
  display: flex;
  align-items: center;
  height: 34px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9px;
  overflow: visible;
  position: relative;
}

.contact-form__country-wrap {
  position: relative;
  flex-shrink: 0;
  height: 100%;
}

.contact-form__country {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 6px 0 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.contact-form__country-flag {
  width: 30px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.contact-form__country-code-wrap {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}

.contact-form__country-code {
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  color: var(--text);
  flex-shrink: 0;
}

.contact-form__chevron {
  width: 20px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  margin-left: 0;
  align-self: center;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.contact-form__country[aria-expanded="true"] .contact-form__chevron {
  transform: rotate(180deg);
}

.contact-form__country-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 220px;
  max-height: 220px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.contact-form__country-list[hidden] {
  display: none;
}

.contact-form__country-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.contact-form__country-option:hover,
.contact-form__country-option.is-selected {
  background: rgba(80, 69, 232, 0.08);
}

.contact-form__country-option-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.contact-form__country-option-name {
  flex: 1;
}

.contact-form__country-option-code {
  color: rgba(11, 12, 56, 0.65);
  flex-shrink: 0;
}

.contact-form__divider {
  flex-shrink: 0;
  width: 1px;
  height: 32.5px;
  object-fit: contain;
}

.contact-form__phone input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  border-radius: 0;
  padding: 0 12px;
}

.contact-form__phone input:focus {
  outline: none;
}

.contact-form__submit {
  width: 100%;
  height: 34px;
  background: var(--purple);
  border: none;
  border-radius: 24px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  line-height: normal;
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form__submit:hover {
  opacity: 0.92;
}

/* Newsletter */
.contact-newsletter {
  padding-bottom: 71px;
}

.contact-newsletter__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 136px;
  padding: 24px 44px;
  background: var(--purple-light);
  border-radius: var(--radius-cta);
  max-width: 1199px;
}

.contact-newsletter__icon {
  flex-shrink: 0;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-icon);
  border-radius: var(--radius-cta-icon);
}

.contact-newsletter__icon img {
  width: 54px;
  height: 50px;
  object-fit: contain;
}

.contact-newsletter__text {
  flex: 1;
  min-width: 200px;
}

.contact-newsletter__text h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: normal;
  color: var(--navy);
}

.contact-newsletter__text p {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 400;
  line-height: normal;
  color: var(--navy);
}

.contact-newsletter__form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.contact-newsletter__form input {
  width: 312px;
  min-height: 37px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.81);
  border: 0.8px solid var(--purple);
  border-radius: 38px;
  color: var(--purple-text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
}

.contact-newsletter__form input::placeholder {
  color: var(--purple-text);
}

.contact-newsletter__form input:focus {
  outline: 2px solid rgba(80, 69, 232, 0.35);
  outline-offset: 2px;
}

.btn--subscribe {
  background: var(--purple);
  color: var(--white);
  min-width: 145px;
  border-radius: 32px;
  font-size: 15px;
  padding: 4px 16px;
}

/* Responsive */
@media (max-width: 1320px) {
  .contact-main__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-panel {
    width: 100%;
    max-width: 558px;
    margin-top: 0;
  }

  .contact-cards {
    max-width: 554px;
  }
}

@media (max-width: 640px) {
  .contact-main {
    padding-top: 40px;
    padding-bottom: 120px;
  }

  .contact-info__title {
    font-size: 36px;
  }

  .contact-info__desc {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card--wide {
    grid-column: auto;
  }

  .contact-form-panel {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .contact-form__row {
    flex-direction: column;
    gap: 34px;
  }

  .contact-newsletter__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-newsletter__form {
    width: 100%;
    flex-wrap: wrap;
  }

  .contact-newsletter__form input {
    flex: 1;
    width: auto;
    min-width: 200px;
  }
}
