/* ==========================================================================
   433 E-post Inline CTA — Editorial Native Design
   ========================================================================== */

.epm433-inline-cta {
    margin: 40px 0;
    padding: 32px 0;
    background: transparent;
    border-top: 1px solid #2D3440;
    border-bottom: 1px solid #2D3440;
    position: relative;
    clear: both;
}

/* ---- Header (Native Editorial Look) ---- */
.epm433-cta-header {
    margin-bottom: 20px;
}

.epm433-cta-label {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F5C542;
    margin-bottom: 10px;
}

.epm433-cta-title {
    font-family: "Inter", sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.25;
    color: inherit;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.epm433-cta-desc {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: inherit;
    opacity: 0.7; /* Beholder litt dempet kontrast */
    margin: 0;
}

/* ---- Emoji Animation Wrapper ---- */
@keyframes infinite-spinning {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.epm433-emoji-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 8px; /* Litt mindre enn 20px for å passe i en tittel */
  box-shadow: 0 0 15px rgb(0 0 0 / 6%); /* Dempet skygge for inline */
  flex-shrink: 0;
}

/* Støtte for dark mode på emoji-boksen hvis ønskelig, 
   men hvit boks gjør at emojien popper på begge modes */

.epm433-emoji-wrapper span {
  display: block;
  font-size: 20px;
  animation: infinite-spinning 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

/* ---- Form (Frictionless Grouping) ---- */
.epm433-cta-form {
    position: relative;
    margin-bottom: 12px;
}

.epm433-cta-input-row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.epm433-cta-email {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #F8FAFC;
    background: #0E1116; /* Same as body, blends in */
    border: 1px solid #2D3440;
    border-right: none;
    border-radius: 2px 0 0 2px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
}

.epm433-cta-email::placeholder {
    color: #5A6577;
}

.epm433-cta-email:focus {
    border-color: #F5C542;
    background: #13171D;
}

.epm433-cta-submit {
    flex-shrink: 0;
    padding: 14px 24px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0E1116;
    background: #F5C542;
    border: 1px solid #F5C542;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.epm433-cta-submit:hover {
    background: #FFD35A;
    border-color: #FFD35A;
}

.epm433-cta-submit:active {
    background: #E5B435;
    border-color: #E5B435;
}

/* Loading state */
.epm433-cta-submit.is-loading {
    color: transparent;
    pointer-events: none;
    position: relative;
}
.epm433-cta-submit.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #0E1116;
    border-top-color: transparent;
    border-radius: 50%;
    animation: epm433-spin 0.6s linear infinite;
}

/* ---- Privacy ---- */
.epm433-cta-privacy {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    color: #5A6577;
    margin: 0;
}

/* ---- Success State ---- */
.epm433-inline-cta.is-submitted .epm433-cta-form,
.epm433-inline-cta.is-submitted .epm433-cta-privacy {
    display: none;
}
.epm433-inline-cta.is-submitted .epm433-cta-header {
    margin-bottom: 0;
}
.epm433-inline-cta.is-submitted .epm433-cta-title {
    color: #34D399; /* Success green */
}

/* ---- Feedback ---- */
.epm433-cta-feedback {
    padding: 12px 14px;
    margin-top: 10px;
    border-radius: 2px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
}
.epm433-cta-feedback.is-error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border-left: 2px solid #EF4444;
}
.epm433-cta-feedback.is-info {
    background: rgba(96, 165, 250, 0.1);
    color: #60A5FA;
    border-left: 2px solid #60A5FA;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .epm433-inline-cta {
        margin: 32px 0; 
        padding: 24px 0; /* Keep it flat on mobile too */
    }
    
    .epm433-cta-title {
        font-size: 21px;
    }

    .epm433-cta-input-row {
        flex-direction: column;
    }

    .epm433-cta-email {
        border-right: 1px solid #2D3440;
        border-radius: 2px;
        margin-bottom: 8px;
    }

    .epm433-cta-submit {
        border-radius: 2px;
        width: 100%;
        text-align: center;
        padding: 16px;
    }
}
@keyframes epm433-spin {
    to { transform: rotate(360deg); }
}
