/**
 * Newsletter CTA - Shared Component
 * Used across: Tailor Made, Test Service, FAQ, Contact pages
 */

.newsletter-cta {
  padding: 80px 0;
}

.newsletter-cta__wrapper {
  display: grid;
  grid-template-columns: var(--layout-kicker-col) minmax(280px, 430px) 1fr;
  column-gap: var(--layout-kicker-gap);
  align-items: start;
}

.newsletter-cta__kicker-col {
  padding-top: 6px;
}

.newsletter-cta__label {
  font-family: 'Mont', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(31, 31, 31, 0.48);
  display: block;
  margin: 0;
}

.newsletter-cta__title {
  font-family: 'Mont', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -1px;
  color: var(--color-primary);
  margin: 0 0 24px 0;
}

.newsletter-cta__desc {
  font-family: 'Mont', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  color: rgba(31, 31, 31, 0.92);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.newsletter-cta__content-col {
  max-width: 430px;
}

.newsletter-cta__right {
  width: min(100%, 760px);
  justify-self: end;
  padding-top: 8px;
  max-width: none;
}

.newsletter-cta__form {
  display: block;
}

.newsletter-cta__alert {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  font-family: 'Mont', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.newsletter-cta__alert--success {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.newsletter-cta__alert--error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.newsletter-cta__form-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
  position: relative;
}

.newsletter-cta__bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(31, 31, 31, 0.28);
  flex-shrink: 0;
}

.newsletter-cta__form-group::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(31, 31, 31, 0.4);
  transform: translateY(-50%);
  pointer-events: none;
}

input.newsletter-cta__input {
  flex: 1 1 auto;
  height: 66px;
  border: 1px solid rgba(31, 31, 31, 0.15);
  border-radius: 999px;
  padding: 0 24px 0 44px;
  font-family: 'Mont', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
  letter-spacing: 0.8px;
  line-height: 1;
  width: 100%;
  min-width: 0;
}

input.newsletter-cta__input:focus {
  border-color: var(--color-primary);
}

input.newsletter-cta__input::placeholder {
  color: rgba(31, 31, 31, 0.44);
}

.newsletter-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 66px;
  min-width: 210px;
  background: var(--color-primary);
  color: #FFFFFF;
  font-family: 'Mont', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.newsletter-cta__btn:hover {
  background: var(--color-primary-hover, #0a6577);
}

.newsletter-cta__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newsletter-cta__btn-start,
.newsletter-cta__btn-end {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.newsletter-cta__btn .newsletter-cta__bullet {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: #FFFFFF;
}

.newsletter-cta__line {
  height: 1px;
  background: currentColor;
  border-radius: 999px;
  transition: width 0.28s ease, opacity 0.28s ease;
}

.newsletter-cta__line--start {
  width: 0;
  opacity: 0;
}

.newsletter-cta__line--end {
  width: 40px;
  opacity: 1;
}

.newsletter-cta__btn-end .newsletter-cta__bullet {
  margin-left: -1px;
}

.newsletter-cta__btn:hover .newsletter-cta__line--start {
  width: 40px;
  opacity: 1;
}

.newsletter-cta__btn:hover .newsletter-cta__line--end {
  width: 0;
  opacity: 0;
}

.newsletter-cta__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Mont', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(31, 31, 31, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.3;
  margin: 0;
  padding-left: 44px;
}

.newsletter-cta__consent input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(31, 31, 31, 0.35);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  vertical-align: middle;
  margin: 0;
}

.newsletter-cta__consent input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.newsletter-cta__consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: solid #FFFFFF;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
