/* ── Shortcode: Mailchimp Signup ──────────────────────────────────────────── *
 *  Uses the frontend's CSS custom properties defined in main.css :root.
 *  Three themes: dark (footer default), light, card.
 *  Plus inline layout modifier.
 * ────────────────────────────────────────────────────────────────────────── */

/* ── Base wrap ─────────────────────────────────────────────────────────────── */
.mc-signup-wrap {
    font-family: 'Inter', 'Poppins', sans-serif;
    width: 100%;
}

/* ── Icon ──────────────────────────────────────────────────────────────────── */
.mc-signup__icon-wrap {
    text-align: center;
    margin-bottom: .875rem;
}

.mc-signup__icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.mc-signup-wrap--dark .mc-signup__icon-circle {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}

.mc-signup-wrap--light .mc-signup__icon-circle {
    background: var(--theme-primary-light, #0f5e92);
    color: #ffffff;
}

.mc-signup-wrap--card .mc-signup__icon-circle {
    background: var(--neutral-white-2, #e8f0f6);
    color: var(--theme-primary-light, #0f5e92);
}

/* ── Type radio selector ───────────────────────────────────────────────────── */
.mc-signup__type-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: .875rem;
}

.mc-signup__type-opt {
    display: flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    user-select: none;
}

.mc-signup__type-radio {
    cursor: pointer;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--theme-primary-light, #0f5e92);
}

.mc-signup__type-label {
    font-size: var(--paragraph-s, 14px);
}

.mc-signup-wrap--dark .mc-signup__type-label {
    color: var(--neutral-white-4, #bfd2df);
}

.mc-signup-wrap--light .mc-signup__type-label,
.mc-signup-wrap--card .mc-signup__type-label {
    color: var(--neutral-dark-2, #425a6b);
}

/* ── DARK theme — designed for the dark footer (--theme-primary-dark) ─────── */
.mc-signup-wrap--dark {
    background: transparent;
    padding: 0;
}

.mc-signup-wrap--dark .mc-signup__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .375rem;
    line-height: 1.35;
}

.mc-signup-wrap--dark .mc-signup__desc {
    font-size: var(--paragraph-s, 14px);
    color: var(--neutral-white-4, #bfd2df);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.mc-signup-wrap--dark .mc-signup__label {
    display: block;
    font-size: var(--paragraph-xs, 13px);
    font-weight: 600;
    color: var(--neutral-white-4, #bfd2df);
    margin-bottom: .3125rem;
    letter-spacing: .015em;
}

.mc-signup-wrap--dark .mc-signup__field {
    margin-bottom: .875rem;
}

/* Inputs: semi-transparent dark-on-dark with light border */
.mc-signup-wrap--dark .mc-signup__input.form-control {
    background-color: rgba(255, 255, 255, .07);
    border-color: rgba(191, 210, 223, .3);
    color: #ffffff;
    border-radius: 6px;
    font-size: var(--paragraph-s, 14px);
    transition: border-color .2s ease, background-color .2s ease;
}

.mc-signup-wrap--dark .mc-signup__input.form-control::placeholder {
    color: rgba(191, 210, 223, .55);
}

.mc-signup-wrap--dark .mc-signup__input.form-control:focus {
    background-color: rgba(255, 255, 255, .11);
    border-color: var(--theme-secondary, #EBCA43);
    box-shadow: 0 0 0 3px rgba(235, 202, 67, .15);
    color: #ffffff;
    outline: none;
}

/* Submit button — yellow accent (--theme-secondary) */
.mc-signup-wrap--dark .mc-signup__btn.btn {
    background-color: var(--theme-secondary, #EBCA43) !important;
    border-color: var(--theme-secondary, #EBCA43) !important;
    color: var(--theme-primary-dark, #0b2d45) !important;
    font-weight: 700;
    font-size: var(--paragraph-s, 14px);
    min-width: 120px;
    border-radius: 6px;
    transition: background-color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.mc-signup-wrap--dark .mc-signup__btn.btn:hover,
.mc-signup-wrap--dark .mc-signup__btn.btn:focus {
    background-color: var(--theme-primary-light, #0f5e92) !important;
    border-color: var(--theme-primary-light, #0f5e92) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 94, 146, .35) !important;
}

.mc-signup-wrap--dark .mc-signup__btn.btn:active {
    transform: translateY(0);
}

.mc-signup-wrap--dark .mc-signup__btn.btn:disabled {
    opacity: .7;
    transform: none;
    cursor: not-allowed;
}

.mc-signup-wrap--dark .mc-signup__actions {
    margin-top: .875rem;
}

/* Error state */
.mc-signup-wrap--dark .mc-signup__error {
    margin-top: .5rem;
    font-size: var(--paragraph-xs, 13px);
    color: var(--alert-error, #EB4029);
    padding: .5rem .75rem;
    background: rgba(235, 64, 41, .12);
    border: 1px solid rgba(235, 64, 41, .3);
    border-radius: 6px;
}

/* Success state */
.mc-signup-wrap--dark .mc-signup__success {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1rem;
    background: rgba(64, 191, 99, .12);
    border: 1px solid rgba(64, 191, 99, .3);
    border-radius: 8px;
    color: var(--alert-success, #40BF63);
    font-size: var(--paragraph-s, 14px);
    font-weight: 500;
}

.mc-signup-wrap--dark .mc-signup__success i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ── LIGHT theme — for light/white section backgrounds ─────────────────────── */
.mc-signup-wrap--light {
    background: var(--neutral-white-1, #f3f8fb);
    border: 1px solid var(--neutral-white-3, #d1e0ea);
    border-radius: 12px;
    padding: 1.75rem;
    max-width: 560px;
}

.mc-signup-wrap--light .mc-signup__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--theme-primary-dark, #0b2d45);
    margin-bottom: .375rem;
    line-height: 1.35;
}

.mc-signup-wrap--light .mc-signup__desc {
    font-size: var(--paragraph-s, 14px);
    color: var(--neutral-dark-1, #5f7485);
    margin-bottom: 1.25rem;
}

.mc-signup-wrap--light .mc-signup__label {
    display: block;
    font-size: var(--paragraph-xs, 13px);
    font-weight: 600;
    color: var(--neutral-dark-2, #425a6b);
    margin-bottom: .3125rem;
}

.mc-signup-wrap--light .mc-signup__field {
    margin-bottom: .875rem;
}

.mc-signup-wrap--light .mc-signup__input.form-control {
    border-color: var(--neutral-white-3, #d1e0ea);
    border-radius: 6px;
    font-size: var(--paragraph-s, 14px);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mc-signup-wrap--light .mc-signup__input.form-control:focus {
    border-color: var(--theme-primary-light, #0f5e92);
    box-shadow: 0 0 0 3px rgba(15, 94, 146, .12);
}

.mc-signup-wrap--light .mc-signup__btn.btn {
    background-color: var(--theme-primary-light, #0f5e92);
    border-color: var(--theme-primary-light, #0f5e92);
    color: #ffffff !important;
    font-weight: 700;
    font-size: var(--paragraph-s, 14px);
    min-width: 120px;
    border-radius: 6px;
    transition: background-color .2s ease, transform .15s ease;
}

.mc-signup-wrap--light .mc-signup__btn.btn:hover {
    background-color: var(--theme-primary-dark, #0b2d45) !important;
    border-color: var(--theme-primary-dark, #0b2d45) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.mc-signup-wrap--light .mc-signup__actions {
    margin-top: .875rem;
}

.mc-signup-wrap--light .mc-signup__error {
    margin-top: .5rem;
    font-size: var(--paragraph-xs, 13px);
    color: var(--alert-error, #EB4029);
    padding: .5rem .75rem;
    background: rgba(235, 64, 41, .07);
    border: 1px solid rgba(235, 64, 41, .25);
    border-radius: 6px;
}

.mc-signup-wrap--light .mc-signup__success {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1rem;
    background: rgba(64, 191, 99, .08);
    border: 1px solid rgba(64, 191, 99, .25);
    border-radius: 8px;
    color: var(--alert-success, #40BF63);
    font-size: var(--paragraph-s, 14px);
    font-weight: 500;
}

/* ── CARD theme — elevated card on any background ───────────────────────────── */
.mc-signup-wrap--card {
    background: #ffffff;
    border: 1px solid var(--neutral-white-3, #d1e0ea);
    border-radius: 14px;
    padding: 2rem;
    max-width: 560px;
    box-shadow: 0 8px 32px rgba(11, 45, 69, .1), 0 2px 8px rgba(11, 45, 69, .06);
}

.mc-signup-wrap--card .mc-signup__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--theme-primary-dark, #0b2d45);
    margin-bottom: .375rem;
    line-height: 1.35;
}

.mc-signup-wrap--card .mc-signup__desc {
    font-size: var(--paragraph-s, 14px);
    color: var(--neutral-dark-1, #5f7485);
    margin-bottom: 1.25rem;
}

.mc-signup-wrap--card .mc-signup__label {
    display: block;
    font-size: var(--paragraph-xs, 13px);
    font-weight: 600;
    color: var(--neutral-dark-2, #425a6b);
    margin-bottom: .3125rem;
}

.mc-signup-wrap--card .mc-signup__field {
    margin-bottom: .875rem;
}

.mc-signup-wrap--card .mc-signup__input.form-control {
    border-color: var(--neutral-white-3, #d1e0ea);
    border-radius: 6px;
    font-size: var(--paragraph-s, 14px);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mc-signup-wrap--card .mc-signup__input.form-control:focus {
    border-color: var(--theme-primary-light, #0f5e92);
    box-shadow: 0 0 0 3px rgba(15, 94, 146, .12);
}

.mc-signup-wrap--card .mc-signup__btn.btn {
    background-color: var(--theme-secondary, #EBCA43);
    border-color: var(--theme-secondary, #EBCA43);
    color: var(--theme-primary-dark, #0b2d45) !important;
    font-weight: 700;
    font-size: var(--paragraph-s, 14px);
    min-width: 120px;
    border-radius: 6px;
    transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}

.mc-signup-wrap--card .mc-signup__btn.btn:hover {
    background-color: var(--theme-primary-light, #0f5e92) !important;
    border-color: var(--theme-primary-light, #0f5e92) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.mc-signup-wrap--card .mc-signup__actions {
    margin-top: .875rem;
}

.mc-signup-wrap--card .mc-signup__error {
    margin-top: .5rem;
    font-size: var(--paragraph-xs, 13px);
    color: var(--alert-error, #EB4029);
    padding: .5rem .75rem;
    background: rgba(235, 64, 41, .07);
    border: 1px solid rgba(235, 64, 41, .25);
    border-radius: 6px;
}

.mc-signup-wrap--card .mc-signup__success {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1rem;
    background: rgba(64, 191, 99, .08);
    border: 1px solid rgba(64, 191, 99, .25);
    border-radius: 8px;
    color: var(--alert-success, #40BF63);
    font-size: var(--paragraph-s, 14px);
    font-weight: 500;
}

/* ── Inline layout — fields + button in one row ─────────────────────────────── */
.mc-signup-wrap--inline .mc-signup-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.mc-signup-wrap--inline .mc-signup__field--grow {
    flex: 1 1 200px;
    margin-bottom: 0;
}

.mc-signup-wrap--inline .mc-signup__field {
    flex: 1 1 160px;
    margin-bottom: 0;
}

.mc-signup-wrap--inline .mc-signup__actions {
    flex-shrink: 0;
    margin-top: 0;
}

/* ── Spinner color fix in dark context ──────────────────────────────────────── */
.mc-signup-wrap--dark .mc-signup__btn-spinner {
    border-color: rgba(11, 45, 69, .25);
    border-top-color: var(--theme-primary-dark, #0b2d45);
}
