/* SMOOTHIE EMAIL POPUP STYLES */

/* Сброс и базовые стили */
.smoothie-email-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.smoothie-email-modal * {
    box-sizing: border-box;
}

.smoothie-email-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.smoothie-modal-content {
    background: #F3F3E3;
    border-radius: 1.5rem;
    position: relative;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 2rem 4rem rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(96, 111, 105, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    margin: auto;
    border: 2px solid rgba(96, 111, 105, 0.15);
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(2rem) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.smoothie-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(96, 111, 105, 0.1);
    backdrop-filter: blur(10px);
    color: #606F69;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000000;
    border: 1px solid rgba(96, 111, 105, 0.2);
}

.smoothie-close-btn:hover {
    background: rgba(96, 111, 105, 0.15);
    transform: rotate(90deg) scale(1.1);
}

.smoothie-modal-body {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    color: #606F69;
    position: relative;
}

.smoothie-gift-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(96, 111, 105, 0.2));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-0.5rem); }
    60% { transform: translateY(-0.25rem); }
}

.smoothie-main-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #606F69;
    text-shadow: 0 2px 4px rgba(243, 243, 227, 0.3);
}

.smoothie-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    line-height: 1.4;
    font-weight: 400;
    color: #4A5954;
}

.smoothie-benefits-box {
    background: #A9CFE0;
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    border: 1px solid rgba(96, 111, 105, 0.1);
    box-shadow: 0 4px 12px rgba(96, 111, 105, 0.1);
}

.smoothie-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.smoothie-benefits-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 600;
    color: white;
}

.smoothie-benefits-item:last-child {
    margin-bottom: 0;
}

.smoothie-check-icon {
    width: 1.2rem;
    height: 1.2rem;
    background: white;
    color: #A9CFE0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    margin-right: 0.65rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(96, 111, 105, 0.2);
}

.smoothie-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.smoothie-input {
    padding: 0.95rem 1.125rem;
    border: none;
    border-radius: 2rem;
    font-size: 0.95rem;
    background: white;
    color: #606F69;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 2px 8px rgba(96, 111, 105, 0.1);
    font-weight: 500;
    border: 2px solid rgba(169, 207, 224, 0.2);
}

.smoothie-input:focus {
    box-shadow: 
        0 0 0 3px rgba(169, 207, 224, 0.3),
        0 4px 12px rgba(96, 111, 105, 0.15);
    transform: translateY(-1px);
    border-color: #A9CFE0;
}

.smoothie-input::placeholder {
    color: #8B9B95;
    font-weight: 400;
}

.smoothie-submit-btn {
    background: #606F69;
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 3rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 14px rgba(96, 111, 105, 0.3);
}

.smoothie-submit-btn:hover {
    background: #4A5954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 111, 105, 0.4);
}

.smoothie-submit-btn:active {
    transform: translateY(-1px);
}

.smoothie-submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.smoothie-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(243, 243, 227, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.smoothie-submit-btn.loading .smoothie-spinner {
    display: inline-block;
}

.smoothie-submit-btn.loading .smoothie-btn-text {
    display: none;
}

.smoothie-privacy {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-top: 1rem;
    line-height: 1.3;
    font-weight: 400;
    color: #4A5954;
}

.smoothie-error-msg {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    margin-top: 0.65rem;
    display: none;
    text-align: center;
    backdrop-filter: blur(10px);
}

.smoothie-error-msg.visible {
    display: block;
}

.smoothie-success-screen {
    display: none;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
}

.smoothie-success-screen.active {
    display: block;
}

.smoothie-success-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: checkGrow 0.6s ease-out;
    filter: drop-shadow(0 4px 8px rgba(169, 207, 224, 0.3));
}

@keyframes checkGrow {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.smoothie-success-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #606F69;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(243, 243, 227, 0.3);
}

.smoothie-success-text {
    color: #4A5954;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 400;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 480px) {
    .smoothie-email-modal {
        padding: 0.5rem;
    }
    
    .smoothie-modal-content {
        width: 100%;
        max-width: none;
        border-radius: 1.25rem;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
    }
    
    .smoothie-modal-body {
        padding: 1.75rem 1.25rem 1.25rem;
    }
    
    .smoothie-gift-emoji {
        font-size: 2.75rem;
        margin-bottom: 0.85rem;
    }
    
    .smoothie-main-title {
        font-size: 1.375rem;
        margin-bottom: 0.65rem;
    }
    
    .smoothie-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.125rem;
        line-height: 1.35;
    }
    
    .smoothie-benefits-box {
        padding: 0.875rem;
        margin-bottom: 1.25rem;
    }
    
    .smoothie-benefits-item {
        font-size: 0.8rem;
        margin-bottom: 0.55rem;
    }
    
    .smoothie-check-icon {
        width: 1.1rem;
        height: 1.1rem;
        font-size: 0.65rem;
        margin-right: 0.6rem;
    }
    
    .smoothie-form {
        gap: 0.75rem;
    }
    
    .smoothie-input {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .smoothie-submit-btn {
        padding: 0.925rem 1.25rem;
        font-size: 0.925rem;
        min-height: 2.75rem;
    }
    
    .smoothie-privacy {
        font-size: 0.65rem;
        margin-top: 0.875rem;
    }
    
    .smoothie-success-screen {
        padding: 1.75rem 1.25rem 1.25rem;
    }
    
    .smoothie-success-icon {
        font-size: 3rem;
    }
    
    .smoothie-success-title {
        font-size: 1.25rem;
    }
    
    .smoothie-success-text {
        font-size: 0.85rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .smoothie-modal-body {
        padding: 1.5rem 1rem 1rem;
    }
    
    .smoothie-gift-emoji {
        font-size: 2.5rem;
    }
    
    .smoothie-main-title {
        font-size: 1.25rem;
    }
    
    .smoothie-subtitle {
        font-size: 0.85rem;
    }
    
    .smoothie-benefits-item {
        font-size: 0.75rem;
    }
    
    .smoothie-input {
        font-size: 0.875rem;
        padding: 0.8rem 0.9rem;
    }
    
    .smoothie-submit-btn {
        font-size: 0.875rem;
        padding: 0.85rem 1.125rem;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-height: 600px) and (orientation: landscape) {
    .smoothie-email-modal {
        padding: 0.25rem;
        align-items: flex-start;
        justify-content: center;
        padding-top: 1rem;
    }
    
    .smoothie-modal-content {
        max-height: calc(100vh - 0.5rem);
        overflow-y: auto;
    }
    
    .smoothie-modal-body {
        padding: 1.25rem 1.25rem 1rem;
    }
    
    .smoothie-gift-emoji {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }
    
    .smoothie-main-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .smoothie-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.875rem;
    }
    
    .smoothie-benefits-box {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .smoothie-benefits-item {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .smoothie-form {
        gap: 0.625rem;
    }
    
    .smoothie-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .smoothie-submit-btn {
        padding: 0.8rem 1.125rem;
        font-size: 0.85rem;
        min-height: 2.5rem;
    }
    
    .smoothie-privacy {
        font-size: 0.6rem;
        margin-top: 0.75rem;
    }
}