#issue-tracker-container {
    font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f4faf7;
    width: 100%;
    box-sizing: border-box; /* padding and border included in width, prevents mobile overflow */
    border: 1.5px solid rgba(16, 132, 82, 0.35);
    border-radius: 8px;
    padding: 8px 20px 28px;
}

#submitForm {
    max-width: 95vw;
}

#issue-tracker-container h2 {
    color: rgb(11, 102, 64); /* Darker green: 6.6:1 contrast on #f4faf7, overrides Squarespace theme */
}

/* Shared map styles are now pulled from trailMap4.css and trailmap-fullscreen.css */

fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
}

fieldset > legend {
    float: none;            /* override browser default which floats legend left */
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 8px 0;     /* matches h3 margin-bottom */
    font-size: 16px;        /* matches computed h3 size (overrides inherited 1.17em) */
    font-weight: 600;       /* matches h3 weight */
    line-height: 1.3;
    color: rgba(26, 26, 26, 0.9); /* matches h3 colour exactly */
}

.titleMessage {
    color: rgb(11, 102, 64);
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.supportMessage {
    color: rgba(26, 26, 26, 0.9);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#issue-tracker-container hr {
    border: 1px solid rgba(16, 132, 82, 0.35);
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box; /* prevents border from adding 2px beyond parent width */
}

form {
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-bottom: 8px;
    max-width: 95%;
    font-weight: 500;
}

textarea,
input {
    margin-bottom: 12px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-width: 90%;
    width: 90%;
}

input.error {
    border-color: #d93025 !important;
    background-color: #fdf7f7;
}

.subLabelText.error {
    color: #d93025;
    font-weight: 600;
    margin-top: -8px;
    margin-bottom: 12px;
}

textarea:focus,
input:not([type="checkbox"]):focus,
button:focus {
    outline: 3px solid #108452;
    outline-offset: 2px;
    border-color: #108452;
}

input[type="checkbox"] {
    accent-color: rgb(16, 132, 82);
    width: 20px;
    height: 20px;
    margin: 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 10px;
    margin-bottom: 20px;
}

.checkbox-container label {
    margin-bottom: 0;
}

#map {
    width: 100%;
    height: 350px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
    touch-action: pan-y;
}

.button-wrap {
    position: relative;
}

#upload-button {
    background: rgb(16, 132, 82);
    color: white;
    letter-spacing: 2px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 60px;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color 0.3s;
    border: 2px solid rgb(16, 132, 82);
}

#upload-button:hover:not(:disabled) {
    background-color: white;
    color: rgb(16, 132, 82);
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.image-preview button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: 2px solid red;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#locationTabs {
    width: 95%;
    margin: 20px 0;
}

.tab-header {
    list-style-type: none;
    padding: 0;
    display: flex;
    margin: 0 5px;
}

.tab-header li {
    cursor: pointer;
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid rgb(16, 132, 82);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background-color: #f0f0f0;
    margin-right: 5px;
}

.tab-header li.active {
    background-color: rgb(16, 132, 82);
    color: white;
}

.tab-header li:focus-visible {
    outline: 3px solid #108452;
    outline-offset: 2px;
    position: relative;
    z-index: 1;
}

.tab-header li:hover:not(.active) {
    background-color: #e0e0e0;
    border-color: #008000;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 2px solid rgb(16, 132, 82);
    background-color: #fff;
}

.tab-content.active {
    display: block;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.button {
    background-color: rgb(16, 132, 82);
    color: white;
    border-radius: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    cursor: pointer;
    border: 2px solid rgb(16, 132, 82);
    width: fit-content;
    min-width: 200px;
    margin-top: 15px;
}

.button:hover {
    background-color: white;
    color: rgb(16, 132, 82);
}

.resetMapMarker {
    color: white;
    background-color: rgb(16, 132, 82);
    border: 2px solid rgb(16, 132, 82);
    padding: 5px 15px;
    border-radius: 60px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 5px;
    float: right;
    z-index: 5;
    position: relative;
}

.resetMapMarker:hover {
    color: rgb(16, 132, 82);
    background-color: white;
}

/* Spinner Styles */
.spinner {
    margin: auto;
    width: 200px;
    height: 150px;
    text-align: center;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner>div {
    background-color: #4AAFD7;
    height: 100%;
    width: 20px;
    display: inline-block;
    margin: 0 2px;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
    animation-delay: -1.1s;
    background-color: #80AF41;
}

.spinner .rect3 {
    animation-delay: -1.0s;
    background-color: #F9F055;
}

.spinner .rect4 {
    animation-delay: -0.9s;
    background-color: #80AF41;
}

.spinner .rect5 {
    animation-delay: -0.8s;
    background-color: #4AAFD7;
}

@keyframes sk-stretchdelay {

    0%,
    40%,
    100% {
        transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1.0);
    }
}

.hidden {
    display: none !important;
}

/* Datalist Custom Styling (Inherited from trailMap4.css .searchDropdown classes where possible) */
.datalistDropdown {
    position: absolute;
    background: white;
    border: 1px solid #008f0c;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Alignment with trailMap4 search classes */
.optionDropdown {
    padding: 6px 8px;
    cursor: pointer;
    color: #108452;
    font-size: 16px;
    line-height: 1.2;
}

.optionDropdown:hover,
.activeOption {
    background-color: #008f0c;
    color: #fff;
}

#clearSearch {
    position: relative;
    display: inline-flex;
    right: 32px;
    background: #008f0c;
    border: 1.5px solid #008f0c;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: white;
    padding: 0;
    margin: 0;
    z-index: 81;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#clearSearch:hover {
    background: white;
    color: #008f0c;
}

#clearSearch:focus-visible {
    outline: 3px solid #108452;
    outline-offset: 2px;
}

/* Marker helper */
.issueMarker.inline {
    display: inline-block;
    vertical-align: middle;
    height: 20px;
    width: 12px;
    background-image: url('https://northaventrail.org/s/red_marker.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.issueMarker.map {
    width: 30px;
    height: 48px;
    background-image: url('https://northaventrail.org/s/red_marker.png');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

.issueMarker.map.non-draggable {
    cursor: default;
}

/* Hide manual location entry  for now*/
#manualLocationGroup {
    display: none;
}

#locationListInput {
    margin-bottom: 0;
}

/* Character Counter Styles */
.char-counter {
    float: right;
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-top: 4px;
}

.char-counter.warning {
    color: #ff8c00;
    /* Orange */
    font-weight: 600;
}

.char-counter.danger {
    color: #d93025;
    /* Red */
    font-weight: bold;
}

/* Honeypot — hidden from real users, filled by bots */
.nt-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
