/* ================================================== */
/* STYLES FOR COMPLIANCE CHECKER TOOL                 */
/* ================================================== */

/* --- Tool Layout & Header --- */
#tool-section {
    padding: 100px 5% 60px; /* Adjusted padding for a non-hero section */
    min-height: auto;      /* Override full-height for content flow */
    scroll-snap-align: none; /* Disable scroll snapping for this page */
    display: block;
}

.tool-container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-header h1 {
    font-family: var(--heading-font);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 4vw + 0.5rem, 2.8rem);
}

.tool-header .subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--secondary-text-color);
    margin-bottom: 2.5rem;
}

/* --- Form Styling --- */
#form-container, #result-container {
    background-color: var(--bg-color);
    padding: 2rem 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

body.dark-mode #form-container, body.dark-mode #result-container {
    border-color: rgba(255,255,255,0.15);
}

fieldset {
    border: none;
    padding: 0;
    margin-bottom: 2rem;
}

legend {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--highlight-color);
    width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--highlight-color);
    border-radius: 6px;
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all 0.3s var(--transition-curve);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-text-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight-color) 30%, transparent);
}

/* --- Radio & Checkbox Styling --- */
.radio-group, .form-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.form-check-group label, .radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.form-check {
    margin-right: 0.5rem;
    width: 1.1em;
    height: 1.1em;
    accent-color: var(--primary-text-color);
}

/* --- Tooltip Styling --- */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary-text-color);
    color: var(--bg-color);
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    margin-left: 8px;
    cursor: help;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background-color: var(--primary-text-color);
    color: var(--bg-color);
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    font-weight: 400;
}

.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* --- Button Styling --- */
.full-width {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.secondary-btn {
    margin-top: 1.5rem;
    padding: 12px 26px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-text-color);
    background-color: transparent;
    border: 2px solid var(--highlight-color);
    border-radius: 50px;
    transition: all 0.3s var(--transition-curve);
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}

.secondary-btn:hover {
    background-color: var(--highlight-color);
}

/* --- Result Styling --- */
.result-summary-header {
    text-align: center;
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: var(--button-bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.summary-card p {
    margin-bottom: 1rem;
}
.summary-card ul {
    list-style-position: inside;
    padding-left: 0;
}
.summary-card li {
    margin-bottom: 0.5rem;
}

.result-card {
    border: 1px solid var(--highlight-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.result-card-header {
    background-color: var(--button-bg-color);
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.result-item {
    padding: 1.2rem;
    border-bottom: 1px solid var(--highlight-color);
}
.result-card .result-item:last-child {
    border-bottom: none;
}

.result-item.audit {
    border-left: 5px solid #E53E3E; /* Red-like color for alerts */
}
body.dark-mode .result-item.audit {
    border-left-color: #FC8181;
}


.result-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.result-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.result-item-purpose {
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    margin-bottom: 0.8rem;
}
.result-item-due {
    background-color: var(--highlight-color);
    color: var(--primary-text-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.result-item-details {
    font-size: 0.9rem;
    line-height: 1.6;
}

.advisory-note {
    padding: 1rem 1.2rem;
    background-color: color-mix(in srgb, var(--highlight-color) 20%, transparent);
    border-top: 1px solid var(--highlight-color);
}
.advisory-title {
    font-weight: 700;
}
.advisory-text {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}


.disclaimer {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 2rem;
    color: var(--secondary-text-color);
}

.no-compliance-card {
    text-align: center;
    padding: 2rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    #tool-section {
        padding: 80px 5% 40px;
    }
    #form-container, #result-container {
        padding: 1.5rem;
    }
    .result-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}