/*
 * Photoscotland.net | Ninja Kick Contact Form visual refinement
 * Add this file AFTER the Ninja Kick plugin stylesheet.
 * Deliberately leaves the plugin's positioning, transforms, visibility,
 * transitions and JavaScript-controlled slide behaviour untouched.
 *
 * The Loch Ard image is loaded from the same folder as this stylesheet.
 */
:root {
    --photoscotland-contact-accent: rgb(251, 132, 1);
    --photoscotland-contact-image: url('loch-ard-contact.webp');
}

/* The panel shell: dark, elegant and softly translucent. */
#ncf_sidebar {
    background: rgba(10, 13, 16, 0.97) !important;
    color: #f4f4f2;
    -webkit-font-smoothing: antialiased;
}

#ncf_sidebar .ncf_sidebar_cont {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(8, 11, 14, 0.98) 0%, rgba(12, 16, 19, 0.96) 58%, rgba(8, 11, 14, 0.92) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 5px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

/* Loch Ard sits low in the panel and fades upwards into the dark finish. */
#ncf_sidebar .ncf_sidebar_cont::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    pointer-events: none;
    background-image:
        linear-gradient(to bottom,
            rgba(8, 11, 14, 1) 0%,
            rgba(8, 11, 14, 0.82) 23%,
            rgba(8, 11, 14, 0.35) 58%,
            rgba(8, 11, 14, 0.20) 100%),
        var(--photoscotland-contact-image);
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.78;
}

#ncf_sidebar .ncf_sidebar_cont > * {
    position: relative;
    z-index: 1;
}

/* Header area: remove the old theme's bright blocks and keep it restrained. */
#ncf_sidebar .ncf_sidebar_header,
#ncf_sidebar.ncf_flat .ncf_sidebar_header,
#ncf_sidebar.ncf_minimalistic .ncf_sidebar_header,
#ncf_sidebar.ncf_aerial .ncf_sidebar_header {
    background: transparent !important;
    color: #fff;
    border: 0;
}

#ncf_sidebar .ncf_sidebar_header_userinfo {
    background: transparent !important;
}

#ncf_sidebar .ncf_user_firstname,
#ncf_sidebar .ncf_user_lastname,
#ncf_sidebar .ncf_user_title,
#ncf_sidebar .ncf_user_credentials,
#ncf_sidebar .ncf_user_credentials span {
    color: #fff !important;
}

/* Introductory copy. */
#ncf_sidebar .ncf_sidebar_content {
    margin-top: 22px;
    margin-bottom: 28px;
}

#ncf_sidebar .ncf_user_bio,
#ncf_sidebar.ncf_flat .ncf_user_bio,
#ncf_sidebar.ncf_minimalistic .ncf_user_bio,
#ncf_sidebar.ncf_aerial .ncf_user_bio {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 400;
    padding: 0 0 24px;
    margin: 0;
}

/* Form fields: quiet charcoal surfaces, fine borders and orange focus. */
#ncf_sidebar input[type="text"],
#ncf_sidebar input[type="email"],
#ncf_sidebar input[type="tel"],
#ncf_sidebar input[type="date"],
#ncf_sidebar select,
#ncf_sidebar textarea,
#ncf_sidebar.ncf_flat input[type="text"],
#ncf_sidebar.ncf_flat input[type="email"],
#ncf_sidebar.ncf_flat input[type="tel"],
#ncf_sidebar.ncf_flat input[type="date"],
#ncf_sidebar.ncf_flat textarea,
#ncf_sidebar.ncf_minimalistic input[type="text"],
#ncf_sidebar.ncf_minimalistic input[type="email"],
#ncf_sidebar.ncf_minimalistic input[type="tel"],
#ncf_sidebar.ncf_minimalistic input[type="date"],
#ncf_sidebar.ncf_minimalistic textarea,
#ncf_sidebar.ncf_aerial input[type="text"],
#ncf_sidebar.ncf_aerial input[type="email"],
#ncf_sidebar.ncf_aerial input[type="tel"],
#ncf_sidebar.ncf_aerial input[type="date"],
#ncf_sidebar.ncf_aerial textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    color: #f7f7f5 !important;
    background: rgba(255, 255, 255, 0.075) !important;
    border: 1px solid rgba(255, 255, 255, 0.19) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

#ncf_sidebar input[type="text"],
#ncf_sidebar input[type="email"],
#ncf_sidebar input[type="tel"],
#ncf_sidebar input[type="date"],
#ncf_sidebar select {
    height: 49px;
}

#ncf_sidebar textarea {
    min-height: 125px;
    resize: vertical;
}

#ncf_sidebar input:focus,
#ncf_sidebar textarea:focus,
#ncf_sidebar select:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.105) !important;
    border-color: var(--photoscotland-contact-accent) !important;
    box-shadow: 0 0 0 2px rgba(251, 132, 1, 0.15) !important;
    outline: none !important;
}

#ncf_sidebar .ncf_ph label {
    color: rgba(255, 255, 255, 0.67) !important;
}

#ncf_sidebar .ncf_ph input:focus + label,
#ncf_sidebar .ncf_ph textarea:focus + label {
    color: var(--photoscotland-contact-accent) !important;
}

#ncf_sidebar .ncf_form_input_wrapper {
    margin-bottom: 15px;
}

/* Send button: Photoscotland orange, with a restrained hover lift. */
#ncf_sidebar a.ncf_button,
#ncf_sidebar.ncf_flat a.ncf_button,
#ncf_sidebar.ncf_minimalistic a.ncf_button,
#ncf_sidebar.ncf_aerial a.ncf_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 0 25px;
    color: #111 !important;
    background: var(--photoscotland-contact-accent) !important;
    border: 1px solid var(--photoscotland-contact-accent) !important;
    border-radius: 3px !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: none;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#ncf_sidebar a.ncf_button:hover {
    color: #111 !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

#ncf_sidebar a.ncf_button span {
    color: inherit !important;
}

#ncf_sidebar .ncf_form_result,
#ncf_sidebar .ncf_form_result p {
    color: #f4f4f2;
}

#ncf_sidebar .ncf_form_btn_wrapper {
    margin-top: 5px;
}

/* Keep the panel comfortable on phones without altering its slide mechanics. */
@media (max-width: 500px) {
    #ncf_sidebar .ncf_sidebar_cont {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    #ncf_sidebar .ncf_sidebar_content {
        margin-left: 22px;
        margin-right: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ncf_sidebar input,
    #ncf_sidebar textarea,
    #ncf_sidebar a.ncf_button {
        transition: none !important;
    }
}
