/*
 * Frozberries contact form (.fz-cf).
 *
 * Two settings. On its own (shortcode on any page) it is a plain light form.
 * Inside the red "Send Us a Message" card on the Contact Us page, the page's own
 * CSS already styles labels, inputs and the Send button; the second half of this
 * file only makes the new parts (complaint box, photos, alerts) read on red.
 */

.fz-cf {
    --fz-cf-ink: #1a1a1a;
    --fz-cf-muted: #555555;
    --fz-cf-line: #e5e7eb;
    --fz-cf-accent: #d91b31;
    --fz-cf-panel: #f8fafc;
    --fz-cf-over: #b42318;
    position: relative;
    margin: 0;
}

.fz-cf [hidden] {
    display: none !important;
}

.fz-cf__hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fz-cf__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fz-cf__field {
    min-width: 0;
    margin-bottom: 14px;
}

.fz-cf__field > label:not(.fz-cf__filebtn) {
    display: block;
    margin-bottom: 8px;
    color: var(--fz-cf-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.fz-cf input[type="text"],
.fz-cf input[type="email"],
.fz-cf input[type="tel"],
.fz-cf select,
.fz-cf textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--fz-cf-line);
    border-radius: 10px;
    background-color: #fff;
    color: var(--fz-cf-ink);
    font-size: 16px;
    line-height: 1.4;
}

.fz-cf input[type="text"],
.fz-cf input[type="email"],
.fz-cf input[type="tel"],
.fz-cf select {
    height: auto;
    min-height: 50px;
}

.fz-cf textarea {
    height: auto;
    min-height: 140px;
    resize: vertical;
}

.fz-cf input:focus,
.fz-cf select:focus,
.fz-cf textarea:focus {
    border-color: var(--fz-cf-accent);
    outline: none;
}

.fz-cf .fz-cf__hint {
    margin: -2px 0 8px;
    color: var(--fz-cf-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.fz-cf .fz-cf__count {
    margin: 6px 0 0;
    color: var(--fz-cf-muted);
    font-size: 13px;
    font-weight: 400;
    text-align: right;
}

.fz-cf .fz-cf__count.is-over {
    color: var(--fz-cf-over);
    font-weight: 700;
}

.fz-cf__complaint {
    padding: 16px;
    border: 1px dashed var(--fz-cf-accent);
    border-radius: 12px;
    background: var(--fz-cf-panel);
}

.fz-cf__file {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.fz-cf .fz-cf__filebtn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 20px;
    border: 2px solid var(--fz-cf-accent);
    border-radius: 50px;
    background: #fff;
    color: var(--fz-cf-accent);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.fz-cf .fz-cf__filebtn:hover {
    background: var(--fz-cf-accent);
    color: #fff;
}

.fz-cf__file:focus-visible + .fz-cf__filebtn {
    outline: 3px solid #1a1a1a;
    outline-offset: 2px;
}

.fz-cf .fz-cf__photos {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.fz-cf .fz-cf__photos:empty {
    margin: 0;
}

.fz-cf .fz-cf__photo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--fz-cf-line);
    border-radius: 10px;
    background: #fff;
}

.fz-cf__photo img {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

.fz-cf .fz-cf__photo span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--fz-cf-ink);
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.fz-cf .fz-cf__photo button {
    flex: none;
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--fz-cf-line);
    border-radius: 50px;
    background: transparent;
    box-shadow: none;
    color: var(--fz-cf-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.fz-cf .fz-cf__call {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    color: var(--fz-cf-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.fz-cf .fz-cf__call a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.fz-cf__alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-left: 4px solid;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.fz-cf__alert--ok {
    border-color: #14713d;
    color: #14713d;
}

.fz-cf__alert--error {
    border-color: #b42318;
    color: #b42318;
}

.fz-cf__check {
    margin: 4px 0 0;
}

.fz-cf__check br {
    display: none;
}

.fz-cf__submit {
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    padding: 16px 32px;
    border: 0;
    border-radius: 50px;
    background: var(--fz-cf-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.fz-cf__submit:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none !important;
}

.fz-cf .fz-cf__note {
    margin: 14px 0 0;
    color: var(--fz-cf-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .fz-cf__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ---------------------------------------------------------------------------
 * Inside the red card on the Contact Us page. The page CSS forces every label,
 * p and span to white, so anything on a white panel here has to say otherwise.
 * ------------------------------------------------------------------------- */

.contact-page .contact-form .fz-cf {
    --fz-cf-muted: rgba(255, 255, 255, 0.88);
    --fz-cf-line: rgba(255, 255, 255, 0.45);
    --fz-cf-panel: rgba(255, 255, 255, 0.1);
    --fz-cf-over: #ffe08a;
}

.contact-page .contact-form .fz-cf textarea {
    height: auto;
    min-height: 140px;
    resize: vertical;
}

.contact-page .contact-form .fz-cf .fz-cf__hint,
.contact-page .contact-form .fz-cf .fz-cf__count,
.contact-page .contact-form .fz-cf .fz-cf__note {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 13px;
    font-weight: 400;
}

.contact-page .contact-form .fz-cf .fz-cf__count.is-over {
    color: #ffe08a !important;
    font-weight: 700;
}

.contact-page .contact-form .fz-cf .fz-cf__complaint {
    border-color: rgba(255, 255, 255, 0.6);
}

.contact-page .contact-form .fz-cf label.fz-cf__filebtn {
    display: inline-flex;
    margin: 0;
    border-color: #fff;
    color: #d91b31 !important;
    font-size: 15px;
}

.contact-page .contact-form .fz-cf label.fz-cf__filebtn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff !important;
}

.contact-page .contact-form .fz-cf .fz-cf__file:focus-visible + .fz-cf__filebtn {
    outline-color: #fff;
}

.contact-page .contact-form .fz-cf .fz-cf__photo {
    border-color: transparent;
}

.contact-page .contact-form .fz-cf .fz-cf__photo span {
    color: #1a1a1a !important;
    font-weight: 500;
}

.contact-page .contact-form .fz-cf .fz-cf__photo button {
    border-color: #d1d5db;
    color: #1a1a1a;
}

.contact-page .contact-form .fz-cf .fz-cf__call {
    background: rgba(255, 255, 255, 0.16);
    color: #fff !important;
    font-weight: 500;
}

.contact-page .contact-form .fz-cf .fz-cf__call a {
    color: #fff !important;
}
