﻿/* ========================================
   WARM & SOFT STYLES
   Enhanced with earth tones and softer elements
   All structural properties preserved
   ======================================== */

a.unstyleLink {
    text-decoration: none;
    color: #6B8FAA;
    transition: color 0.3s ease;
}

    a.unstyleLink:hover {
        color: #557A95;
    }

.errmsg {
    padding: 5px;
    font-weight: bold;
    text-align: center;
    font-size: 2em;
    /* Warm error styling */
    color: #B37168;
    background-color: #FCF3F1;
    border: 2px solid #E8C5C0;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(179, 113, 104, 0.1);
}

.validation-summary-errors ul li {
    font-weight: bold;
    color: #B37168;
    font-size: 1.2em;
    /* Enhanced styling */
    padding: 0.5rem 0;
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}

    .validation-summary-errors ul li::before {
        content: "⚠";
        position: absolute;
        left: 0;
        color: #C8916B;
    }

.validation-summary-errors ul {
    background-color: #FCF3F1;
    padding: 1rem 1.5rem;
    border-left: 4px solid #B37168;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.375rem rgba(179, 113, 104, 0.08);
}

.styleClose .ui-dialog-titlebar-close {
    display: none
}

.footerIcon {
    color: #9B8F82;
    font-size: 2.5em;
    margin-right: .5em;
    vertical-align: top;
    transition: color 0.3s ease;
}

    .footerIcon:hover {
        color: #6B8FAA;
    }

.social-links a {
    color: #C7A17A;
    transition: all 0.3s ease;
}

    .social-links a:hover {
        color: #D4A574;
        transform: translateY(-2px);
    }

.contact__info a {
    color: #5A5147;
    transition: color 0.3s ease;
}

    .contact__info a:hover {
        color: #6B8FAA;
    }

.zBack {
    z-index: -100 !important;
}

.form-group {
    padding-bottom: 20px;
    /* Enhanced form group styling */
}

    .form-group label {
        color: #5A5147;
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: block;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="number"],
    .form-group input[type="tel"],
    .form-group input[type="url"],
    .form-group input[type="date"],
    .form-group input[type="datetime-local"],
    .form-group select,
    .form-group textarea {
        border: 1.5px solid #E8DFD1;
        border-radius: 0.5rem;
        background-color: #FFFDF9;
        color: #5A5147;
        padding: 0.75rem 1rem;
        transition: all 0.2s ease;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #D4A574;
            background-color: #FFFDF9;
            box-shadow: 0 0 0 0.25rem rgba(212, 165, 116, 0.15);
        }

        .form-group input:hover,
        .form-group select:hover,
        .form-group textarea:hover {
            border-color: #D4C7B5;
        }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }

    /* Form helper text */
    .form-group small,
    .form-group .form-text {
        color: #9B8F82;
        font-size: 0.875rem;
        margin-top: 0.25rem;
        display: block;
    }

    /* Form validation states */
    .form-group .is-valid,
    .form-group input.is-valid {
        border-color: #7FA574;
    }

    .form-group .is-invalid,
    .form-group input.is-invalid {
        border-color: #B37168;
    }

    .form-group .valid-feedback {
        color: #7FA574;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }

    .form-group .invalid-feedback {
        color: #B37168;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }

.pageHeight {
    min-height: 500px;
    /* Enhanced page background */
    background-color: #F8F3EC;
}

/* ===================================
   ADDITIONAL WARM ENHANCEMENTS
   =================================== */

/* Buttons - if they appear in forms */
.form-group button,
.form-group input[type="submit"],
.form-group input[type="button"] {
    background-color: #6B8FAA;
    color: #FFFDF9;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.375rem rgba(107, 143, 170, 0.2);
}

    .form-group button:hover,
    .form-group input[type="submit"]:hover,
    .form-group input[type="button"]:hover {
        background-color: #557A95;
        transform: translateY(-1px);
        box-shadow: 0 0.25rem 0.5rem rgba(107, 143, 170, 0.3);
    }

    .form-group button:active,
    .form-group input[type="submit"]:active,
    .form-group input[type="button"]:active {
        transform: translateY(0);
    }

/* Checkbox and radio styling */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #D4C7B5;
    margin-right: 0.5rem;
    cursor: pointer;
}

    .form-group input[type="checkbox"]:checked,
    .form-group input[type="radio"]:checked {
        background-color: #6B8FAA;
        border-color: #6B8FAA;
    }

/* Select dropdown arrow styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A5147' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9B8F82;
    opacity: 0.7;
}

/* Disabled state */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background-color: #F5F0E8;
    color: #9B8F82;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Required field indicator */
.form-group label.required::after,
.form-group label[required]::after {
    content: " *";
    color: #B37168;
}

/* Success message styling */
.success-message {
    background-color: #F2F7F3;
    color: #7FA574;
    border: 2px solid #C5DCC3;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.375rem rgba(127, 165, 116, 0.08);
}

/* Info message styling */
.info-message {
    background-color: #F0F6F9;
    color: #5FA3B8;
    border: 2px solid #C3DDE6;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.375rem rgba(95, 163, 184, 0.08);
}

/* Warning message styling */
.warning-message {
    background-color: #FDF8F0;
    color: #C0915E;
    border: 2px solid #EBD9C3;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.375rem rgba(212, 165, 116, 0.08);
}

/* ===================================
   WCAG 2.1 AA FOCUS INDICATORS
   Visible focus outlines for keyboard navigation.
   Uses :focus-visible so outlines only appear
   for keyboard users, not mouse clicks.
   =================================== */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.site-btn:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid #6B8FAA;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(107, 143, 170, 0.25);
}

/* Hamburger menu and sidebar buttons */
.hamburger-trigger:focus-visible,
.btn-close-sidebar:focus-visible,
.go-top:focus-visible {
    outline: 2px solid #6B8FAA;
    outline-offset: 2px;
}

/* Social icon links */
.social-links a:focus-visible {
    outline: 2px solid #6B8FAA;
    outline-offset: 2px;
    border-radius: 50%;
}

/* ===================================
   JQUERY UI — Earthy Theme (Public Site)
   Replaces the humanity CDN theme.
   =================================== */

/* Base reset — kill all beveled gradients/text-shadows */
.ui-widget { font-family: inherit; font-size: inherit; }
.ui-widget-content { background: #FFFDF9; border: 1px solid #E8DFD1; color: #5A5147; }
.ui-widget-header { background: #F5F0E8; border: 1px solid #E8DFD1; color: #5A5147; font-weight: 600; }

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    background: #FFFDF9; border: 1px solid #D4C7B5; color: #5A5147;
    background-image: none; filter: none; text-shadow: none;
}
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover,
.ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus {
    background: #F5F0E8; border-color: #C0B5A3; color: #5A5147;
    background-image: none; filter: none; text-shadow: none;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active {
    background: #6B8FAA; border-color: #6B8FAA; color: #fff;
    background-image: none; filter: none; text-shadow: none;
}
.ui-state-disabled { opacity: 0.5; pointer-events: none; background-image: none; filter: none; }
.ui-corner-all { border-radius: 0.5rem; }

/* Slider */
.ui-slider {
    position: relative; background: #E8DFD1; border: 1px solid #D4C7B5; border-radius: 50rem; height: 8px;
}
.ui-slider-horizontal { height: 8px; }
.ui-slider-horizontal .ui-slider-handle { top: -6px; margin-left: -10px; }
.ui-slider-handle {
    position: absolute; z-index: 2; width: 20px; height: 20px; border-radius: 50%;
    background: #6B8FAA; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(90,81,71,.2);
    cursor: pointer; outline: none; transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.ui-slider-handle:hover, .ui-slider-handle:focus {
    background: #5C7D96; box-shadow: 0 0 0 4px rgba(107,143,170,.25);
}
.ui-slider-range {
    position: absolute; background: #6B8FAA; border-radius: 50rem; height: 100%; top: 0;
}

/* ===================================
   REDUCED MOTION PREFERENCES (WCAG 2.3.3)
   Respects prefers-reduced-motion for all
   transitions and animations on the public site
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
