.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 140px);
  background: #eceef2;
}

.left-side {
  position: relative;
  overflow: hidden;
  min-height: 780px;
  padding: 86px 68px;
  color: #fff;
  display: none;
}

.left-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.03);
}

.left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 31, 46, 0.48) 0%, rgba(18, 31, 46, 0.64) 100%);
  z-index: 1;
}

.left-carousel {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.left-slide {
  display: none;
}

.left-slide.active {
  display: block;
}

.left-title {
  margin: 0 0 24px;
  color: #fff;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
}

.left-title em {
  font-style: italic;
  font-weight: 300;
}

.left-text,
.left-quote,
.left-list li,
.left-pillars p,
.left-note {
  color: #eef2f7;
  font-size: 16px;
  line-height: 1.42;
}

.left-text {
  margin: 0 0 18px;
}

.left-list {
  margin: 4px 0 20px 24px;
  padding: 0;
}

.left-pillars p {
  margin: 0 0 14px;
}

.left-pillars p strong {
  color: #fff;
}

.left-quote {
  margin: 8px 0 0;
}

.left-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.left-primary-cta,
.left-secondary-cta {
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.left-primary-cta {
  background: #0071BC;
  color: #fff;
}

.left-secondary-cta {
  background: #344054;
  color: #fff;
}

.left-primary-cta:hover, .left-secondary-cta:hover {
  color: #fff;
}

.left-note {
  margin-top: 16px;
  font-style: italic;
}

.left-controls {
  display: flex;
  gap: 18px;
  margin-top: 38px;
}

.left-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: rgba(105, 123, 146, 0.56);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.left-nav-btn:hover:not(:disabled) {
  background: rgba(105, 123, 146, 0.8);
}

.left-nav-btn:disabled {
  background: rgba(139, 149, 161, 0.45);
  color: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
}

.right-side {
  width: 100%;
  padding: 78px 52px 56px;
  background: #eceef2;
}

.right-side-wrapper {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}

.right-side-header {
  margin-bottom: 30px;
}

.right-side-title {
  margin: 0 0 10px;
  color: #0f1c34;
  font-size: 30px;
  font-weight: 800;
}

.right-side-subtitle {
  margin: 0;
  color: #66738a;
  font-size: 16px;
  line-height: 1.45;
}

.right-side-alert {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 16px;
  margin-bottom: 16px;
}

.right-side-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.right-side-alert-error ul {
  margin: 0;
  padding-left: 18px;
}

.right-side-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.right-side-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.right-side-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.right-side-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.right-side-label {
  color: #1d2432;
  font-size: 16px;
  font-weight: 600;
}

.right-side-required {
  color: #315dff;
}

.right-side-input-wrap {
  position: relative;
}

.field-icon,
.right-side-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #95a0b3;
  pointer-events: none;
}

.right-side-input,
.right-side-textarea {
  width: 100%;
  border: 1px solid #ccd3df;
  border-radius: 14px;
  background: #eceef2;
  color: #1d2432;
  font-size: 14px;
  padding: 10px 14px;
  box-sizing: border-box;
}

.right-side-input::placeholder,
.right-side-textarea::placeholder,
.phone-number-input::placeholder {
  font-size: 13px;
}

.right-side-input {
  height: 52px;
  padding-left: 42px;
}

.right-side-input-padded {
  padding-left: 40px;
}

.right-side-input::placeholder,
.right-side-textarea::placeholder {
  color: #96a0b2;
}

.right-side-input:focus,
.right-side-textarea:focus {
  outline: none;
  border-color: #8e99ae;
}

.phone-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #ccd3df;
  border-radius: 18px;
  background: #eceef2;
  overflow: hidden;
  height: 52px;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-right: 1px solid #ccd3df;
  min-width: 102px;
  max-width: 102px;
  flex: 0 0 102px;
}

.phone-flag-img {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.phone-code-select {
  border: 0;
  background: transparent;
  width: 70px;
  color: #121826;
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M2 2L7 7L12 2' stroke='%2366728A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 24px;
}

.phone-code-select:focus {
  outline: none;
}

.phone-number-input {
  border: 0;
  border-radius: 0;
  background: transparent;
  height: 100%;
  padding-left: 20px;
  flex: 1 1 auto;
  min-width: 0;
}

.phone-number-input::placeholder {
  color: #98a2b3;
}

.right-side-input-wrap .right-side-textarea {
  min-height: 160px;
  resize: none;
  padding: 12px 14px 30px;
}

.textarea-counter {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 12px;
  color: #7f889a;
}

.right-side-submit {
  margin-top: 10px;
  width: 100%;
  max-width: 250px;
  align-self: center;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: #0071BC;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  cursor: pointer;
}

.right-side-submit:hover {
  background: #0d65a6;
}

.right-side-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.right-side-contact-info {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid #d9dee8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.right-side-contact-item {
  border: 1px solid #ccd3df;
  border-radius: 14px;
  background: #eceef2;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.right-side-contact-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #ccd3df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0071BC;
  font-size: 16px;
  background: #eceef2;
}

.right-side-contact-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.right-side-contact-label {
  color: #5f6c80;
  font-size: 16px;
}

.right-side-contact-value,
.right-side-contact-link {
  color: #121a28;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.35;
}

.right-side-contact-link {
  text-decoration: underline;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .contact-container {
    display: block;
  }

  .left-side {
    display: none;
  }

  .right-side {
    padding: 40px 40px 50px;
  }

  .right-side-wrapper {
    max-width: 980px;
  }

  .right-side-title {
    font-size: 24px;
  }

  .right-side-subtitle {
    font-size: 16px;
    max-width: 850px;
  }

  .right-side-label {
    font-size: 14px;
  }

  .right-side-input,
  .right-side-textarea,
  .phone-code-select {
    font-size: 13px;
  }

  .right-side-input::placeholder,
  .right-side-textarea::placeholder,
  .phone-number-input::placeholder {
    font-size: 12px;
  }

  .phone-prefix {
    /* min-width: 96px; */
    max-width: 96px;
    flex-basis: 96px;
  }

  .phone-code-select {
    /* width: 42px; */
    width: 70px;
    font-size: 13px;
  }

  .right-side-input,
  .phone-input-wrap {
    height: 48px;
  }

  .right-side-input-wrap .right-side-textarea {
    min-height: 150px;
  }

  .right-side-row {
    grid-template-columns: 1fr 1fr;
  }

  .right-side-contact-info {
    grid-template-columns: 1fr 1fr;
  }

  .right-side-submit {
    align-self: flex-start;
    max-width: 220px;
    height: 48px;
    font-size: 16px;
  }
}

@media (min-width: 1025px) {
  .left-side {
    display: block;
  }
}

@media (max-width: 767px) {
  .contact-container {
    display: block;
    grid-template-columns: 1fr;
  }

  .right-side {
    padding: 24px 24px 40px;
  }

  .right-side-title {
    font-size: 50px;
    margin-bottom: 8px;
  }

  .right-side-subtitle {
    font-size: 16px;
    line-height: 1.45;
  }

  .right-side-label {
    font-size: 14px;
  }

  .right-side-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .right-side-input,
  .right-side-textarea {
    font-size: 14px;
  }

  .right-side-input::placeholder,
  .right-side-textarea::placeholder,
  .phone-number-input::placeholder {
    font-size: 12px;
  }

  .right-side-input {
    height: 40px;
    padding-left: 38px;
  }

  .phone-prefix {
    /* min-width: 82px; */
    max-width: 82px;
    flex-basis: 82px;
    gap: 7px;
    padding: 0 9px;
  }

  .phone-flag-img {
    width: 20px;
    height: 20px;
  }

  .phone-code-select {
    /* width: 34px; */
    font-size: 12px;
    padding-right: 18px;
  }

  .phone-input-wrap {
    height: 40px;
  }

  .phone-number-input {
    padding-left: 12px;
  }

  .right-side-input-wrap .right-side-textarea {
    min-height: 128px;
    padding: 11px 12px 26px;
  }

  .textarea-counter {
    font-size: 11px;
  }

  .right-side-submit {
    max-width: 100%;
    align-self: stretch;
    height: 56px;
    font-size: 32px;
  }

  .right-side-contact-info {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .right-side-contact-label {
    font-size: 14px;
  }

  .right-side-contact-value,
  .right-side-contact-link {
    font-size: 15px;
  }

  .right-side-contact-item {
    padding: 14px;
    border-radius: 12px;
  }

  .right-side-contact-icon-wrap {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 13px;
  }
}
