/* ==========================================================================
   Homeschool Evaluators Plugin Stylesheet
   ========================================================================== */

.heval-directory-container,
.heval-form-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Search and Filters */
.heval-search-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    margin-bottom: 30px;
}

.heval-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.heval-filter-row input[type="text"],
.heval-filter-row select {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 40px;
}

.heval-search-btn,
.heval-reset-btn,
.heval-submit-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.heval-search-btn:hover,
.heval-submit-btn:hover {
    background: #005177;
}

.heval-reset-btn {
    background: #666;
    display: inline-block;
}
.heval-reset-btn:hover {
    background: #444;
    color: #fff;
}

.heval-filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
}

/* Listing Display Tags & Formatting */
h3.evaluator-county {
    font-size: 1.5em;
    color: #1d2327;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.heval-directory-container p {
    margin-bottom: 15px;
}

.evaluator-name {
    font-weight: bold;
    font-size: 1.2em;
    color: #222;
}

a.evaluator-website,
a.evaluator-email,
a.evaluator-phone {
    color: #0073aa;
    text-decoration: none;
}

a.evaluator-website:hover,
a.evaluator-email:hover,
a.evaluator-phone:hover {
    text-decoration: underline;
}

.evaluator-elementary,
.evaluator-secondary,
.evaluator-special-education,
.evaluator-statewide {
    display: inline-block;
    font-size: 0.9em;
    color: #444;
}

.evaluator-additional-info {
    display: block;
    margin-top: 8px;
    font-size: 0.95em;
    color: #555;
    white-space: pre-line;
}

.heval-directory-container hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* Form Styles */
.heval-field-group {
    margin-bottom: 20px;
}

.heval-field-row {
  display: flex;
  gap: 16px;
}

.heval-field-row .heval-field-group {
  flex: 1;
}

.heval-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0px;
}

.heval-field-group input[type="text"],
.heval-field-group input[type="email"],
.heval-field-group input[type="url"],
.heval-field-group select {
    width: 100%;
    height: 40px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.heval-field-group textarea {
    width: 100%;
    height: 90px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

fieldset.heval-field-group {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

.heval-counties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 12px;
    background: #f8fafc;
    border-radius: 4px;
    line-height: 1.0;
}

.heval-counties-grid label {
    font-weight: normal;
    font-size: 0.9em;
}

.required {
    color: #d63638;
}

.heval-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.heval-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

#heval_request_type {
    background-color: #eeeeee;    
    color: #333;
}

/* Responsive adjustments */
@media(max-width: 600px) {
    .heval-filter-row {
        flex-direction: column;
    }
    
    .heval-field-row {
        flex-direction: column;
        gap: 0;
    }    
}