html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Index */
/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #006c72;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Hidden elements for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-input {
    padding: 0 5px 5px 5px;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid #006c72;
    outline-offset: 2px;
}

.card-header {
    background-color: #005a60;
    color: white;
    padding: 12px 16px;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.school-results-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.school-result-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.schools-container {
    padding: 12px;
}

.school-row {
    display: grid;
    grid-template-columns: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.school-row:nth-child(even) {
    /* background: #ccc; */
}

.school-row:nth-child(odd) {
    background: #ededed;
}

.school-row:last-child {
    border-bottom: none;
}

.school-type {
    font-weight: bold;
    color: #005a60;
    margin-bottom: 4px;
}

.school-name a {
    color: #005a60;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.school-name a:hover, .school-name a:focus {
    text-decoration: underline;
    color: #003a40;
}

.distance {
    margin-left: 4px;
    font-weight: normal;
}

.fa-map-marker {
    margin-left: 8px;
    color: #005a60;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #333;
    font-weight: bold;
}

.form-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-search {
    margin-right: 10px;
}

.SP-Button--default {
    background-color: #005a60 !important;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.SP-Button--default:hover, .SP-Button--default:focus {
    background-color: #003a40 !important;
}

@media (min-width: 768px) {
    .school-row {
        grid-template-columns: 35% 65%;
        align-items: center;
    }

    .school-type {
        margin-bottom: 0;
    }
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ccc;
    background: white;
    z-index: 1000;
}

.ui-menu-item {
    padding: 8px;
    cursor: pointer;
}

.ui-menu-item:hover, .ui-menu-item.ui-state-focus {
    background-color: #f0f0f0;
}

.field-validation-error {
    color: #d9534f;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.loading-status {
    margin-top: 5px;
    color: #666;
}

.header-image {
    object-position:53.419593% 67.901235%;
}