﻿/* ===== CONTACT ===== */
.contact {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 110px 109px;
}

.contact-container {
  max-width: 1440px;
  width: 900px;
  height: 660px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-header {
  display: flex;
  justify-content: space-between;
}

.opacity-0 {
  opacity: 0;
}

.contact h3 {
  font-size: 54px;
  font-weight: 400;
  color: var(--blue);
  text-align: center;
}

.contact-top {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.contact-intro-wrapper {
  width: 50%;
}

.contact-intro {
  font-family: 'JosefinSans', sans-serif;
  font-size: 18px;
  color: var(--white);
  line-height: 120%;
  cursor: default;
}

.contact-work-together {
  display: none;
}

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

.contact-info a {
  text-decoration: none;
  color: inherit;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'JosefinSans', sans-serif;
  font-size: clamp(16px, 1.1vw, 17px);
  color: var(--white);
}

.contact-info-icon {
  width: 28px;
  height: 28px;
  background-color: var(--white);
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  flex-shrink: 0;
}

.contact-mail-icon {
  background-image: url('../assets/icons/mail.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 22px;
  height: 20px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 5px;
  cursor: pointer;
}

.contact-mail-icon img {
  width: 15px;
  position: absolute;
}

.mail-default {
  opacity: 1;
}

.mail-hover {
  opacity: 0;
}

.contact-info-item:hover .mail-default {
  opacity: 0;
}

.contact-info-item:hover .mail-hover {
  width: 18px;
  opacity: 1;
}

.contact-info-item:hover .contact-mail-icon {
  background-image: none;
  background-color: var(--blue);
}

.contact-info-item:hover span {
  color: var(--blue);
}

.contact-phone-icon {
  mask-image: url('../assets/icons/icon _phone.png');
  -webkit-mask-image: url('../assets/icons/icon _phone.png');
}

.contact-info-item:hover .contact-phone-icon {
  mask-image: url('../assets/icons/icon _phone_2.png');
  -webkit-mask-image: url('../assets/icons/icon _phone_2.png');
  background-color: var(--blue);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  position: relative;
  padding-bottom: 26px;
}

.form-group label {
  font-family: 'JosefinSans', sans-serif;
  margin-left: 24px;
  font-size: 16px;
  color: var(--blue);
  letter-spacing: 0.5px;
  cursor: pointer;
}

.form-group input,
.form-group textarea {
  background: transparent;
  caret-shape: block;
  border: 1.5px solid var(--blue);
  border-radius: 30px;
  padding: 14px 22px;
  font-family: 'JosefinSans', sans-serif;
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
  cursor: pointer;
}

.form-group textarea {
  border-radius: 20px;
}

.form-group input:focus,
.form-group textarea:focus {
  background-color: #89bcd93f;
}

.form-footer {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.form-checkbox .field-error {
  bottom: auto;
  top: 100%;
  left: 34px;
  margin-top: 4px;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
  background-image: url("../assets/icons/Property 1=Default.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.form-checkbox input[type="checkbox"]:hover {
  background-image: url("../assets/icons/Property 1=hover.png");
}

.form-checkbox input[type="checkbox"]:checked {
  background-image: url("../assets/icons/Property 1=Checked.png");
}

.form-checkbox input[type="checkbox"].input-error {
  background-image: url("../assets/icons/Property 1=error.png");
}

.form-checkbox label {
  font-family: 'JosefinSans', sans-serif;
  font-size: 16px;
  line-height: 120%;
  color: var(--white);
  cursor: default;
}

.privacy-link {
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
}

.btn-send {
  background: transparent;
  border: 1.5px solid var(--blue);
  border-radius: 30px;
  padding: 12px 36px;
  font-family: 'JosefinSans', sans-serif;
  font-size: 16px;
  color: var(--blue);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.btn-send:hover:not(:disabled) {
  background: #ffffff2b;
}

.btn-disabled,
.btn-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Field error */
.field-error {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-family: 'JosefinSans', sans-serif;
  font-size: 16px;
  color: #e07070;
  min-height: 16px;
}

.input-error {
  border-color: #e07070 !important;
}

/* Webkit autofill override */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #262e34 inset;
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
}

/* Form success message */
.form-success {
  font-family: 'JosefinSans', sans-serif;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--blue);
  text-align: center;
  padding: 48px 0;
  letter-spacing: 0.5px;
}

/* Back to top */
.arrow-up-container {
  width: 1440px;
  position: absolute;
  display: flex;
  justify-content: flex-end;
  padding: 0 150px;
}

.arrow-up {
  width: 38px;
  height: 89px;
  border: 1px solid var(--blue);
  border-radius: 30px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
  z-index: 2;
}

.arrow-up-1 {
  width: 38px;
  height: 89px;
  border: 1px solid var(--blue);
  border-radius: 30px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.arrow-up-1 img {
  width: 20px;
  height: auto;
}

.arrow-up img {
  width: 20px;
  height: auto;
}

.arrow-up:hover {
  background: #ffffff2b;
}