/* Stretch image cards to the tallest choice in each row. */
form.ht-marketing-enquiry .gfield--type-image_choice .gchoice {
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

form.ht-marketing-enquiry .gfield--type-image_choice .gfield-image-choice-wrapper-outer {
    flex: 1;
}

form.ht-marketing-enquiry .gfield--type-image_choice .gchoice:has(.gfield-choice-input:enabled) {
    cursor: pointer;
}

form.ht-marketing-enquiry .gfield--type-image_choice .gchoice:has(.gfield-choice-input:disabled) {
    cursor: not-allowed;
}

/* Keep the native inputs focusable and remove their space beside the label. */
form.ht-marketing-enquiry .gfield--type-image_choice .gfield-image-choice-wrapper-inner {
    display: block;
}

form.ht-marketing-enquiry .gfield--type-image_choice .gchoice label {
    margin-inline-start: 0;
    cursor: inherit;
}

form.ht-marketing-enquiry .gfield--type-image_choice .gfield-choice-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

/* Keep Gravity Forms' focus colour in a single, visible border. */
form.ht-marketing-enquiry .gfield--image-choice-appearance-card .gchoice:focus-within {
    border-width: 2px;
    outline: none;
}

.gform_confirmation_wrapper.ht-marketing-enquiry,
.gform_confirmation_wrapper.ht-marketing-enquiry .gform_confirmation_message {
    margin-bottom: 0;
}

.gform_confirmation_wrapper.ht-marketing-enquiry .gform_confirmation_message {
    background-color: var(--ht-pink, #e31b85);
    color: #fff;
    text-align: center;
}

.gform_confirmation_wrapper.ht-marketing-enquiry .gform_confirmation_message :is(h2, h3, p) {
    color: #fff;
    margin-bottom: 0;
}
