/**
 * WLBL Portal Styles
 */

.wlbl-portal-wrapper {
    max-width: 100%;
    padding: 20px;
    background: #f5f5f5;
    min-height: 100vh;
}

.wlbl-portal-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wlbl-portal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0073aa;
}

.wlbl-portal-header h1 {
    color: #333;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.wlbl-portal-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Messages */
.wlbl-message {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    border-left: 4px solid;
}

.wlbl-message strong {
    display: block;
    margin-bottom: 5px;
}

.wlbl-message ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.wlbl-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.wlbl-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
}

.form-section h2 {
    color: #333;
    font-size: 20px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.form-help {
    color: #666;
    font-size: 14px;
    margin: -5px 0 15px 0;
    font-style: italic;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

/* Priority Select Styling */
.priority-select option.option-request {
    background-color: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
}

.priority-select option.option-avoid {
    background-color: #ffebee;
    color: #c62828;
    font-weight: 600;
}

/* Divisions Container - Two Column Layout */
.divisions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 15px;
}

.divisions-column h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073aa;
}

/* Divisions Grid (legacy - keeping for backward compatibility) */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.division-checkbox {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.division-checkbox:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

.division-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.division-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.division-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #0073aa;
}

/* Form Actions */
.form-actions {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #0073aa;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wlbl-portal-container {
        padding: 20px;
    }

    .wlbl-portal-header h1 {
        font-size: 24px;
    }

    .divisions-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .divisions-grid {
        grid-template-columns: 1fr;
    }

    .form-section h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .wlbl-portal-wrapper {
        padding: 10px;
    }

    .wlbl-portal-container {
        padding: 15px;
    }

    .btn {
        width: 100%;
    }
}
