@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700&display=swap');

:root {
  --icv-contact-dark: #091f2f;
  --icv-contact-primary: #007dc5;
  --icv-contact-primary-hover: #006aad;
  --icv-contact-text: #74787c;
  --icv-contact-border: #eaeaea;
  --icv-contact-bg: #ffffff;
  --icv-contact-card-bg: #f4f7fa;
  --icv-contact-white: #ffffff;
  --icv-contact-radius: 14px;
}

.icv-contact-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.icv-contact-section {
  background: var(--icv-contact-bg);
  padding: 70px 0;
}

.icv-contact-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.icv-contact-alert--success {
  background: #e8f7ef;
  color: #1b6b3a;
  border: 1px solid #b7e0c6;
}

.icv-contact-alert--error {
  background: #fdeeee;
  color: #8a1f1f;
  border: 1px solid #f0c2c2;
}

.icv-contact-section .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.icv-contact-section .row > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  flex: 0 0 50%;
  max-width: 50%;
}

.icv-contact-card {
  background: var(--icv-contact-card-bg);
  border-radius: var(--icv-contact-radius);
  padding: 40px 36px;
  height: 100%;
}

.icv-contact-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--icv-contact-dark);
  margin: 0 0 10px;
  line-height: 1.25;
  text-transform: none;
}

.icv-contact-card__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--icv-contact-text);
  margin: 0 0 32px;
}

/* ---- Form ---- */
.icv-contact-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.icv-contact-form .form-row--half > .icv-field-wrap {
  flex: 1 1 calc(50% - 10px);
  min-width: 0;
}

.icv-contact-form .icv-field-wrap {
  position: relative;
  width: 100%;
}

.icv-contact-form .icv-field-wrap--full {
  margin-bottom: 20px;
}

.icv-contact-form input[type="text"],
.icv-contact-form input[type="email"],
.icv-contact-form input[type="tel"],
.icv-contact-form textarea {
  width: 100%;
  background: var(--icv-contact-white);
  border: 1px solid var(--icv-contact-border);
  border-radius: 8px;
  padding: 14px 44px 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--icv-contact-dark);
  line-height: 1.4;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  letter-spacing: 0;
  -webkit-appearance: none;
  appearance: none;
}

.icv-contact-form textarea {
  min-height: 160px;
  resize: vertical;
  padding-top: 16px;
}

.icv-contact-form input:focus,
.icv-contact-form textarea:focus {
  outline: none;
  border-color: var(--icv-contact-primary);
  box-shadow: 0 0 0 3px rgba(0, 125, 197, 0.12);
}

.icv-contact-form input::placeholder,
.icv-contact-form textarea::placeholder {
  color: #a0a4a8;
}

.icv-contact-form .icv-field-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #b8bcc2;
  font-size: 15px;
  pointer-events: none;
}

.icv-contact-form .icv-field-wrap--textarea .icv-field-icon {
  top: 18px;
  transform: none;
}

.icv-contact-form .icv-recaptcha {
  margin-bottom: 24px;
}

.icv-contact-form .icv-submit-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--icv-contact-primary);
  color: var(--icv-contact-white);
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.icv-contact-form .icv-submit-btn:hover,
.icv-contact-form .icv-submit-btn:focus {
  background: var(--icv-contact-primary-hover);
  color: var(--icv-contact-white);
  outline: none;
}

/* ---- Office Info ---- */
.icv-office-info__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icv-office-info__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--icv-contact-border);
}

.icv-office-info__item:first-child {
  padding-top: 0;
}

.icv-office-info__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.icv-office-info__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icv-contact-white);
  border: 1px solid var(--icv-contact-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(9, 31, 47, 0.05);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.icv-office-info__icon i {
  font-size: 20px;
  color: var(--icv-contact-primary);
  transition: color 0.25s ease;
}

.icv-office-info__item:hover .icv-office-info__icon {
  background: var(--icv-contact-primary);
  border-color: var(--icv-contact-primary);
  box-shadow: 0 4px 12px rgba(0, 67, 105, 0.25);
}

.icv-office-info__item:hover .icv-office-info__icon i {
  color: #fff;
}

.icv-office-info__content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--icv-contact-dark);
  margin: 0 0 8px;
  line-height: 1.3;
  text-transform: none;
}

.icv-office-info__content p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--icv-contact-text);
  margin: 0;
}

/* ---- Map ---- */
.icv-contact-map {
  padding: 0 0 70px;
  background: var(--icv-contact-bg);
}

.icv-contact-map .map-part {
  border-radius: var(--icv-contact-radius);
  overflow: hidden;
}

.icv-contact-map .map-part iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

/* ---- Responsive: stack below 992px ---- */
@media (max-width: 991px) {
  .icv-contact-section {
    padding: 50px 0;
  }

  .icv-contact-section .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .icv-contact-section .icv-contact-col--form {
    margin-bottom: 24px;
  }

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

  .icv-contact-card__title {
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  .icv-contact-section {
    padding: 40px 0;
  }

  .icv-contact-map {
    padding-bottom: 50px;
  }

  .icv-contact-form .form-row--half > .icv-field-wrap {
    flex: 1 1 100%;
  }

  .icv-contact-form .form-row {
    gap: 16px;
    margin-bottom: 16px;
  }

  .icv-contact-card {
    padding: 28px 20px;
  }

  .icv-contact-card__title {
    font-size: 22px;
  }

  .icv-contact-card__subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .icv-office-info__item {
    gap: 16px;
    padding: 20px 0;
  }

  .icv-office-info__icon {
    width: 46px;
    height: 46px;
  }

  .icv-contact-map .map-part iframe {
    height: 320px;
  }
}

/* ---- Thank you popup ---- */
body.icv-thanks-open {
  overflow: hidden;
}

.icv-thanks {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.icv-thanks[hidden] {
  display: none !important;
}

.icv-thanks__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 31, 47, 0.62);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.icv-thanks__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 44px 32px 36px;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(0, 125, 197, 0.12), transparent 60%),
    #ffffff;
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(9, 31, 47, 0.28);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 0.36s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.icv-thanks.is-open .icv-thanks__backdrop {
  opacity: 1;
}

.icv-thanks.is-open .icv-thanks__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.icv-thanks button.icv-thanks__close,
.icv-thanks .icv-thanks__close {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  left: auto !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f0f4f8 !important;
  color: #6b7280 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icv-thanks button.icv-thanks__close:hover,
.icv-thanks button.icv-thanks__close:focus {
  background: #e4ebf2 !important;
  color: #091f2f !important;
  outline: none;
  transform: rotate(90deg);
}

.icv-thanks__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
}

.icv-thanks__svg {
  width: 88px;
  height: 88px;
  display: block;
}

.icv-thanks__circle {
  stroke: #007dc5;
  stroke-width: 2.5;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
}

.icv-thanks__check {
  stroke: #007dc5;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.icv-thanks.is-open .icv-thanks__circle {
  animation: icvContactThanksCircle 0.55s ease-out 0.12s forwards;
}

.icv-thanks.is-open .icv-thanks__check {
  animation: icvContactThanksCheck 0.4s ease-out 0.5s forwards;
}

@keyframes icvContactThanksCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes icvContactThanksCheck {
  to { stroke-dashoffset: 0; }
}

.icv-thanks__title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #091f2f !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
}

.icv-thanks__text {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: #74787c !important;
  margin: 0 0 24px !important;
}

.icv-thanks button.icv-thanks__btn,
.icv-thanks .icv-thanks__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 46px !important;
  padding: 0 28px !important;
  border: none !important;
  border-radius: 8px !important;
  background: #007dc5 !important;
  color: #fff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 125, 197, 0.28);
}

.icv-thanks button.icv-thanks__btn:hover {
  background: #006aad !important;
  transform: translateY(-1px);
}
