/**
 * Newsletter Section Styles
 *
 * Styles for the newsletter signup section displayed above the footer.
 *
 * @package Sarisara_Child
 * @subpackage Newsletter
 * @since 1.0.0
 */

/* Newsletter Section Container */
.sarisara-newsletter-section {
    background: linear-gradient(135deg, #1a5f7a 0%, #0d3d4d 100%);
    padding: 60px 0;
    margin-top: 0;
}

.sarisara-newsletter-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.sarisara-newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* Text Content */
.sarisara-newsletter-text {
    flex: 1;
    min-width: 280px;
}

.sarisara-newsletter-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.sarisara-newsletter-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Form Container */
.sarisara-newsletter-form {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

/* FluentForm Overrides */
.sarisara-newsletter-form .fluentform {
    margin: 0;
}

.sarisara-newsletter-form .ff-el-group {
    margin-bottom: 0;
}

.sarisara-newsletter-form .ff-el-input--label {
    display: none;
}

/* Inline form layout */
.sarisara-newsletter-form .frm-fluent-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sarisara-newsletter-form .ff-el-group {
    flex: 1;
    min-width: 180px;
}

.sarisara-newsletter-form .ff-el-group:last-child {
    flex: 0 0 auto;
}

/* Input Styling */
.sarisara-newsletter-form .ff-el-form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    color: #333;
    transition: all 0.2s ease;
    height: auto;
}

.sarisara-newsletter-form .ff-el-form-control:focus {
    background: #ffffff;
    border-color: #ffc107;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.sarisara-newsletter-form .ff-el-form-control::placeholder {
    color: #888;
}

/* Submit Button */
.sarisara-newsletter-form .ff_submit_btn_wrapper {
    margin-top: 0;
}

.sarisara-newsletter-form .ff-btn-submit {
    background: #ffc107;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sarisara-newsletter-form .ff-btn-submit:hover {
    background: #ffcd39;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.sarisara-newsletter-form .ff-btn-submit:active {
    transform: translateY(0);
}

/* Success Message */
.sarisara-newsletter-form .ff-message-success {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 16px 20px;
    color: #ffffff;
    text-align: center;
}

/* Error Message */
.sarisara-newsletter-form .ff-el-is-error .ff-el-form-control {
    border-color: #ff6b6b;
}

.sarisara-newsletter-form .error {
    color: #ffcccb;
    font-size: 13px;
    margin-top: 6px;
}

/* Placeholder when form not configured */
.sarisara-newsletter-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.sarisara-newsletter-placeholder a {
    color: #ffc107;
    text-decoration: underline;
}

.sarisara-newsletter-placeholder a:hover {
    color: #ffcd39;
}

/* Loading State */
.sarisara-newsletter-form .ff-btn-submit.ff-working {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sarisara-newsletter-section {
        padding: 50px 20px;
    }

    .sarisara-newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .sarisara-newsletter-text {
        min-width: 100%;
    }

    .sarisara-newsletter-title {
        font-size: 24px;
    }

    .sarisara-newsletter-form {
        min-width: 100%;
        max-width: 100%;
    }

    .sarisara-newsletter-form .frm-fluent-form {
        flex-direction: column;
    }

    .sarisara-newsletter-form .ff-el-group {
        min-width: 100%;
    }

    .sarisara-newsletter-form .ff-btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sarisara-newsletter-section {
        padding: 40px 15px;
    }

    .sarisara-newsletter-title {
        font-size: 22px;
    }

    .sarisara-newsletter-subtitle {
        font-size: 14px;
    }
}

/* Dark theme compatibility */
.dark-mode .sarisara-newsletter-section {
    background: linear-gradient(135deg, #0d3d4d 0%, #061f28 100%);
}

/* Privacy note styling (if GDPR checkbox added) */
.sarisara-newsletter-form .ff_t_c {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.sarisara-newsletter-form .ff_t_c a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* Hide required asterisk in newsletter form */
.sarisara-newsletter-form .ff-el-required-label {
    display: none;
}
