

/* Form sections */
.form-section {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group>label{
	font-size: 1.2em;
	margin-bottom: 1em !important;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-group label:not(.checkbox-label):not(.radio-label)::after {
    content: " *";
    color: #e53e3e;
    display: none;
}

.form-group input[required] + label::after,
.form-group select[required] + label::after {
    display: inline;
}

/* Form inputs */
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* File input */
input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed #cbd5e0;
    border-radius: 6px;
    background-color: #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #667eea;
    background-color: #edf2f7;
}

.file-info {
    display: block;
    margin-top: 0.5rem;
    color: #718096;
    font-size: 0.875rem;
}

/* Radio and checkbox groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: #cbd5e0;
    background-color: #f7fafc;
}

.radio-label input,
.checkbox-label input {
    margin-right: 0.75rem;
    width: auto;
    cursor: pointer;
}

.radio-label input:checked + *,
.checkbox-label input:checked + * {
    font-weight: 600;
}

.radio-label:has(input:checked),
.checkbox-label:has(input:checked) {
    border-color: #667eea;
    background-color: #edf2f7;
    color: #4c51bf;
}

/* Buttons */
.form-actions {
    padding: 2rem;
    text-align: center;
    background-color: #f7fafc;
    border-top: 1px solid #eee;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    margin: 0 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: 150px;
}

.btn-primary {
    background: #1345aa;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
    border: 2px solid #cbd5e0;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
    border-color: #a0aec0;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Results section */
.results {
    margin: 2rem;
    padding: 2rem;
    background: #1345aa;
    color: white;
    border-radius: 8px;
    text-align: center;
}

.results h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
	color: #fff !important;
}

#score-display {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

#message-display {
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.error {
    border-color: #e53e3e !important;
    background-color: #fed7d7 !important;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }

    header {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .form-actions {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
        margin: 0.25rem 0;
    }

    .radio-group,
    .checkbox-group {
        gap: 0.5rem;
    }
}
