html,
body {
    font-family: 'Merriweather', sans-serif !important;
    background-color: #F4F7F6;
    height: 100%;
}
#wrap {
    min-height: 100%;
}

#main {
    overflow: auto;
    padding-bottom: 72px;
}

/* must be same height as the footer */

#footer {
    position: relative;
    margin-top: -72px;
    /* negative value of footer height */
    height: 72px;
    clear: both;
}

/* navbar settings */
.bg-primary {
    background-color: #002B4D !important;
}

#logged_out {
    padding: 0 0.5em 0.6em;
}


#nav-heading {
    padding-left: 0.5em;
}

.container{
    padding-top: 20px;
}

.language-select{
    border: 1px solid #F4F7F6;
    display: inline-block;
    padding: 6px 12px;
    margin-right: 10px;
    cursor: pointer;
    color: #F4F7F6;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.language-select:hover{
    background-color: rgba(255,255,255,0.15);
}

/* Form card */
.form-card {
    max-width: 680px;
    margin: 1.5rem auto;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.form-heading {
    color: #002B4D;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.form-intro {
    color: #555;
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.form-intro a {
    color: #002B4D;
    font-weight: 600;
}

/* Form inputs */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #002B4D;
    box-shadow: 0 0 0 3px rgba(0,43,77,0.12);
}

.form-text {
    font-size: 0.82rem;
    color: #777;
    margin-top: 0.35rem;
}

/* Anonymous switch */
.form-switch {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 1rem 1.25rem 1rem 3.75rem;
    margin-bottom: 1.25rem !important;
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
    margin-right: 0.5rem;
}

.form-switch .form-check-input:checked {
    background-color: #002B4D;
    border-color: #002B4D;
}

.form-switch .form-check-label {
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Submit button */
.btn-submit {
    background-color: #002B4D;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #003d6b;
    color: #fff;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Alert */
.alert-danger,
.alert-success {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: #002B4D;
}

.modal-body {
    padding: 1.5rem;
    font-size: 1rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-card {
        margin: 1rem 0.5rem;
        padding: 1.5rem 1.25rem;
        border-radius: 10px;
    }

    .form-heading {
        font-size: 1.35rem;
    }

    .form-switch {
        padding: 0.85rem 1rem 0.85rem 3rem;
    }
}
