/* Shared skeleton, same for every ad_form regardless of skin */
.af-form {
    margin-bottom: 2rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.af-form__content {
    padding: 1rem;
    position: relative;
    z-index: 10;
}

.af-form__title,
.af-form__subtitle {
    text-align: center;
}

.af-form__subtitle {
    font-size: 18px;
    margin-top: 0;
}

.af-form__description {
    margin-bottom: 1rem;
}

.af-form__notice {
    margin-top: 1rem;
    font-weight: bold;
}

.af-form__field {
    margin-bottom: 1rem;
}

.af-form__field label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.af-form__field--checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.af-form input[type="text"],
.af-form input[type="number"],
.af-form select,
.af-form textarea {
    border: 1px solid #eeeeee;
    box-sizing: border-box;
    outline: none;
    padding: 10px;
    width: 100%;
}

.af-form__external-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.af-form__external-links a {
    font-weight: bold;
    text-decoration: underline;
}

.af-form__staff-download {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.af-form__warning {
    border: 2px solid darkred;
    padding: 1rem;
    background: indianred;
    color: white;
    font-weight: bold;
    margin: 1rem 0;
}

.af-form__price {
    margin: 1rem 0;
}

.af-form__paypal-button {
    background: #00457c;
    max-width: 160px;
    padding: 1rem 2rem;
    border-radius: 15px;
    margin-top: 1rem;
    border: 0;
    cursor: pointer;
}

.af-form__paypal-button:hover {
    -webkit-filter: brightness(70%);
    filter: brightness(70%);
}

.blockUI h1 {
    font-size: 2rem;
    margin: 0;
    padding: 1rem;
}

.af-form__custom-html {
    margin: 1rem 0;
}

.af-form__lottery-stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.af-form__lottery-stepper input[type="number"] {
    width: 4rem;
    text-align: center;
}

.af-form__lottery-stepper button {
    border: 1px solid #eeeeee;
    background: #fff;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
}

.af-form__lottery-stepper button:hover {
    background: #f5f5f5;
}

/* Skin: "event" (form_type = event) — banner hero at the top, bordered box */
.af-form--event {
    border: 2px solid var(--ad-red, #f25626);
}

.af-form--event .af-form__title {
    margin-bottom: 0;
}

.af-form--event .af-form__hero {
    height: 200px;
    width: 100%;
    background-position: center center;
    background-size: cover;
    margin-bottom: 1rem;
}

/* Skin: "one_shot" — full-bleed low-opacity hero behind the content, big uppercase title */
.af-form--one-shot {
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
}

.af-form--one-shot .af-form__title {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 0;
}

.af-form--one-shot .af-form__hero-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.af-form--one-shot .af-form__hero-bg img {
    opacity: 0.1;
}

.af-form--one-shot .af-form__content {
    z-index: 10;
}

@media screen and (max-width: 600px) {
    .af-form {
        margin-top: 2rem;
    }
}
