/* SMS Newsletter BD - Frontend Form Styling
 * Brand Theme Base Color: #222222
 * 2-Column Pre-Footer / Bottom Banner Layout
 */

.sms-newsletter-box {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 36px 44px;
    border-radius: 16px;
    box-sizing: border-box;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sms-newsletter-box * {
    box-sizing: border-box;
}

/* ==========================================================================
   2-Column Layout (Left Text, Right Form)
   ========================================================================== */
.sms-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.sms-newsletter-left {
    flex: 1 1 50%;
    max-width: 540px;
}

.sms-newsletter-right {
    flex: 1 1 50%;
    max-width: 480px;
}

/* Badge */
.sms-newsletter-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* Title & Subtitle */
.sms-newsletter-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.sms-newsletter-subtitle {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.sms-newsletter-form {
    width: 100%;
    margin: 0;
}

.sms-form-fields-wrap {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.sms-phone-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sms-phone-prefix {
    font-size: 14px;
    font-weight: 700;
    padding: 12px 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.sms-flag {
    font-size: 16px;
    line-height: 1;
}

.sms-form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
}

.sms-submit-group {
    flex: 0 0 auto;
}

.sms-form-btn {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    height: 100%;
    white-space: nowrap;
    font-family: inherit;
}

.sms-form-btn:active {
    transform: scale(0.98);
}

.sms-form-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Spinner */
.sms-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: smsSpin 0.7s linear infinite;
}

@keyframes smsSpin {
    to { transform: rotate(360deg); }
}

/* Privacy Notice */
.sms-privacy-notice {
    margin: 10px 0 0 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sms-privacy-icon {
    font-size: 13px;
}

/* ==========================================================================
   Feedback Notifications
   ========================================================================== */
.sms-form-feedback {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: none;
    animation: smsFeedbackIn 0.25s ease-out;
}

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

/* ==========================================================================
   THEME 1: BRAND / DARK THEME (#222222 Base) - Default
   ========================================================================== */
.sms-theme-brand,
.sms-theme-dark {
    background-color: #222222;
    color: #ffffff;
    border: 1px solid #333333;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.sms-theme-brand .sms-newsletter-badge,
.sms-theme-dark .sms-newsletter-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #f4f4f5;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.sms-theme-brand .sms-newsletter-title,
.sms-theme-dark .sms-newsletter-title {
    color: #ffffff;
}

.sms-theme-brand .sms-newsletter-subtitle,
.sms-theme-dark .sms-newsletter-subtitle {
    color: #a1a1aa;
}

.sms-theme-brand .sms-phone-group,
.sms-theme-dark .sms-phone-group {
    background: #ffffff;
    border: 2px solid transparent;
}

.sms-theme-brand .sms-phone-group:focus-within,
.sms-theme-dark .sms-phone-group:focus-within {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.sms-theme-brand .sms-phone-prefix,
.sms-theme-dark .sms-phone-prefix {
    background: #f4f4f5;
    color: #222222;
    border-right: 1px solid #e4e4e7;
}

.sms-theme-brand .sms-form-input,
.sms-theme-dark .sms-form-input {
    color: #222222;
}

.sms-theme-brand .sms-form-input::placeholder,
.sms-theme-dark .sms-form-input::placeholder {
    color: #71717a;
}

/* Luxury Contrast Button on #222222 */
.sms-theme-brand .sms-form-btn,
.sms-theme-dark .sms-form-btn {
    background-color: #ffffff;
    color: #222222;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.sms-theme-brand .sms-form-btn:hover,
.sms-theme-dark .sms-form-btn:hover {
    background-color: #e4e4e7;
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
}

.sms-theme-brand .sms-privacy-notice,
.sms-theme-dark .sms-privacy-notice {
    color: #71717a;
}

.sms-theme-brand .sms-form-feedback.sms-success,
.sms-theme-dark .sms-form-feedback.sms-success {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.sms-theme-brand .sms-form-feedback.sms-error,
.sms-theme-dark .sms-form-feedback.sms-error {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   THEME 2: LIGHT THEME (#222222 Accents on White)
   ========================================================================== */
.sms-theme-light {
    background-color: #ffffff;
    color: #222222;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sms-theme-light .sms-newsletter-badge {
    background: #f3f4f6;
    color: #222222;
    border: 1px solid #e5e7eb;
}

.sms-theme-light .sms-newsletter-title {
    color: #222222;
}

.sms-theme-light .sms-newsletter-subtitle {
    color: #6b7280;
}

.sms-theme-light .sms-phone-group {
    background: #ffffff;
    border: 1.5px solid #d1d5db;
}

.sms-theme-light .sms-phone-group:focus-within {
    border-color: #222222;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.12);
}

.sms-theme-light .sms-phone-prefix {
    background: #f9fafb;
    color: #222222;
    border-right: 1px solid #e5e7eb;
}

.sms-theme-light .sms-form-input {
    color: #222222;
}

.sms-theme-light .sms-form-btn {
    background-color: #222222;
    color: #ffffff;
}

.sms-theme-light .sms-form-btn:hover {
    background-color: #3b3b3b;
}

.sms-theme-light .sms-privacy-notice {
    color: #9ca3af;
}

.sms-theme-light .sms-form-feedback.sms-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sms-theme-light .sms-form-feedback.sms-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 920px) {
    .sms-newsletter-box {
        padding: 32px 28px;
    }

    .sms-newsletter-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        text-align: center;
    }

    .sms-newsletter-left {
        max-width: 100%;
    }

    .sms-newsletter-right {
        max-width: 100%;
    }

    .sms-privacy-notice {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .sms-newsletter-box {
        padding: 24px 18px;
        border-radius: 12px;
    }

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

    .sms-form-fields-wrap {
        flex-direction: column;
        gap: 10px;
    }

    .sms-phone-group {
        width: 100%;
    }

    .sms-submit-group,
    .sms-form-btn {
        width: 100%;
    }
}
