/* Email Subscriptions Pro - Frontend Styles */

/* Subscribe Form Wrapper */
.esp-subscribe-form-wrapper {
    max-width: 600px;
    margin: 30px auto;
    padding: 0;
}

.esp-subscribe-form-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.esp-subscribe-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: esp-pulse 15s ease-in-out infinite;
}

@keyframes esp-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Form Title */
.esp-form-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.esp-form-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0 0 30px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Form Groups */
.esp-form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.esp-form-control {
    width: 100%;
    padding: 16px 20px 16px 50px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.esp-form-control:focus {
    outline: none;
    border-color: #ffffff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.esp-form-control::placeholder {
    color: #999;
}

/* Icons */
.esp-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    pointer-events: none;
    z-index: 2;
}

/* Submit Button */
.esp-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.esp-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.esp-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.esp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.esp-submit-btn:active {
    transform: translateY(-1px);
}

.esp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.esp-btn-text,
.esp-btn-loader {
    position: relative;
    z-index: 1;
}

/* Spinner Animation */
.esp-spinner {
    animation: esp-spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes esp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Messages */
.esp-form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    animation: esp-slideIn 0.3s ease;
}

@keyframes esp-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.esp-form-message.esp-success {
    background: rgba(76, 175, 80, 0.95);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.esp-form-message.esp-error {
    background: rgba(244, 67, 54, 0.95);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Minimal Style */
.esp-style-minimal .esp-subscribe-form-container {
    background: #f8f9fa;
    padding: 25px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

.esp-style-minimal .esp-subscribe-form-container::before {
    display: none;
}

.esp-style-minimal .esp-form-title {
    color: #222;
    text-shadow: none;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.esp-style-minimal .esp-form-description {
    color: #666;
    font-size: 14px;
}

.esp-style-minimal .esp-form-control {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 14px 18px 14px 48px;
}

.esp-style-minimal .esp-form-control:focus {
    border-color: #d35f3c;
    box-shadow: 0 0 0 3px rgba(211, 95, 60, 0.1);
}

.esp-style-minimal .esp-icon {
    color: #d35f3c;
}

.esp-style-minimal .esp-submit-btn {
    background: #d35f3c !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 14px 28px;
    box-shadow: 0 4px 12px rgba(211, 95, 60, 0.25) !important;
}

.esp-style-minimal .esp-submit-btn:hover {
    background: #b84d2f !important;
    box-shadow: 0 6px 16px rgba(211, 95, 60, 0.35) !important;
}

/* Modern Style */
.esp-style-modern .esp-subscribe-form-container {
    background: #1a1a2e;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.esp-style-modern .esp-form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.esp-style-modern .esp-form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.esp-style-modern .esp-form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00d4ff;
}

.esp-style-modern .esp-icon {
    color: #00d4ff;
}

.esp-style-modern .esp-submit-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #ffffff;
}

.esp-style-modern .esp-submit-btn:hover {
    background: linear-gradient(135deg, #00bbff 0%, #0088ee 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .esp-subscribe-form-container {
        padding: 30px 20px;
    }
    
    .esp-form-title {
        font-size: 24px;
    }
    
    .esp-form-description {
        font-size: 14px;
    }
    
    .esp-form-control {
        padding: 14px 18px 14px 45px;
        font-size: 15px;
    }
    
    .esp-submit-btn {
        padding: 14px 28px;
        font-size: 16px;
    }
}
