/* estilos.css */

/* General Body and HTML styles */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Light grey background */
}

body {
    display: flex;
    flex-direction: column;
    text-align: justify; /* Justify text in the body */
}

main {
    flex: 1;
    overflow-y: auto;
}

/* Header styles */
.navbar-brand img {
    max-height: 40px;
}

.navbar .h2 {
    font-size: 1.5rem; /* Adjust as needed */
    color: #343a40;
    text-align: center; /* Center the h2 text */
}

/* Form steps and cards */
.form-step {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: justify; /* Justify text in form steps */
}

.card-header {
    background-color: #007bff; /* Primary blue for headers */
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center; /* Center the card header text */
}

.card-body {
    padding: 20px;
    text-align: justify; /* Justify text in card bodies */
}

.form-group {
    margin-bottom: 20px;
    text-align: justify; /* Justify text in form groups */
}

.form-control, .form-check-input {
    border-radius: 5px;
}

.invalid-feedback {
    display: block; /* Make sure feedback is visible when needed */
    text-align: left; /* Keep feedback left-aligned for readability */
}

/* Progress bar styles */
.progress {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
}

.progress-bar {
    background-color: #28a745; /* Green for progress */
}

/* Navigation buttons */
.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* Infraccion selection styles */
.infraction-item {
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 180px; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-align: center; /* Center text within infraction items */
}

.infraction-item:hover {
    background-color: #e9e9e9;
    border-color: #bbb;
}

.infraction-item input[type="radio"] {
    display: none; /* Hide default radio button */
}

.infraction-item input[type="radio"]:checked + .infraction-title {
    font-weight: bold;
    color: #007bff; /* Highlight selected text */
}

.infraction-item input[type="radio"]:checked {
    border: 2px solid #007bff; /* Highlight border of selected item */
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.infraction-item .icon-md {
    font-size: 3rem; /* Adjust icon size */
    margin-bottom: 10px;
    color: #007bff;
}

.infraction-title {
    font-size: 0.9rem;
    line-height: 1.3;
    text-align: center; /* Ensure infraction title is centered */
    color: #333;
}

/* Question and answer rows for PDI */
.question-row {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    text-align: justify; /* Justify text in question rows */
}

.question-row:last-child {
    border-bottom: none;
}

.question-text label {
    font-weight: 500;
    color: #343a40;
    margin-bottom: 0; /* Remove default margin */
}

.form-check-inline {
    margin-right: 1.5rem; /* Space between radio buttons */
}

/* Result section */
#resultado {
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: justify; /* Justify text in result section */
}

#resultado .card-header {
    background-color: #0056b3; /* Darker blue for result header */
    text-align: center; /* Center text in result card header */
}

#multaFinal {
    font-size: 1.8rem;
    color: #dc3545; /* Red for emphasis */
}

#resultado ul {
    list-style: none;
    padding-left: 0;
}

#resultado ul li {
    margin-bottom: 8px;
    color: #555;
    text-align: justify; /* Justify text in result list items */
}

/* Footer styles (from the provided code) */
.site-footer {
    background-color: #222;
    color: #eee;
    padding: 10px 0;
}

.site-footer img {
    max-height: 60px;
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .site-footer .footer-row {
        flex-direction: column;
        text-align: center;
    }

    .site-footer .footer-col {
        margin-bottom: 15px;
    }

    .navbar-brand {
        position: static !important; /* Override position for small screens */
        transform: none !important;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .navbar h2 {
        position: static !important; /* Override position for small screens */
        transform: none !important;
        width: 100%;
        text-align: center;
        font-size: 1.2rem; /* Smaller title on mobile */
    }

    .infraction-item {
        min-height: 150px; /* Adjust height for smaller screens */
    }

    .infraction-item .icon-md {
        font-size: 2.5rem;
    }

    .question-row .col-md-8, .question-row .col-md-4 {
        text-align: justify; /* Justify text in question rows for small screens */
    }

    .question-text {
        margin-bottom: 10px;
    }
}