/* Sets the main screen background color to your bright sky blue */
body {
    font-family: 'Fredoka', sans-serif; 
    background-color: #5CB8FF; 
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

/* The physical paper sheet container */
.portal-container {
    background-color: #ffffff;
    max-width: 750px;
    width: 100%;
    padding: 35px;
    border-radius: 12px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Centers the logo image container */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

/* Made the logo bigger by increasing the height from 80px to 150px */
.portal-logo {
    max-height: 150px; 
    width: auto;
}

/* Headings Centering and Custom Color Coding */
h1 {
    font-size: 1.6rem;
    color: #002060; /* Dark Navy for Hughesville Properties management portal */
    margin: 0 0 8px 0;
    font-weight: 700;
    text-align: center;
}

.page-type {
    font-size: 1.2rem;
    color: #4a5568;
    margin: 0 0 8px 0;
    text-align: center;
}

/* Project Details Section Heading color */
.section-title {
    font-size: 1.1rem;
    color: #0070C0; /* Mid-blue for Project Details */
    margin: 0 0 30px 0;
    font-weight: 700;
    text-align: center;
}

/* =========================================================
   🆕 NEW FEATURE: GPS BUTTON SECTION STYLE
   ========================================================= */
.gps-section {
    text-align: center;
    margin-bottom: 25px;
}

.portal-btn {
    font-family: 'Fredoka', sans-serif;
    background-color: #002060; /* Matches your Dark Navy headings */
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.portal-btn:hover {
    background-color: #0070C0; /* Flips to Mid-blue on hover */
}

.portal-btn:active {
    transform: scale(0.98); /* Slight click feedback effect */
}

.status-text {
    font-size: 0.8rem;
    color: #718096;
    margin: 6px 0 0 0;
}

/* Table Setup */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table td {
    padding: 12px 10px;
    vertical-align: top;
    border-bottom: 1px solid #edf2f7;
    position: relative; /* REQUIRED: Keeps the dropdown box locked to the row */
}

/* Question Labels Column */
.field-label {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: #002060; /* Dark Navy for your questions */
    width: 30%;
    padding-top: 18px !important;
}

/* Forces everything inside the answer cell to stack vertically */
.input-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative; /* REQUIRED: Anchor point for the suggestion dropdown */
}

/* Pulls everything inside this container directly into center alignment */
.input-container.center-content {
    align-items: center; 
}

/* Text Input Typing Fields & Dropdown Selection Elements */
.input-field {
    font-family: 'Fredoka', sans-serif; 
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.95rem;
    color: #0070C0; /* Mid-blue for the text you type as your answers */
    font-weight: 600;
    background-color: #ffffff;
}

/* =========================================================
   🆕 NEW FEATURE: SUBURB SUGGESTIONS BOX DROPDOWN STYLES
   ========================================================= */
.suggestions-box {
    position: absolute;
    top: 45px; /* Sits perfectly right beneath your input box */
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    max-height: 180px;
    overflow-y: auto; /* Adds a scrollbar if there are lots of matches */
    z-index: 999; /* Forces the box to float on top of everything else */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none; /* Kept hidden until you start typing */
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    color: #002060; /* Navy text for choices */
    font-size: 0.9rem;
    text-align: left;
    transition: background-color 0.15s;
}

/* Highlights options when you hover your trackpad over them */
.suggestion-item:hover {
    background-color: #e0f2fe; /* Soft light blue highlight background */
    color: #0070C0;
}

/* Smaller instructions text styled perfectly underneath Project Name box */
.help-text {
    font-family: 'Fredoka', sans-serif;
    display: block;
    font-size: 0.75rem; 
    color: #718096;
    margin-top: 5px; 
    line-height: 1.3;
    text-align: center; /* Centers the actual text lines */
}


/* =========================================================
   POTENTIAL - MULTI-FIELD ROW LAYOUT
   Keeps the existing Hughesville visual styling above.
   ========================================================= */

.potential-row {
    display: grid;
    column-gap: 14px;
    row-gap: 10px;
    padding: 10px 0;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
}

.potential-field {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.potential-field label {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: #002060;
    white-space: nowrap;
    flex: 0 0 auto;
}

.potential-field .input-field,
.potential-field .input-container {
    min-width: 0;
    flex: 1 1 auto;
}

.potential-1  { grid-template-columns: 1fr 1.65fr 1fr; }
.potential-2  { grid-template-columns: 1.55fr 1.2fr auto; }
.potential-3  { grid-template-columns: 1fr 1.2fr 1.1fr; }
.potential-4  { grid-template-columns: 1fr 1.15fr 1.1fr; }
.potential-5  { grid-template-columns: .9fr 1.1fr 1.15fr 1.35fr; }
.potential-6  { grid-template-columns: 1.35fr 1.05fr 1fr 1fr; }
.potential-7,
.potential-8,
.potential-9  { grid-template-columns: 1fr 1fr; }
.potential-10 { grid-template-columns: 1fr 1fr 1.5fr; }
.potential-11 { grid-template-columns: 1fr auto; }

.notes-field textarea {
    min-height: 75px;
    resize: vertical;
}

#gps_status {
    text-align: center;
}

/* On a phone, keep the form usable rather than squeezing fields unreadably. */
@media (max-width: 760px) {
    body {
        padding: 15px 8px;
    }

    .portal-container {
        padding: 20px 14px;
    }

    .potential-row {
        grid-template-columns: 1fr;
    }

    .potential-field {
        width: 100%;
    }
}
