/* ============================================================
   GENERAL GLOBAL STYLES — Corporate / Government eThekwini UI
   ============================================================ */

html, body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    background-color: #f7f9fc;
    min-height: 100%;
}

/* Improve readability */
.container {
    max-width: 1200px !important;
}

/* Heading styling */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #00408a;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.navbar-brand img {
    height: 48px;
    width: auto;
    margin-right: 12px;
}

/* Prevent text overlap */
.navbar-brand span {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ============================================================
   CARD STYLING (Form Container)
   ============================================================ */
.card {
    border-radius: 10px;
    border: none;
}

.card-header {
    border-radius: 10px 10px 0 0;
    padding: 1rem 1.25rem;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

/* Labels */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

/* Inputs + Dropdowns */
.form-control,
.form-select {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #bfc7d1;
    background-color: #fff;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

    /* Focus state */
    .form-control:focus,
    .form-select:focus {
        border-color: #007bff;
        box-shadow: 0 0 6px rgba(0,123,255,0.35);
    }

/* Textareas */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Validation messages */
.text-danger {
    font-size: 0.85rem;
}

/* ============================================================
   ADDRESS SUGGESTION LIST
   ============================================================ */
#queryResultsList {
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

    #queryResultsList li {
        cursor: pointer;
    }

        #queryResultsList li:hover {
            background-color: #eef4ff;
        }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
    background-color: #007bff !important;
    border-color: #007bff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background-color 0.25s ease;
}

    .btn-primary:hover {
        background-color: #005fcc !important;
    }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: #007bff;
    color: white;
    font-size: 0.95rem;
    text-align: center;
}

    footer a {
        color: white !important;
        text-decoration: underline;
    }

/* ============================================================
   LOADING OVERLAY (Modal Spinner)
   ============================================================ */
#loadingOverlay {
    background-color: rgba(0, 0, 0, 0.55);
}

/* Base spinner override */
.spinner-border {
    width: 4.5rem !important;
    height: 4.5rem !important;
}

/* Enhanced custom spinner */
.custom-spinner {
    border-width: 0.75rem !important; /* thickness */
    border-color: #0d6efd !important; /* primary color */
    border-right-color: transparent !important; /* cut-out effect */
    border-radius: 50%; /* ensure circle */
    box-shadow: 0 0 25px rgba(13,110,253,0.7); /* glow */
}


.g-recaptcha {
    display: inline-block;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 768px) {

    .navbar-brand span {
        font-size: 0.95rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .form-control,
    .form-select {
        font-size: 1rem;
    }

    .btn-primary {
        width: 100%;
    }

    textarea.form-control {
        width: 100%;
    }

    .card-body {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {

    .card {
        border-radius: 0;
    }

    body {
        background-color: #ffffff;
    }
}
