.msgc {
    --msgc-green: #718d80;
    --msgc-green-dark: #4d6f61;
    --msgc-ink: #29352f;
    --msgc-muted: #66736d;
    --msgc-line: #dbe4df;
    --msgc-error: #a64444;
    box-sizing: border-box;
    color: var(--msgc-ink);
    font-family: inherit;
    margin: 2rem auto;
    max-width: 760px;
}

.msgc *,
.msgc *::before,
.msgc *::after {
    box-sizing: border-box;
}

.msgc-card {
    background: #fff;
    border: 1px solid var(--msgc-line);
    border-radius: 1.2rem;
    box-shadow: 0 18px 55px rgba(42, 67, 57, 0.1);
    overflow: hidden;
}

.msgc-card-content {
    padding: clamp(1.35rem, 4vw, 2.75rem);
}

.msgc-guide-image img {
    display: block;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    width: 100%;
}

.msgc-eyebrow {
    color: var(--msgc-green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 0 0.55rem;
    text-transform: uppercase;
}

.msgc h1,
.msgc h2 {
    color: var(--msgc-ink);
    line-height: 1.18;
    margin: 0 0 1rem;
}

.msgc h1 {
    font-size: clamp(1.8rem, 5vw, 2.75rem);
}

.msgc h2 {
    font-size: clamp(1.45rem, 4vw, 2rem);
}

.msgc h3,
.msgc p {
    line-height: 1.6;
}

.msgc-guide-content {
    color: var(--msgc-ink);
    margin: 0 0 1.5rem;
}

.msgc-guide-content > :first-child {
    margin-top: 0;
}

.msgc-guide-content > :last-child {
    margin-bottom: 0;
}

.msgc-guide-content img {
    height: auto;
    max-width: 100%;
}

.msgc-guide-content a {
    color: var(--msgc-green-dark);
    text-decoration: underline;
}

.msgc-intro {
    color: var(--msgc-muted);
    margin-bottom: 1.5rem;
}

.msgc-intro p:last-child {
    margin-bottom: 0;
}

.msgc-form {
    display: grid;
    gap: 1.15rem;
}

.msgc-field {
    border: 0;
    margin: 0;
    padding: 0;
}

.msgc-field > label,
.msgc-field legend {
    display: block;
    font-size: 0.98rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
}

.msgc input[type="email"],
.msgc input[type="date"],
.msgc input[type="text"],
.msgc select {
    background: #fff;
    border: 1px solid #bacbc1;
    border-radius: 0.55rem;
    color: var(--msgc-ink);
    font: inherit;
    min-height: 3rem;
    padding: 0.7rem 0.85rem;
    width: 100%;
}

.msgc input:focus,
.msgc select:focus {
    border-color: var(--msgc-green);
    box-shadow: 0 0 0 3px rgba(113, 141, 128, 0.18);
    outline: 0;
}

.msgc-choice {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: 0.65rem;
    line-height: 1.45;
    margin: 0.7rem 0;
}

.msgc-choice input,
.msgc-consent input {
    flex: 0 0 auto;
    height: 1.1rem;
    margin: 0.15rem 0 0;
    width: 1.1rem;
}

.msgc-consent {
    align-items: flex-start;
    color: var(--msgc-muted);
    display: flex;
    font-size: 0.88rem;
    gap: 0.65rem;
    line-height: 1.5;
}

.msgc-consent a {
    color: var(--msgc-green-dark);
    text-decoration: underline;
}

.msgc-button {
    background: var(--msgc-green);
    border: 0;
    border-radius: 0.55rem;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 3.2rem;
    padding: 0.9rem 1.4rem;
    text-align: center;
    text-decoration: none !important;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
    width: 100%;
}

.msgc-button:hover,
.msgc-button:focus {
    background: var(--msgc-green-dark);
    color: #fff;
    transform: translateY(-1px);
}

.msgc-trigger-button {
    background: var(--msgc-trigger-bg, var(--msgc-green));
    color: var(--msgc-trigger-color, #fff) !important;
}

.msgc-trigger-button:hover,
.msgc-trigger-button:focus {
    background: var(--msgc-trigger-bg, var(--msgc-green));
    color: var(--msgc-trigger-color, #fff) !important;
    filter: brightness(0.92);
}

.msgc-button:disabled,
.msgc-button.is-loading {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.msgc-required-note {
    color: var(--msgc-muted);
    font-size: 0.78rem;
    margin: -0.55rem 0 0;
}

.msgc-alert {
    border-radius: 0.55rem;
    font-size: 0.93rem;
    line-height: 1.5;
    padding: 0.85rem 1rem;
}

.msgc-alert-error {
    background: #fff4f3;
    border: 1px solid #efc9c6;
    color: var(--msgc-error);
}

.msgc-alert-success {
    background: #eef7f0;
    border: 1px solid #c7dfca;
    color: #356343;
}

.msgc-honeypot {
    height: 1px;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

body.msgc-modal-open {
    overflow: hidden;
}

.msgc-modal[hidden] {
    display: none;
}

.msgc-modal:not([hidden]) {
    align-items: center;
    display: flex;
    justify-content: center;
}

.msgc-modal {
    bottom: 0;
    left: 0;
    overflow-y: auto;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999;
}

.msgc-modal-backdrop {
    background: rgba(23, 36, 30, 0.64);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
}

.msgc-modal-dialog {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 24px 80px rgba(16, 31, 23, 0.25);
    max-height: calc(100vh - 2rem);
    max-width: 760px;
    overflow-y: auto;
    position: relative;
    width: 100%;
    z-index: 1;
}

.msgc-modal-dialog > .msgc {
    margin: 0;
    max-width: none;
}

.msgc-modal-close {
    align-items: center;
    background: #fff;
    border: 1px solid var(--msgc-line);
    border-radius: 50%;
    color: var(--msgc-ink);
    cursor: pointer;
    display: flex;
    font-size: 1.5rem;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 2.25rem;
    z-index: 2;
}

.msgc-modal-close:hover,
.msgc-modal-close:focus {
    background: var(--msgc-line);
    color: var(--msgc-ink);
}

.msgc-thank-you {
    max-width: 820px;
}

.msgc-thank-you-card {
    padding: clamp(1.5rem, 5vw, 3.5rem);
    text-align: center;
}

.msgc-success-mark {
    align-items: center;
    background: #e6f1e9;
    border-radius: 50%;
    color: var(--msgc-green-dark);
    display: flex;
    font-size: 1.8rem;
    height: 3.7rem;
    justify-content: center;
    margin: 0 auto 1.25rem;
    width: 3.7rem;
}

.msgc-lead {
    color: var(--msgc-muted);
    font-size: 1.08rem;
    margin: 0 auto 2rem;
    max-width: 620px;
}

.msgc-bonus-intro {
    border-top: 1px solid var(--msgc-line);
    margin: 2rem auto 1.5rem;
    padding-top: 2rem;
    text-align: left;
}

.msgc-bonus-intro h2 {
    font-size: 1.35rem;
}

.msgc-bonus-intro p {
    color: var(--msgc-muted);
    margin-bottom: 0;
}

.msgc-bonus-form {
    margin: 0 auto;
    max-width: 620px;
    text-align: left;
}

.msgc-other-input {
    margin-top: 0.35rem;
}

.msgc-form-trigger {
    max-width: 420px;
}

.msgc-admin-error {
    background: #fff4f3;
    border: 1px solid #efc9c6;
    color: var(--msgc-error);
    padding: 1rem;
}

.gr-gd button,
.gr-gd button:hover {
    background-color: #f8c5b7;
    color: #fff;
}

@media (min-width: 640px) {
    .msgc-button {
        width: auto;
    }

    .msgc-guide-form .msgc-button {
        min-width: 220px;
    }
}
