/* Newsletter Form Success Message Styles */
.form-box__success {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: max(2.08333vw, 2.5rem) max(1.25vw, 1.5rem);
    border-radius: max(.52083vw, 0.625rem);
    background-color: #fcfeff;
    border: max(.052083vw, 0.0625rem) solid rgba(32, 32, 32, 0.1);
    animation: successFadeIn 0.5s ease-out;
}

.form-box__success-icon {
    width: max(3.125vw, 3.75rem);
    height: max(3.125vw, 3.75rem);
    border-radius: 50%;
    background-color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: max(1.25vw, 1.5rem);
    color: white;
    animation: successIconPop 0.6s ease-out 0.2s both;
}

.form-box__success-icon svg {
    width: max(1.25vw, 1.5rem);
    height: max(1.25vw, 1.5rem);
}

.form-box__success-title {
    color: #202020;
    font-size: max(1.25vw, 1.125rem);
    font-style: normal;
    line-height: normal;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: max(.625vw, 0.75rem);
    font-weight: 600;
    animation: successTextSlide 0.5s ease-out 0.4s both;
}

.form-box__success-text {
    color: #20202066;
    font-size: max(.83333vw, 1rem);
    font-style: normal;
    line-height: 120%;
    letter-spacing: 0.03em;
    text-align: center;
    max-width: 90%;
    animation: successTextSlide 0.5s ease-out 0.6s both;
}

/* Animations */
@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successIconPop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes successTextSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 47.99875em) {
    .form-box__success {
        padding: 2rem 1.5rem;
    }
    
    .form-box__success-icon {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-box__success-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .form-box__success-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .form-box__success-text {
        font-size: 1rem;
    }
}

/* Error Message Styles */
.form-box__error {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: max(.625vw, 0.75rem);
    padding: max(.83333vw, 1rem) max(1.25vw, 1.5rem);
    border-radius: max(.52083vw, 0.625rem);
    background-color: #ffebee;
    border: max(.052083vw, 0.0625rem) solid rgba(244, 67, 54, 0.2);
    margin-top: max(.625vw, 0.75rem);
    animation: errorSlideIn 0.3s ease-out;
}

.form-box__error-icon {
    flex-shrink: 0;
    width: max(1.25vw, 1.5rem);
    height: max(1.25vw, 1.5rem);
    color: #f44336;
}

.form-box__error-icon svg {
    width: 100%;
    height: 100%;
}

.form-box__error-text {
    color: #d32f2f;
    font-size: max(.72916vw, 0.875rem);
    font-style: normal;
    line-height: 120%;
    letter-spacing: 0.03em;
    text-align: center;
    margin: 0;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive for Error */
@media (max-width: 47.99875em) {
    .form-box__error {
        padding: 1rem 1.5rem;
        margin-top: 0.75rem;
        column-gap: 0.75rem;
    }
    
    .form-box__error-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .form-box__error-text {
        font-size: 0.875rem;
    }
} 