/* 
 * Product Availability Notifier - Style formularza
 * Możesz edytować te style aby dopasować je do swojego motywu
 * 
 * KOLORY DO ZMIANY:
 * --notify-primary: #0073aa (niebieski - główny kolor)
 * --notify-primary-dark: #005177 (ciemniejszy niebieski)
 * --notify-success: #28a745 (zielony - sukces)
 * --notify-error: #dc3545 (czerwony - błędy)
 */

:root {
    --notify-primary: #222222;
    --notify-primary-dark: #005177;
    --notify-success: #28a745;
    --notify-success-bg: #d4edda;
    --notify-success-border: #c3e6cb;
    --notify-error: #dc3545;
    --notify-error-bg: #f8d7da;
    --notify-error-border: #f5c6cb;
}

.notify-when-available {
    margin: 20px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--notify-primary);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.15);
    position: relative;
    overflow: hidden;
}

.notify-when-available::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--notify-primary), var(--notify-primary-dark), var(--notify-primary));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.notify-when-available h3 {
    color: var(--notify-primary);
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notify-when-available .description {
    margin-bottom: 20px;
    color: #495057;
    font-size: 15px;
    line-height: 1.5;
}

.notify-form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.notify-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.notify-email-input {
    flex: 1;
    min-width: 280px;
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.notify-email-input:focus {
    border-color: var(--notify-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    transform: translateY(-1px);
}

.notify-submit-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--notify-primary) 0%, var(--notify-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notify-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
}

.notify-submit-btn:active {
    transform: translateY(0);
}

.notify-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.notify-message {
    margin-top: 15px;
    animation: slideIn 0.5s ease;
}

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

.notify-success {
    padding: 15px;
    background: linear-gradient(135deg, var(--notify-success-bg) 0%, var(--notify-success-border) 100%);
    color: #155724;
    border: 1px solid var(--notify-success-border);
    border-radius: 8px;
    border-left: 4px solid var(--notify-success);
}

.notify-error {
    padding: 15px;
    background: linear-gradient(135deg, var(--notify-error-bg) 0%, var(--notify-error-border) 100%);
    color: #721c24;
    border: 1px solid var(--notify-error-border);
    border-radius: 8px;
    border-left: 4px solid var(--notify-error);
}

.notify-disclaimer {
    color: #6c757d;
    margin-top: 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-style: italic;
}

.notify-inline-wrapper {
    display: block;
    clear: both;
    margin-top: 15px;
}

/* Google reCAPTCHA v2 styling */
.notify-captcha-wrapper {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

/* Responsywność */
@media (max-width: 768px) {
    .notify-when-available {
        margin: 15px 0;
        padding: 20px;
    }
    
    .notify-form {
        flex-direction: column;
    }
    
    .notify-email-input {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .notify-submit-btn {
        width: 100%;
        min-width: auto;
    }
    
    .notify-when-available h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .notify-when-available {
        padding: 15px;
        margin: 10px 0;
    }
    
    .notify-form-container {
        padding: 15px;
    }
    
    .notify-email-input,
    .notify-submit-btn {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Flatsome compatibility */
.product-summary .notify-when-available {
    margin: 25px 0;
}

.single-product-summary .notify-when-available {
    max-width: 100%;
}

.flatsome-theme .notify-submit-btn {
    font-family: inherit;
}

.ux-builder-element .notify-when-available {
    margin: 15px 0;
}