/* ---------------------------------------------------------------------------
   Scope: .supporter-form-wrap
--------------------------------------------------------------------------- */

.supporter-form-wrap *,
.supporter-form-wrap *::before,
.supporter-form-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.supporter-form-wrap .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------------------
   Grid layout
--------------------------------------------------------------------------- */

.supporter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.sf-field {
    min-width: 0;
}

.sf-field--full {
    grid-column: span 2;
}

/* ---------------------------------------------------------------------------
   Inputs
--------------------------------------------------------------------------- */

.supporter-form input[type="text"],
.supporter-form input[type="email"] {
    all: unset;
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: inherit;
    background-color: #fff;
    border: 1px solid #e51a18;
    border-radius: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.supporter-form input[type="text"]::placeholder,
.supporter-form input[type="email"]::placeholder {
    color: #e51a18;
}

.supporter-form input[type="text"]:focus,
.supporter-form input[type="email"]:focus {
    border-color: #e51a18;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
    outline: none;
}

/* ---------------------------------------------------------------------------
   Button
--------------------------------------------------------------------------- */

.supporter-form button[type="submit"] {
    all: unset;
    box-sizing: border-box;
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    line-height: 1;
    color: #e51a18;
    border: 1px solid #e51a18;
    background-color: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.supporter-form button[type="submit"]:hover {
    background-color: #e51a18;
    color: white;
}

.supporter-form button[type="submit"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
   Checkbox
--------------------------------------------------------------------------- */

.supporter-form .sf-checkbox {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.supporter-form .sf-checkbox input[type="checkbox"] {
    all: unset;
    box-sizing: border-box;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    border: 1px solid #e51a18;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: background-color 0.15s ease;
}

.supporter-form .sf-checkbox input[type="checkbox"]:checked {
    background-color: #e51a18;
}


.supporter-form .sf-checkbox input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(229, 26, 24, 0.2);
}

/* ---------------------------------------------------------------------------
   Messages
--------------------------------------------------------------------------- */

.supporter-form-wrap .sf-error {
    font-size: 0.875rem;
    color: #e51a18;
}

.supporter-form-wrap .sf-success {
    font-size: 1rem;
    color: inherit;
}

/* ---------------------------------------------------------------------------
   Mobile
--------------------------------------------------------------------------- */

@media (max-width: 600px) {
    .supporter-form {
        grid-template-columns: 1fr;
    }

    .sf-field--full {
        grid-column: span 1;
    }
}
