/**
 * Contatti: a service page like Assistenza (.gw-service-head in product.css). The message first,
 * beside it the other ways in: the questions, a direct email, GoWeddy Pro.
 */

.gw-ct-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2.5rem;
    align-items: start;
    margin-top: clamp(2.25rem, 4vw, 3rem);
}

.gw-ct-form { padding: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid hsl(var(--gw-border)); border-radius: 1.5rem; background: #fff; }
.gw-ct-form__title { margin: 0 0 1.4rem; font-size: 1.35rem; font-weight: 500; color: hsl(var(--gw-fg)); }
.gw-ct-field { margin-bottom: 1.1rem; }
.gw-ct-field .form-label { margin-bottom: .4rem; font-size: .875rem; font-weight: 500; color: hsl(var(--gw-fg)); }
.gw-ct-form .form-control,
.gw-ct-form .form-select { padding: .7rem .9rem; border-radius: .75rem; }
.gw-ct-form textarea.form-control { min-height: 8rem; resize: vertical; }
.gw-ct-form__send { width: 100%; margin-top: .4rem; }
.gw-ct-consent { margin: .2rem 0 1.2rem; font-size: .85rem; line-height: 1.5; color: hsl(var(--gw-muted-fg)); }
.gw-ct-consent .form-check-input { margin-top: .2em; cursor: pointer; }
.gw-ct-consent .form-check-label { cursor: pointer; }
.gw-ct-consent a { color: hsl(var(--gw-wine)); text-decoration: underline; text-underline-offset: .2em; }
/* Once the form has been checked, a ticked box stays wine and its words keep their colour: green is for nothing here. */
.gw-ct-form.was-validated .gw-ct-consent .form-check-input:valid { border-color: var(--bs-border-color); }
.gw-ct-form.was-validated .gw-ct-consent .form-check-input:valid:checked { background-color: hsl(var(--gw-wine)); border-color: hsl(var(--gw-wine)); }
.gw-ct-form.was-validated .gw-ct-consent .form-check-input:valid ~ .form-check-label { color: inherit; }
.gw-ct-alert { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: .75rem; background: hsl(var(--gw-wine) / .07); font-size: .875rem; line-height: 1.5; color: hsl(var(--gw-wine)); }
.gw-ct-alert a { color: inherit; font-weight: 600; }

.gw-ct-done { display: flex; flex-direction: column; align-items: flex-start; }
.gw-ct-done__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.1rem; border-radius: 50%; background: hsl(var(--gw-champagne)); font-size: 1.5rem; color: hsl(var(--gw-wine)); }
.gw-ct-done .gw-ct-form__title { margin-bottom: .5rem; }
.gw-ct-done p { margin: 0 0 1.5rem; color: hsl(var(--gw-muted-fg)); }

/* The newsletter's own page (sent, confirmed, or what went wrong) borrows the same head. */
.gw-nl-home { display: inline-block; margin-top: 1.75rem; }

.gw-ct-ways { display: flex; flex-direction: column; gap: .75rem; }
.gw-ct-way {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.1rem;
    border: 1px solid hsl(var(--gw-border));
    border-radius: 1.1rem;
    background: #fff;
    font-size: .88rem;
    line-height: 1.45;
    text-decoration: none;
    color: hsl(var(--gw-muted-fg));
    transition: border-color .25s ease;
}
.gw-ct-way:hover { border-color: hsl(var(--gw-wine) / .35); }
.gw-ct-way:focus-visible { outline: 2px solid hsl(var(--gw-wine)); outline-offset: 2px; }
.gw-ct-way b { display: block; margin-bottom: .1rem; font-size: .98rem; font-weight: 600; color: hsl(var(--gw-fg)); }
.gw-ct-way__icon { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: hsl(var(--gw-champagne)); font-size: 1.1rem; color: hsl(var(--gw-wine)); }
.gw-ct-way.gw-tint-smeraldo .gw-ct-way__icon { background: hsl(var(--field-base)); color: hsl(var(--field-ink)); }
.gw-ct-way__go { margin-left: auto; color: hsl(var(--gw-wine) / .5); transition: transform .3s ease, color .3s ease; }
.gw-ct-way:hover .gw-ct-way__go { color: hsl(var(--gw-wine)); transform: translateX(3px); }

@media (max-width: 991.98px) {
    .gw-ct-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-ct-way,
    .gw-ct-way__go { transition: none; }
}
