/*!
 * Duroplast Furniture - form popup + validation styles
 * Self-contained so edits to main.css cannot break the enquiry forms.
 */

/* ------------------------------------------------- honeypot (invisible)
   Must be hidden from people but still submitted by bots, so it is moved
   off-screen rather than display:none - some bots skip hidden fields. */
.df-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ------------------------------------------------------------- notices */

.df-notice {
    display: none;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.df-notice-success {
    background: #e9f6ef;
    border-color: #1d6f4e;
    color: #14543b;
}

.df-notice-error {
    background: #fdeced;
    border-color: #b4232b;
    color: #8e1b22;
}

.df-field-error {
    display: block;
    margin: -12px 0 14px;
    font-size: 12.5px;
    color: #b4232b;
}

.df-invalid {
    border-color: #b4232b !important;
    box-shadow: inset 0 0 0 1px #b4232b;
}

/* --------------------------------------------------------------- popup */

#mask {
    display: none;
    position: fixed;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    background: rgba(17, 19, 22, .62);
    z-index: 10000;
}

#dialog {
    display: none;
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 440px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 60px -12px rgba(17, 19, 22, .45);
    padding: 28px 26px 26px;
    z-index: 10001;
}

#dialog .df-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #8d96a3;
    cursor: pointer;
    border-radius: 6px;
}

#dialog .df-close:hover { background: #f1f2f4; color: #15181d; }

/* The markup carries inline top/left pixel values from the old template;
   these rules win so the panel is always centred on any screen size. */
#boxes { position: static; }

/* -------------------------------------------- feedback launcher button */

.df-launcher {
    position: fixed;
    right: 0;
    top: 268px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 0;
    border-radius: 6px 0 0 6px;
    background: #b26a1f;
    color: #fff;
    font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: -2px 2px 10px rgba(17, 19, 22, .2);
    transition: background .15s ease;
}

.df-launcher:hover { background: #8a5115; }

@media (max-width: 640px) {
    .df-launcher {
        top: auto;
        bottom: 0;
        right: 12px;
        border-radius: 6px 6px 0 0;
    }

    #dialog { padding: 24px 18px 20px; }
}
