/* Bootstrap */
.btn-group-lg > .btn, .btn-lg {
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-border-radius: 2rem;
}

.form-control, .form-select {
    border-radius: 2rem;
}

/* End Bootstrap */

/* Variables */

:root {
    --primary-black-color: #001c49;
    --primary-red-color: #00631d;
    --primary-yellow-color: #65008d;
    --primary-white-color: white;
    --primary-light-color: rgba(255, 255, 255, 0.7);
    --primary-grey-color: #dbdbdb;
    --primary-mid-grey-color: #f1f1f1;
    --primary-light-grey-color: #f3f3f3;
    --primary-dark-color: #212529;
    --primary-border-radius-size: 2rem;
}

/* End Variables */

/* Lib */

::-moz-selection {
    color: var(--primary-white-color);
    background: var(--primary-black-color);
}

::selection {
    color: var(--primary-white-color);
    background: var(--primary-black-color);
}

a:hover {
    color: var(--primary-yellow-color);
}

.btn {
    border-radius: var(--primary-border-radius-size);
}

body {
    line-height: 1.2;
    word-break: break-word;
    background-color: var(--bs-gray-300);
    font-family: 'Microsoft Sans Serif', Arial, Helvetica, Verdana;
}

.img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

input {
    border-width: 2px !important;
}

label {
    font-size: 14px;
    font-weight: 400;
    width: 100%;
    line-height: 1.5;
}

.primary-color {
    color: var(--primary-black-color);
}

.bg-primary-color {
    background: var(--primary-black-color);
}

.br-radius {
    border-radius: var(--primary-border-radius-size);
}

.form-control, .form-select {
    padding: 8px 16px;
    border: 2px solid var(--primary-grey-color);
    color: var(--primary-black-color);
    font-weight: 500;
    font-size: 14px;
    caret-color: var(--primary-red-color);
    transition: none;
}

.form-control::placeholder {
    color: var(--primary-black-color);
    font-weight: 300;
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--primary-red-color);
    color: var(--primary-black-color);
}

.border-red {
    border-color: red;
}

.btn-pr {
    background-color: var(--primary-black-color);
    border-color: var(--primary-black-color);
    color: var(--primary-white-color);
}

.btn-pr:hover,
.btn-pr:focus {
    background-color: var(--primary-red-color);
    border-color: var(--primary-red-color);
    color: var(--primary-white-color);
}

.messages.alert {
    list-style: none;
    margin: 16px 0;
}

.loader {
    max-width: 50px;
    width: 100%;
    height: 50px;
    margin: 0 auto;
}

.loader svg {
    width: 100%;
    height: 100%;
}

.errorlist {
    /*background-color: var(--bs-danger);*/
    color: var(--bs-danger);
    border: 1px solid lightgray;
    border-radius: 8px;
    font-weight: 500;
    /*list-style: none;*/
    margin-bottom: 8px;
    padding: 8px 24px;
    font-size: 14px;
}

.form-check-input:checked {
    background-color: var(--primary-black-color);
    border-color: var(--primary-black-color);
}

/* End Lib */

/* Glow animation */

.glow-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
    padding: 12px;
    text-align: center;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
}

.glow-animation:hover {
    color: var(--primary-light-color);
}

.glow-animation:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-animation:active {
    color: black;
}

.glow-animation:active:after {
    background: transparent;
}

.glow-animation:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* End Glow animation */

/* Button circle animation */

.button-circle-animation-block {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-circle-animation {
    min-width: 300px;
    min-height: 60px;
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    letter-spacing: 1.3px;
    font-weight: 700;
    color: var(--primary-white-color);
    background: var(--primary-red-color);
    /*background: linear-gradient(90deg, rgba(129, 230, 217, 1) 0%, rgba(79, 209, 197, 1) 100%);*/
    border: none;
    border-radius: 1000px;
    box-shadow: 12px 12px 24px var(--primary-red-color);
    transition: all 0.3s ease-in-out 0s;
    cursor: pointer;
    outline: none;
    position: relative;
    padding: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.button-circle-animation::before {
    content: '';
    border-radius: 1000px;
    min-width: calc(300px + 12px);
    min-height: calc(60px + 12px);
    border: 6px solid var(--primary-yellow-color);
    box-shadow: 0 0 60px var(--primary-yellow-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all .3s ease-in-out 0s;
}

.button-circle-animation:hover, .button-circle-animation:focus {
    color: var(--primary-black-color);
    transform: translateY(-6px);
}

.button-circle-animation:hover::before, .button-circle-animation:focus::before {
    opacity: 1;
}

.button-circle-animation::after {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 100%;
    border: 6px solid var(--primary-yellow-color);
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ring 1.5s infinite;
}

.button-circle-animation:hover::after, .button-circle-animation:focus::after {
    animation: none;
    display: none;
}

@keyframes ring {
    0% {
        width: 30px;
        height: 30px;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* End Button circle animation */

/* Navbar */

.navbar {
    box-shadow: 0 5px 10px rgb(0 0 0 / 10%);
    font-size: 14px;
    font-weight: bold;
    padding: 4px 0;
}

.navbar-divider {
    height: 56px;
}

.navbar .navbar-brand {
    height: 48px;
    padding: 0;
}

.navbar .navbar-brand .img {
    object-fit: contain;
}

.navbar-nav .nav-link {
    padding-left: 16px !important;
    padding-right: 16px !important;
    border-radius: var(--primary-border-radius-size);
}

.navbar-nav .nav-link:hover {
    background-color: var(--primary-white-color);
    color: var(--primary-black-color) !important;
}

/* End Navbar */

/* Home */

.page-header {
    /*height: 720px;*/
    padding: 64px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background-image: url('/front_end/static/assets/images/pages/home-banner.jpg');*/
    background-image: url('/front_end/static/assets/newmexicopermit_online/images/bg_truck.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.page-header-first {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-header-second {
    background-color: var(--primary-light-grey-color);
    border-radius: var(--primary-border-radius-size);
    padding: 32px 24px;
}

/*.page-header-second form .home-form-inputs div:last-child {*/
/*    display: flex;*/
/*    flex-direction: row-reverse;*/
/*}*/

.page-header-first .card {
    border: none;
    background-color: var(--primary-light-color);
}

.page-header-first .card .card-header {
    color: var(--primary-light-color);
}

.page-header-first .card .list-group-item {
    background-color: var(--primary-light-color);
}

.accordion-button {
    color: var(--primary-red-color);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-yellow-color);
    background-color: rgba(255, 255, 0, 0.25);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 0, 0.25);
    background-color: rgba(255, 255, 0, 0.25);
}

.section-three {
    background-color: var(--primary-grey-color);
    padding-bottom: 80px;
    box-shadow: 0 8px 16px rgb(0 0 0 / 12%);
}

.dotted-border {
    border: 1px dashed var(--primary-dark-color);
    transform: translateY(-30px);
    max-width: 70%;
    margin: 0 auto;
}

.team-img .img {
    object-fit: contain;
    overflow: hidden;
    border-radius: var(--bs-border-radius-2xl) !important;
}

.section-five {
    background-color: var(--primary-grey-color);
    padding: 40px 0;
    box-shadow: 0 8px 16px rgb(0 0 0 / 12%);
}

.section-six .container {
    background-color: var(--primary-grey-color);
    padding-top: 80px;
    padding-bottom: 40px;
    box-shadow: 0 8px 16px rgb(0 0 0 / 12%);
    text-align: center;
    border-radius: var(--primary-border-radius-size);
}

.section-six-header-img {
    max-width: 400px;
    margin: 0 auto;
    transform: translateY(50px);
}

/* End Home */

/* Footer */

.footer {
    background-color: var(--primary-black-color);
    padding: 32px 0;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul a {
    color: var(--primary-white-color);
    text-decoration: none;
}

.footer ul a:hover {
    text-decoration: underline;
}

/* End Footer */


/* Carrier form */

.carrier-form-block {
    background-color: var(--primary-mid-grey-color);
    max-width: 1000px;
    margin: 32px auto;
    border-radius: var(--primary-border-radius-size);
    box-shadow: 0 4px 16px 0 rgb(0 0 0 / 24%);
}

#carrier-form legend {
    font-size: 14px;
    margin-bottom: 2px;
}

#carrier-form .custom-form-row {
    margin-bottom: 16px;
}

#id_trip {
    display: block;
    padding: 8px;
}

#id_trip > div > label {
    display: flex;
    align-items: center;
}

#id_trip > div:not(:last-child) > label {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid lightgray;
}


#id_trip > div > label > input {
    margin: 0 !important;
    margin-right: 8px !important;
}

#carrier-form .stop-point-remove-btn {
    position: absolute;
    top: -4px;
    right: 8px;
    height: unset;
    width: unset;
    font-size: 12px;
    font-weight: bold;
}

.carrier-form-block .form-check {
    display: flex;
    justify-content: space-between;
    padding: 0;
    border-radius: 8px;
}

.carrier-form-block label {
    display: flex;
    font-weight: 500;
    font-size: 14px;
}

.custom-form-row label {
    align-items: center;
}

.carrier-form-block input[type="radio"] {
    width: 24px;
    height: 24px;
    padding: unset;
    margin: 10px 10px 10px 0 !important;
    background-color: unset;
}

/*#vehicle_form .row:nth-of-type(1) .remove-vehicle-btn {*/
/*    display: none;*/
/*}*/

#carrier-form .row {
    margin-left: -4px;
    margin-right: -4px;
}

#carrier-form .row > * {
    padding-left: 4px;
    padding-right: 4px;
}

#request-info {
    font-size: 14px;
    border: 2px solid var(--primary-grey-color);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    min-height: 75px;
}

.carrier-form-block .btn-group a:hover {
    background-color: var(--primary-white-color) !important;
    color: var(--primary-dark-color);
}

.form-check-input {
    transition: all 0.05s ease-in-out;
    box-shadow: none !important;
    max-width: 30px;
    width: 100%;
    height: 30px;
    margin-right: 12px;
}

/*.carrier-form-block button[type="button"] {*/
/*    max-width: 170px;*/
/*    width: 100%;*/
/*}*/

/* Start Canvas */
#canvas {
    position: relative;
}

canvas#newSignature,
canvas#canvas_hidden {
    background-color: white;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bs-gray-400);
    max-height: 200px;
}

canvas#newSignature {
    z-index: 10;
}

canvas#canvas_hidden {
    z-index: -10;
    position: absolute;
    left: 0;
}

/* End Canvas */

/* Payment Form */
.cards-block {
    display: flex;
    /*align-items: center;*/
    /*justify-content: center;*/
    margin-bottom: 16px;
    border-bottom: 1px solid var(--bs-gray-400);
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.cards-block .card-img-block {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-block .card-img-item {
    max-width: 80px;
    padding: 0 8px;
    width: 100%;
}

.cards-block .card-img-item:first-child {
    padding-left: 0;
}

.cards-block .card-img-item:not(:last-child) {
    border-right: 2px solid grey;
}

.cards-block .card-img-item .img {
    height: 22px;
    object-fit: contain;
}

.authorize-net-logo {
    max-width: 150px;
}

/* End Payment Form */

/* End Carrier form */

/* Thank you */

.thanks-block i {
    font-size: 100px;
    color: #009257;
    margin: 30px auto;
    text-align: center;
    display: block;
}

/* End Thank you */

@media only screen and (max-width: 992px) {
    .container {
        max-width: 100%;
    }
}

@media only screen and (min-width: 768px) {
    .w-sm-20 {
        width: 20% !important;
    }
}
