/* ============================================================
   MailChimp Subscribe Widget — Frontend Styles
   Matches the design: light-grey bg, white input, navy button
   ============================================================ */

.msw-wrapper {
    background-color: #e8eaed;
    padding: 30px;
    box-sizing: border-box;
    font-family: inherit;
}

/* Heading */
.msw-heading {
    color: #0d2a4e;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

/* Form layout — stacked */
.msw-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Email input */
.msw-email-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 1rem;
    color: #555;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.msw-email-input::placeholder {
    color: #aaa;
}

.msw-email-input:focus {
    border-color: #0d2a4e;
    box-shadow: 0 0 0 3px rgba(13, 42, 78, 0.12);
}

/* Submit button */
.msw-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background-color: #0d2a4e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
}

.msw-submit-btn:hover {
    background-color: #1a4a8a;
}

.msw-submit-btn:active {
    transform: scale(0.98);
}

.msw-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.msw-btn-arrow {
    font-size: 1.3rem;
    line-height: 1;
}

/* Loading spinner inside button */
.msw-submit-btn.msw-loading .msw-btn-text::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: msw-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes msw-spin {
    to { transform: rotate(360deg); }
}

/* Message area */
.msw-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.msw-message.msw-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.msw-message.msw-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
