/* Container & Table Reset */
.form-table {
    width: 100%;
    margin: 20px auto;
    border-collapse: separate;
    border-spacing: 0 15px; /* Adds space between rows */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Make rows act like flex containers for better spacing */
.form-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

/* Style the Labels (the <th> cells) */
.form-table th {
    text-align: left;
    padding-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Style the Input Containers (the <td> cells) */
.form-table td {
    padding: 0;
}

/* Universal Input Styling */
.form-table input[type="text"],
.form-table input[type="number"],
.form-table input[type="date"],
.form-table select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

/* Target the cell containing the time selects */
.form-table td.time-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between the dropdowns */
}

/* Make each select grow to fill equal space */
.form-table td.time-container select {
    flex: 1;
    min-width: 0; /* Prevents selects from overflowing on small screens */
    width: auto !important; /* Overrides the 100% width from general input styles */
    padding: 10px 5px;
    cursor: pointer;
}

/* Focus States */
.form-table input:focus,
.form-table select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* Read-only (Latitude/Longitude) Styling */
.form-table input[readonly] {
    background-color: #edf2f7;
    cursor: not-allowed;
    border-style: dashed;
}

/* Specific styling for the Time section to keep elements inline */
#time_hour, #time_minute, #time_ampm {
    width: calc(33% - 10px) !important;
    display: inline-block;
}

/* Hide the <br> tags in the time section for a cleaner look */
.form-table td br {
    display: none;
}

/* Responsive adjustment for larger screens (side-by-side) */
@media (min-width: 480px) {
    .form-table tr {
        flex-direction: row;
        align-items: center;
    }

    .form-table th {
        width: 35%;
        padding-bottom: 0;
        padding-right: 20px;
    }

    .form-table td {
        width: 65%;
    }
}
@media (max-width: 480px) {
    .form-actions{
        flex-direction: column !important;
        gap: 10px;
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }
    .form-actions button{
        width: 100%;
        flex: 1 1 auto;
        margin: 0;
        box-sizing: border-box;
    }
}
.wrap h1{
    display: none;
}
.ui-widget .ui-menu-item-wrapper{
    font-size: 14px;
}
.notice:not(:empty), #cs-sqm-error-message:not(:empty) {
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 5px 15px 2px;
    padding: 1px 12px;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #00a32a;
    color: black;
}

#cs-sqm-error-message:not(:empty){
    border-left: 4px solid red;
}

select#county {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 10px;
}

select#county::-ms-expand {
    display: none;
}

/* Manual mode: restore native dropdown arrow and allow interaction */
select#county.manual-mode {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    padding-right: 12px;
    cursor: pointer;
}

select#county.manual-mode::-ms-expand {
    display: block;
}

/*password*/
.password-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
}
.password-inline-form input[type="password"] {
    padding: 8px 12px;
    border-radius: 5px;
}
@media (max-width: 600px) {
    .password-inline-form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}