/* Debug message placeholder (cannot console.log in CSS, so using a comment) */
/* Log.d("Jordon", "Loaded protektant.css for external styling"); */

/* 1. Import Montserrat for Regular (400) and Heavy (900) weights */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;900&display=swap');

:root {
    /* Existing brand colors */
    --brand-bg: #efe5d8;        /* Light background - R 239 G 229 B 216 */
    --brand-red: #ec2445;       /* Primary CTA color - R 236 G 36 B 69 */
    --brand-orange: #ef4829;    /* Hover CTA color - R 239 G 72 B 41 */
    --brand-purple: #3d1d55;    /* Rich purple - R 61 G 29 B 85 */
    --brand-dark: #23132d;      /* Darkest color (eggplant) - R 35 G 19 B 45 */

    /* New blue-sky palette */
    --sky-bg: #e6f4fa;          /* MAIN background, very soft blue */
    --cloud-white: #ffffff;     /* Panels, cards, surfaces */
    --sky-blue: #b9e0fa;        /* Accent, headers, hover backgrounds */
    --tree-green: #55b985;      /* Fresh, natural accent for success or highlights */
    --soft-shadow: rgba(185,224,250,0.2); /* Subtle shadow for depth */
}

/* 2. Global font override to Montserrat */
body,
.ui-widget {
    font-family: 'Montserrat', sans-serif;
    margin: 0; /* Reset default page margin if desired */
    padding: 0;
    background: var(--sky-bg);
}

/* HEADER STYLES */
.header {
    width: 100%;
    background-color: var(--cloud-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid #b9e0fa;
    box-shadow: 0 4px 16px var(--soft-shadow);
}

/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
}
.logo-container img {
    max-width: 40px;
    height: auto;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
}
.language-switcher h\:outputLabel {
    margin-right: 0.5rem;
}

/* Main form container */
.form-container {
    margin-top: 8rem;
    padding: 2rem;
    background: var(--cloud-white);
    border-radius: 1.5rem;
    box-shadow: 0 2px 8px var(--soft-shadow);
}

/* FOOTER STYLES (to visually match header and meet layout/brand needs) */
.footer {
    width: 100%;
    background-color: var(--cloud-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    border-top: 1px solid #b9e0fa;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #23132d;
    box-shadow: 0 -4px 16px var(--soft-shadow);
}

/* Footer logo: always exactly 200px wide, never shrinks or grows */
.footer-logo {
    display: block;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

/* Global Notice Bar */
.global-notice-bar {
    width: 100%;
    background: #fffbcc;
    color: #6d5200;
    padding: 1em 2em;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 2px solid #ffb700;
    box-shadow: 0 2px 8px rgba(185, 224, 250, 0.08);
    z-index: 950;
    margin-top: 5rem; /* Adjust to your actual header height, usually 4-5rem */
    margin-bottom: 1.5em;
}
@media (max-width: 600px) {
    .global-notice-bar {
        font-size: 1em;
        padding: 1em 0.5em;
    }
}

/* Cookie Consent Bar */
.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 1em;
    text-align: center;
    z-index: 9999;
}
.cookie-consent-form {
    margin: 1em auto 0 auto;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cookie-btn-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5em;
}
.accept-cookie-btn,
.refuse-cookie-btn {
    width: 100%;
    max-width: 250px;
    margin: 0.25em 0;
    padding: 0.45em 1.25em;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: block;
    font-size: 1.1em;
}
.accept-cookie-btn {
    background: #7cf;
    color: #222;
}
.refuse-cookie-btn {
    background: #f77;
    color: #fff;
}

/* Welcome statement styles */
.welcome-statement,
.welcome-statement a {
    color: #23132d;
}

/* Form grid spacing */
.form-grid {
    margin: 20px 0;
}

/* Button grid spacing */
.button-grid {
    margin: 20px 0;
    text-align: center;
}

/* License box styling */
.license-box {
    height: 200px;
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    overflow-y: scroll;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

/* Error message styling */
.error-message {
    color: red;
}

/* Higher z-index for dialogs to appear above header/footer */
.ui-dialog {
    z-index: 99999 !important;
}
.ui-widget-overlay {
    z-index: 99998 !important;
}

/* Media query for smaller screens (mobile) */
@media (max-width: 600px) {
    .header {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }
    .logo-container img {
        max-width: 40px;
        height: auto;
    }
    .protektant-text {
        font-size: 2rem;
        margin-left: 0.7rem;
    }
    .language-switcher {
        margin-top: 0;
        align-self: center;
        margin-bottom: 0;
    }
    .form-container {
        margin-top: 6rem;
        padding: 2rem;
    }
    .cookie-consent-bar {
        padding: 0.5em 0.25em 0.5em 0.25em;
        font-size: 1em;
    }
    .cookie-consent-form {
        max-width: 95vw;
        width: 100%;
        padding: 0;
    }
    .cookie-btn-row {
        margin-bottom: 0.5em;
    }
    .accept-cookie-btn,
    .refuse-cookie-btn {
        max-width: 99vw;
        font-size: 1.08em;
    }
    /* No .footer img rule; .footer-logo is fixed size everywhere */
}




/* Gradient text effect for Protektant wordmark */
.protektant-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #ef4829 0%, #ec2445 60%, #3d1d55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding-left: 0.7rem;
    user-select: none;
    display: inline-block;
}

/* Log.d("Jordon"): inline-commandlink alignment fix */
.inline-commandlink {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}
