﻿/* =========================================
   🔥 SUMMARY CONTAINER (NEW)
========================================= */
#form-validate-summary {
    margin-top: 16px;
    margin-bottom: 24px;
}

    /* Hide container when empty */
  /*  #form-validate-summary:empty {
        display: none;
    }*/

/* =========================================
   🔥 VALIDATION SUMMARY
========================================= */
.validation-summary {
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #dc2626;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15);
    background: #fff5f5;
    animation: slideFadeIn 0.35s ease;
    scroll-margin-top: 20px;
}

/* ❌ REMOVE dependency on .show */
/* .validation-summary.show { display:block } → no longer needed */

/* =========================================
   🔥 HEADER
========================================= */
.validation-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    color: white !important;
    padding: 15px;
}

    .validation-summary-header h2 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: white !important;
    }

.validation-icon {
    font-size: 22px;
    line-height: 1;
}

/* =========================================
   🔥 ERROR LIST
========================================= */
.validation-summary ul {
    list-style: none;
    margin: 0;
    padding: 15px;
}



/* =========================================
   🔥 ERROR LINKS
========================================= */
.validation-summary a {
    color: #b91c1c !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom: 1px dashed #b91c1c !important;
    transition: all 0.2s ease !important;
    font-size:13px;
}

    .validation-summary a:hover,
    .validation-summary a:focus {
        color: #7f1d1d;
        border-bottom-style: solid;
        outline: 2px solid #7f1d1d;
        outline-offset: 2px;
    }

/* =========================================
   🔥 FIELD LEVEL ERROR (UNCHANGED + IMPROVED)
========================================= */
.field-validation-error {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border: 1px solid #e63946;
    border-left: 4px solid #e63946;
    color: #b00020;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    margin-top: 6px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.15);
    animation: fadeIn 0.3s ease-in-out;
    width:100%;
}

    /* Icon */
    .field-validation-error::before {
        content: "⚠";
        font-size: 16px;
        line-height: 1;
    }

/* =========================================
   🔥 INPUT ERROR STATE
========================================= */
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border: 2px solid #e63946 !important;
    background-color: #fff5f5;
}

    /* Accessibility focus */
    input.input-validation-error:focus,
    select.input-validation-error:focus,
    textarea.input-validation-error:focus {
        outline: 2px solid #e63946;
        outline-offset: 2px;
    }

/* =========================================
   🔥 ANIMATIONS
========================================= */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
