/* Demo Band block. */

.demoband-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 80px 0;
}

.demoband-medium .demoband-inner {
    padding: 72px 0;
}

.demoband-compact .demoband-inner {
    padding: 60px 0;
}

.demoband-title {
    /* 600px in the design, set in Avenir; Figtree runs wider, so the short headline needs more room to stay on one line. */
    max-width: 700px;
    margin: 0;
    color: #fff;
}

.demoband-sub {
    max-width: 560px;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.demoband-action {
    flex: none;
}

.demoband-rule {
    height: 16px;
}

.demoband-medium .demoband-rule,
.demoband-compact .demoband-rule {
    height: 12px;
}

/* Subscribe form: one email field and the button on a single row. */
.demoband-form {
    width: 420px;
    max-width: 100%;
}

.demoband-form .gform_wrapper {
    margin: 0;
}

.demoband-form .gform_wrapper form {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.demoband-form .gform_wrapper .gform_body {
    flex: 1 1 auto;
    min-width: 0;
}

.demoband-form .gform_wrapper .gfield_label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* One-field inline form: the label is visually hidden, so the "* indicates
 * required fields" legend would explain an asterisk nobody can see. */
.demoband-form .gform_wrapper .gform_required_legend {
    display: none;
}

.demoband-form .gform_wrapper input[type="email"],
.demoband-form .gform_wrapper input[type="text"] {
    height: 46px;
    border-color: rgba(255, 255, 255, 0.22);
}

.demoband-form .gform_wrapper .gform_footer {
    margin: 0;
    padding: 0;
}

.demoband-form .gform_wrapper .gform_button {
    height: 46px;
}

.demoband-form .gform_wrapper .gfield_validation_message,
.demoband-form .gform_wrapper .validation_message {
    color: var(--vb-magenta-soft);
    background: none;
    border: 0;
    padding: 6px 0 0;
}

.demoband-form .gform_confirmation_message {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 1199px) {
    .demoband-inner {
        padding: 64px 0;
    }
}

@media (max-width: 767px) {
    .demoband-inner,
    .demoband-medium .demoband-inner,
    .demoband-compact .demoband-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 52px 0;
    }

    .demoband-sub {
        font-size: 16px;
    }

    .demoband-action,
    .demoband-form {
        width: 100%;
    }

    .demoband-form .gform_wrapper form {
        flex-direction: column;
        align-items: stretch;
    }

    .demoband-form .gform_wrapper .gform_button {
        width: 100%;
    }

    .demoband-rule,
    .demoband-medium .demoband-rule,
    .demoband-compact .demoband-rule {
        height: 10px;
    }
}
