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

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

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

/* ---- Intro / why join ---- */
.icv-career-intro {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0, 125, 197, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(0, 67, 105, 0.06), transparent 50%),
    var(--icv-career-bg);
  padding: 70px 0 40px;
}

.icv-career-intro__header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.icv-career-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--icv-career-primary);
  margin: 0 0 12px;
}

.icv-career-intro__eyebrow-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
  flex-shrink: 0;
}

.icv-career-intro__eyebrow-icon::before,
.icv-career-intro__eyebrow-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 5px;
  height: 14px;
  background: currentColor;
  border-radius: 1px;
  transform: skewX(-18deg);
}

.icv-career-intro__eyebrow-icon::before {
  left: 0;
}

.icv-career-intro__eyebrow-icon::after {
  left: 8px;
}

.icv-career-intro__title {
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--icv-career-dark);
  margin: 0 0 14px;
  line-height: 1.25;
}

.icv-career-intro__text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--icv-career-text);
  margin: 0;
}

.icv-career-benefits {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.icv-career-benefit {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 12px;
  box-sizing: border-box;
}

.icv-career-benefit__inner {
  height: 100%;
  background: var(--icv-career-soft);
  border: 1px solid var(--icv-career-border);
  border-radius: var(--icv-career-radius);
  padding: 28px 22px;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.icv-career-benefit__inner:hover {
  border-color: rgba(0, 125, 197, 0.35);
  box-shadow: 0 10px 28px rgba(9, 31, 47, 0.08);
  transform: translateY(-4px);
}

.icv-career-benefit__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--icv-career-white);
  border: 1px solid var(--icv-career-border);
  color: var(--icv-career-primary);
  font-size: 22px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.icv-career-benefit__inner:hover .icv-career-benefit__icon {
  background: var(--icv-career-primary);
  border-color: var(--icv-career-primary);
  color: #fff;
}

.icv-career-benefit__title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--icv-career-dark);
  margin: 0 0 8px;
}

.icv-career-benefit__text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--icv-career-text);
  margin: 0;
}

/* ---- Apply section ---- */
.icv-career-apply {
  background: var(--icv-career-soft);
  padding: 50px 0 80px;
}

.icv-career-apply__grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
  align-items: stretch;
}

.icv-career-apply__col {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.icv-career-apply__col--info {
  flex: 0 0 40%;
  max-width: 40%;
}

.icv-career-apply__col--form {
  flex: 0 0 60%;
  max-width: 60%;
}

.icv-career-visual {
  height: 100%;
  min-height: 520px;
  border-radius: var(--icv-career-radius);
  overflow: hidden;
  border: 1px solid var(--icv-career-border);
  background: var(--icv-career-navy);
}

.icv-career-visual__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.icv-career-panel {
  background: var(--icv-career-white);
  border: 1px solid var(--icv-career-border);
  border-radius: var(--icv-career-radius);
  padding: 40px 36px;
  height: 100%;
  box-sizing: border-box;
}

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

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

.icv-career-alert {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.icv-career-alert--success {
  background: #e8f6ee;
  color: #1b6b3a;
  border: 1px solid #c6e6d2;
}

.icv-career-alert--error {
  background: #fdeeee;
  color: #9b2c2c;
  border: 1px solid #f3c6c6;
}

/* ---- Form fields (match contact + mock) ---- */
.icv-career-form .icv-field-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
}

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

.icv-career-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a4a8' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.icv-career-form input::placeholder {
  color: #a0a4a8;
}

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

.icv-career-form .icv-file-wrap {
  border: 1px solid var(--icv-career-border);
  border-radius: 8px;
  background: var(--icv-career-white);
  padding: 12px 14px 12px 44px;
  position: relative;
  margin-bottom: 6px;
}

.icv-career-form .icv-file-wrap .icv-field-icon {
  top: 50%;
}

.icv-career-form .icv-file-wrap input[type="file"] {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--icv-career-text);
  border: 0;
  background: transparent;
  padding: 0;
}

.icv-career-form .icv-file-hint {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #a0a4a8;
  margin: 0 0 18px;
  padding-left: 2px;
}

.icv-career-form .icv-recaptcha {
  margin-bottom: 22px;
}

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

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

.icv-career-form__note {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: #a0a4a8;
  text-align: center;
  margin: 16px 0 0;
}

/* ---- Thank you popup (custom, overrides global button/modal styles) ---- */
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: icvThanksCircle 0.55s ease-out 0.12s forwards;
}

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

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

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

.icv-thanks__title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 28px !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.7 !important;
  color: #74787c !important;
  margin: 0 auto 28px !important;
  max-width: 320px;
  text-transform: none !important;
}

.icv-thanks button.icv-thanks__btn,
.icv-thanks .icv-thanks__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 150px !important;
  margin: 0 auto !important;
  padding: 14px 28px !important;
  background: #007dc5 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 125, 197, 0.28);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.icv-thanks button.icv-thanks__btn:hover,
.icv-thanks button.icv-thanks__btn:focus {
  background: #006aad !important;
  color: #ffffff !important;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 125, 197, 0.34);
}

@media (max-width: 480px) {
  .icv-thanks__dialog {
    padding: 36px 22px 28px;
    border-radius: 16px;
  }

  .icv-thanks__title {
    font-size: 24px !important;
  }

  .icv-thanks__icon,
  .icv-thanks__svg {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 991px) {
  .icv-career-intro {
    padding: 50px 0 24px;
  }

  .icv-career-intro__title {
    font-size: 28px;
  }

  .icv-career-benefit {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .icv-career-apply__col--info,
  .icv-career-apply__col--form {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .icv-career-apply__col--info {
    margin-bottom: 24px;
  }

  .icv-career-visual {
    min-height: 360px;
    max-height: 480px;
  }

  .icv-career-panel {
    padding: 32px 24px;
  }

  .icv-career-panel__title {
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  .icv-career-intro {
    padding: 40px 0 16px;
  }

  .icv-career-apply {
    padding: 36px 0 60px;
  }

  .icv-career-benefit {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .icv-career-intro__title {
    font-size: 24px;
  }

  .icv-career-visual {
    min-height: 280px;
    max-height: 380px;
  }

  .icv-career-panel {
    padding: 28px 20px;
  }
}
