/**
 * Eko Stock Notifier - Frontend Styles
 * Brand: Eko Design Co - Premium, minimalist, black primary
 */

.esn-form-wrapper {
    margin: 25px 0;
    padding: 30px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 0; /* Sharp edges - modern/industrial */
}

.esn-form .esn-message {
    margin: 0 0 20px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.esn-form-fields {
    display: flex;
    gap: 0; /* Flush design */
    flex-wrap: wrap;
}

.esn-email-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border: 2px solid #000;
    border-right: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    background: #fff;
    transition: all 0.2s ease;
}

.esn-email-input:focus {
    outline: none;
    background: #fff;
    box-shadow: inset 0 0 0 1px #000;
}

.esn-email-input::placeholder {
    color: #999;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.esn-submit-btn {
    padding: 14px 30px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.esn-submit-btn:hover {
    background: #fff;
    color: #000;
}

.esn-submit-btn:disabled {
    background: #666;
    border-color: #666;
    cursor: not-allowed;
}

.esn-submit-btn.loading {
    position: relative;
    color: transparent;
}

.esn-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: esn-spin 0.8s linear infinite;
}

.esn-submit-btn:hover.loading::after {
    border-color: #000;
    border-top-color: transparent;
}

@keyframes esn-spin {
    to { transform: rotate(360deg); }
}

.esn-response {
    margin-top: 20px;
    padding: 15px 18px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.esn-response.success {
    background: #000;
    color: #fff;
    border: none;
}

.esn-response.error {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

/* Cloudflare Turnstile */
.cf-turnstile {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .esn-form-wrapper {
        padding: 20px;
    }
    
    .esn-form-fields {
        flex-direction: column;
    }
    
    .esn-email-input {
        min-width: 100%;
        border-right: 2px solid #000;
        border-bottom: none;
    }
    
    .esn-submit-btn {
        width: 100%;
    }
}

/* Variable product container */
.esn-variable-form-container {
    margin-top: 20px;
}

/* Subscriber count badge (optional - premium feel) */
.esn-subscriber-count {
    margin-top: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.esn-subscriber-count strong {
    color: #000;
}
