﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.field-validation-error {
    color: red;
}

field-validation-valid {
    display: none;
}

.validation-summary-valid {
    display: none;
}

.validation-summary-error {
    color: red;
}

.submit-progress-bg {
    background-color: lightgray;
    opacity: .5;
}

.submit-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    height: 6em;
    padding-top: 2.3em;
    z-index: 1;
    /* The following properties are the ones most likely to change */
    width: 20em;
    /* Set 'margin-left' to a negative number that is 1/2 of 'width' */
    margin-left: -10em;
    padding-left: 2.1em;
    background-color: black;
    color: white;
    -webkit-border-radius: 0.4em;
    -moz-border-radius: 0.4em;
    border-radius: 0.4em;
    box-shadow: 0.4em 0.4em rgba(0,0,0,0.6);
    -webkit-box-shadow: 0.4em 0.4em rgba(0,0,0,0.6);
    -moz-box-shadow: 0.4em 0.4em rgba(0,0,0,0.6);
}

/* Changing style for spinner */
.submit-progress {
    padding-top: 2em;
    width: 25em;
    margin-left: -12.5em; /* Set to a negative number that is 1/2 of the width */
}

.submit-progress i {
    margin-right: 0.5em;
}

.hidden{
    display:none;
}

.header-container {
    background-color: #2A6EBB;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Add this to justify content */
    padding: 10px;
    height: 100px; /* Example fixed height */
}

.header-container .logo {
    flex: 0 0 auto; /* Logo does not grow or shrink */
    margin-right: 20px; /* Adjust margin as needed */
}

.header-container .logo img {
    width: 216.5px; /* Adjusts the logo height */
    max-height: 100px;
    height: auto; /* Ensures the logo width is contained within the header */
    padding: 0.25em; /* Adds a small amount of space around the logo to keep it contained*/
}

.header-container .page-title {
    flex-grow: 1; /* Allows the title to grow and take available space */
    text-align: center; /* Center the title text */
    margin-right: 20px; /* Add some margin to the right */
}

/*Class to make Inputs look like Labels*/
.label-like-input {
    border: none;
    background-color: transparent;
    color: #2A6EBB;
    font-size: 1em;
    font-weight: bold;
    padding: 0;
    margin: 0;
    width: 100%;
}


/* Responsive adjustments for header*/
@media (max-width: 768px) {
    .header-container {
        height: 80px; /* Smaller header on mobile */
        text-align: center;
    }

    .header-container .logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .header-container .logo img {
        max-height: 80px;
        width: 174px;
        height: 60%;
    }

    .header-container .page-title {
        display: none;
    }
}

.nowrap {
    white-space: nowrap;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
}

    /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
    .active, .accordion:hover {
        background-color: #ccc;
    }

/* Style the accordion panel. Note: hidden by default */
.panel {
    padding: 0 18px;
    background-color: white;
    display: none;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1rem;
}

.form-inline .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
}

.form-row > .col {
    padding-left: 5px;
    padding-right: 5px;
}

label {
    margin-bottom: 0.5rem;
}

.optout-code-error {
    font-family: 'JetBrains Mono', 'Cascadia Mono', 'Fira Mono', Consolas, monospace;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}
