/* Custom styles for card-search application */

.txt-white {
    color: #ffffff;
}

.txt-grey {
    color: #505050;
}

.txt-light-grey {
    color: #636161;
}

.txt-very-light-grey {
    color: #808080;
}

.txt-light-blue {
    color: #4b6089;
}

.txt-dark-blue {
    color: #1b1e2f;
}

.txt-magenta {
    color: #d93282;
}

.txt-red {
    color: #de6262;
}

.txt-dark-indigo {
    color: #565158;
}

.txt-light-indigo {
    color: #a091a4;
}

.txt-green {
    color: #49bd90;
}

.txt-pink {
    color: #ff8bbe;
}

.lighter {
    font-weight: 300;
}

.semibold {
    font-weight: 600;
}

body {
    background: #393f59 url(/images/bkd_mobile.jpg) no-repeat fixed top;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: #333;
    min-height: 100vh;
    font-family: "Open Sans", sans-serif;
    line-height: 1.5;
}

/* Header styling */
header {
    background-color: rgba(0, 0, 0, 0.2);
    margin-bottom: 0 !important;
    padding: 10px 0;
}

.navbar {
    background-color: transparent !important;
    box-shadow: none;
}

.navbar-brand {
    font-size: 2em;
    font-family: Comfortaa, cursive;
    color: #ccc !important;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: white !important;
}

/* Back button */
.back-button {
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    text-decoration: none;
}

.back-button:hover {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
}

/* Card styling */
.card {
    border-radius: 8px;
    overflow: hidden;
    border: none;
    margin-top: 40px;
    margin-bottom: 40px;
}

.card-header {
    background-color: white !important;
    border-bottom: none;
    padding-bottom: 0;
}

.card-header h1 {
    color: #d93282;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
}

.card-header h1 span {
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 1em auto;
    padding-left: 1.4em;
    line-height: 1.2;
}

.card-header h1.card-search span {
    background-image: url('/images/credit-card.svg');
}

.card-header h1.contact-us span {
    background-image: url('/images/envelope.svg');
}

.card-body {
    padding: 30px;
}

.shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Form styling */
.form-control {
    border-radius: 4px;
    padding: 12px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: #d93282;
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

/* Card number input styling */
.card-number-group {
    display: flex;
    gap: 5px;
}

.card-number-input {
    text-align: center;
    font-family: monospace;
}

#card_search_first4 {
    text-align: center;
    width: 16ch;
}

#card_search_next2 {
    text-align: right;
    width: 8ch;
    border-right: none !important;
    border-bottom-right-radius: 0px !important;
    border-top-right-radius: 0px !important;
}

#card_search_middle2 {
    border-bottom-left-radius: 0px !important;
    border-top-left-radius: 0px !important;
    width: 8ch;
    margin-left: 0px !important;
    border-left-color: #aaa !important;
    background-color: #ddd !important;
}

#card_search_middle4 {
    width: 16ch;
    text-align: center !important;
    background-color: #ddd !important;
}

#card_search_last4 {
    text-align: center;
    width: 16ch;
}

.card-number-inputs span {
    background: #ccc !important;
}

tr.tr-reference td, tr.tr-reference th {
    background-color: #d93282;
    color: white;
    font-weight: 600;
}

tr.tr-reference th {
    border-right: 1px solid #ccc;
}

/* Form validation styling */
.invalid-feedback ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

form ul.form-error-message {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

/* Button styling */
.btn-primary {
    background-color: #d93282;
    border-color: #d93282;
    border-radius: 4px;
    padding: 10px 30px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #d81b60;
    border-color: #d81b60;
}

.btn-search {
    width: 100%;
}

/* Logo sizing in navbar */
.navbar-brand img {
    max-height: 40px;
    width: auto;
}

/* Footer styling */

footer {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border-top: none;
    margin-top: auto !important;
    padding: 20px 0;
}

footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Security notice */
.security-notice {
    text-align: center;
    margin: 20px;
}

/* Payment icons */
.payment-icons {
    text-align: center;
    margin: 20px 0;
}

.payment-icons img {
    height: 30px;
    margin: 0 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 30px;
    }
    
    .card {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* Language dropdown */
.dropdown-toggle {
    color: white !important;
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dropdown-menu {
    min-width: 180px;
}

/* reCAPTCHA alignment */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
