/**
 * SDC Newsletter Styles
 */

.sdc-newsletter-wrapper {
    width: 100%;
    margin: 40px 0;
}

.sdc-newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sdc-newsletter-content {
    margin-bottom: 30px;
}

.sdc-newsletter-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.sdc-newsletter-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.sdc-newsletter-form-wrapper {
    width: 100%;
}

.sdc-newsletter-form {
    position: relative;
}

/* Honeypot field - hide from users */
.sdc-newsletter-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.sdc-newsletter-fields {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.sdc-newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.sdc-newsletter-input:focus {
    outline: none;
    border-color: #5bc0de;
    box-shadow: 0 0 0 3px rgba(91, 192, 222, 0.1);
}

.sdc-newsletter-input::placeholder {
    color: #999;
}

.sdc-newsletter-name {
    max-width: 220px;
}

.sdc-newsletter-email {
    flex: 1.5;
    max-width: 400px;
}

.sdc-newsletter-submit {
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #5bc0de;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sdc-newsletter-submit:hover {
    background: #46b8da;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 192, 222, 0.3);
}

.sdc-newsletter-submit:active {
    transform: translateY(0);
}

.sdc-newsletter-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.sdc-newsletter-consent {
    margin-top: 20px;
}

.sdc-newsletter-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.sdc-newsletter-checkbox {
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.sdc-newsletter-checkbox-label span {
    user-select: none;
}

.sdc-newsletter-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 15px;
    display: none;
}

.sdc-newsletter-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sdc-newsletter-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive design */
@media (max-width: 768px) {
    .sdc-newsletter-container {
        padding: 30px 20px;
    }

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

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

    .sdc-newsletter-fields {
        flex-direction: column;
        gap: 15px;
    }

    .sdc-newsletter-input,
    .sdc-newsletter-name,
    .sdc-newsletter-email {
        width: 100%;
        max-width: 100%;
    }

    .sdc-newsletter-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sdc-newsletter-container {
        padding: 25px 15px;
    }

    .sdc-newsletter-title {
        font-size: 20px;
    }

    .sdc-newsletter-checkbox-label {
        font-size: 13px;
    }
}
