:root {
    --primary-color: #4169E1; /* Royal Blue */
    --secondary-color: #000000; /* Black */
    --background-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

.container {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

form#assessment-form {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-section {
    display: none;
    flex: 1;
}

.form-section.active {
    display: flex;
    flex-direction: column;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-color);
    opacity: 0.8;
}

.form-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-group label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked + label {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.column {
    flex: 1;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.column-actual {
    border-left: 4px solid var(--primary-color);
}

.column-target {
    border-left: 4px solid #28a745;
}

.column h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-navigation {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    background: white;
}

.form-navigation .btn-prev {
    order: 1;
}

.form-navigation .btn-next {
    order: 2;
}

.form-navigation .btn-submit {
    order: 2;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-prev {
    background-color: #f8f9fa;
    color: var(--text-color);
}

.btn-next, .btn-submit {
    background-color: var(--primary-color);
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

.btn-prev:hover {
    background-color: #e9ecef;
}

.btn-next:hover, .btn-submit:hover {
    background-color: #3557c0;
}

/* Responsive layout */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .column {
        width: 100%;
    }
}

/* Results Page Styles */
.results-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-container {
    text-align: center;
    margin: 2rem 0;
}

.score {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-label {
    color: #666;
    font-size: 1.1rem;
}

.analysis, .recommendations {
    margin: 2rem 0;
}

.analysis h3, .recommendations h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.analysis ul {
    list-style-type: none;
    padding-left: 0;
}

.analysis ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.analysis ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.action-item {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}

.action-item h4 {
    color: var(--secondary-color);
    margin: 0 0 1rem 0;
}

.action-item ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.action-item ul li {
    margin: 0.5rem 0;
    color: #666;
}

.cta-section {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cta-section p {
    color: #666;
    margin-bottom: 2rem;
}

.cta-section .btn {
    display: inline-block;
    text-decoration: none;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .btn {
        min-width: auto;
    }

    .checkbox-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-container {
        flex-direction: column;
        gap: 1rem;
    }

    .column {
        padding: 1rem;
    }
}

/* Form Group Enhancements */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.1);
    outline: none;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Textarea styles */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
    padding: 1rem;
}

textarea.form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
    font-style: italic;
}

/* Overview section specific styles */
.overview-section textarea.form-control {
    margin-bottom: 1rem;
}

/* Logo styles */
.logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 40px;
    height: 40px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Footer styles */
.footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: var(--text-color);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}

/* Action Plan Styles */
.action-plan {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.action-plan h1 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.action-plan .section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.action-plan .section h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

#assessment-summary p {
    margin-bottom: 0.5rem;
}

#recommendations ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

#recommendations li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.action-plan .btn {
    display: inline-block;
    text-decoration: none;
    margin-top: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal h2 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.modal input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.modal button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.modal button:hover {
    background-color: #2851DB;
}
