﻿form .text-field {
    width: 100%;
    padding: 5px;
    margin: 5px 0;
}

form .text-field:focus {
    border-radius: 0.5rem;
}

.section-container {
    max-width: 60%;
}
/* Inputs inside the project form: full-width text fields with modest padding.
   These simple rules keep the form compact and consistent with the rest of
   the site while remaining easy to override per-page if needed. */
form .text-field {
    width: 100%;
    padding: 5px;
    margin: 5px 0;
}

/* Rounded focus treatment improves perceived affordance for keyboard users. */
form .text-field:focus {
    border-radius: 0.5rem;
}

/* Constrain the main section so the form doesn't stretch too wide on desktop. */
.section-container {
    max-width: 60%;
}

/* Success and error banners: visually distinct colors and a subtle shadow.
   They are intentionally narrow (max-width) so they align with the main
   content area. These are transient; their show/hide behavior is JS-driven. */
.success-popup {
    max-width: 60%;
    background: #e6ffed;
    color: #055a12;
    border: 1px solid #8ae39f;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
    transition: opacity 0.35s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    cursor: pointer;
}

.error-popup {
    max-width: 60%;
    background: #ffe6e6;
    color: #7a0b0b;
    border: 1px solid #f5a3a3;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
    transition: opacity 0.35s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    cursor: pointer;
}

/* Guidance link styling: underline with subtle color so it's visible but
   not visually dominating. Kept separate from global links so it can be
   restyled without affecting other pages. */
.guidance-link {
    display: inline-block;
    margin: 0.5rem 0 1rem 0;
    color: #065a9c;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(6,90,156,0.6);
    text-underline-offset: 2px;
}

.guidance-link:hover,
.guidance-link:focus {
    color: #043a6b;
    text-decoration-color: rgba(6,90,156,1);
    outline: none;
}

/* Modal container: take full viewport and center content. We use a
   semi-opaque overlay to direct user attention to the modal content. */
.guidance-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.guidance-modal.hidden { display: none; }
.guidance-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.guidance-content {
    position: relative;
    max-width: 1000px;
    width: 95%;
    max-height: 80vh;
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    overflow: auto;
    z-index: 1001;
}

/* Small accessible close button placed in the top-right of the modal. */
.guidance-close {
    position: absolute;
    right: 0.5rem;
    top: 0.25rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.guidance-body { margin-top: 0.75rem; line-height: 1.5; }