/**
 * Payment System Styles
 * Matches WordPress theme design
 */

:root {
    --color-theme: #b21b1b;
    --color-theme-bg: #e0d8d8;
    --color-default: #262424;
}

body {
    font-family: 'Rubik', sans-serif;
    color: var(--color-default);
    background-color: #f5f5f5;
}

a {
    color: var(--color-theme);
}

a:hover {
    color: var(--color-theme);
}

b, strong {
    font-weight: 500 !important;
}

.page_content-wrap {
    min-height: 60vh;
    padding-block: 1rem;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.aps_app-hdr {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: #ddd 1px solid;
    margin-bottom: 2rem;
    color: var(--color-theme);
}

.brand_logo {
    display: block;

    img {
        display: block;
        width: auto;
        height: calc(3.25rem + .75vw);
    }
}

.breadcrumb_wrap {
    font-size: .8rem;
    font-weight: 300;
}

.page_content-inner {
    background: white;
    padding: 2rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.pg_header-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.pg_header-wrap h2 {
    color: var(--color-theme);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    padding: 0 !important;
}

.breadcrumb-item a {
    color: var(--color-theme);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--color-default);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: #6c757d;
}

/* Form Styles */
.payment_form-wrap {

}

.payment_form-wrap h2,
.payment_form-wrap h3 {
    color: var(--color-theme);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.payment_form-wrap h2:first-child {
    margin-top: 0;
}

.form-group {
    margin-bottom: calc(1rem + 0.25vw);
    text-align: left;
}

.form-group label {
    font-size: 0.85em;
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
    color: var(--color-default);
}

.form-control {
    display: block;
    width: 100%;
    height: 3em;
    padding: 0.5em 1.25em;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid rgb(190.3333333333, 174.1666666667, 174.1666666667);
    border-radius: 0.2rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--color-theme);
    outline: 0;
    box-shadow: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    border-width: 2px;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.invalid-feedback.d-block {
    display: block !important;
}

select.form-control {
    width: 100%;
    padding-right: 2rem !important;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat calc(100% - 1rem) 53% !important;
    background-size: 1em !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

select.form-control::-ms-expand {
    display: none !important;
}

.card_info-img {
    display: block;
    margin: 2rem 0 1.5rem;
}

.cvv_info {
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 1rem;
}

.cvv_info small {
    display: block;
    font-size: 100%;
    font-weight: 300;
}

.card_expiry-wrap {
    display: flex;
}

.card_expiry-wrap select:first-of-type {
    border-right: none;
    border-radius: 0.2rem 0 0 0.2rem;
}

.card_expiry-wrap select:last-of-type {
    border-radius: 0 0.2rem 0.2rem 0;
}

/* Button Styles */
.btn-theme {
    color: white;
    background: var(--color-theme);
    border-color: var(--color-theme);
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.15s ease-in-out;
}

.btn-theme:hover {
    color: white;
    background: rgb(155.8585365854, 23.6414634146, 23.6414634146);
    border-color: rgb(155.8585365854, 23.6414634146, 23.6414634146);
    text-decoration: none;
}

.btn-submit {
    min-width: 150px;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: var(--color-theme);
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-heading {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert hr {
    margin: 0.3rem 0 0.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.errorsListing {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.85rem;
    font-weight: 400;
    list-style: disc;
}

.errorsListing li {
    margin-bottom: 0.25rem;
}

.errorsListing a {
    color: currentColor;
    text-decoration: none;
}

.errorsListing a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.mb-5 {
    margin-bottom: 3rem !important;
}

.mb2 {
    margin-bottom: 2rem !important;
}

.mt2 {
    margin-top: 2rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt1-5 {
    margin-top: 1.5rem !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

select,
select.form-control {
    width: 100%;
    padding-right: 2rem !important;
    background: white url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 28" width="46" height="28" xml:space="preserve"><style type="text/css">polyline{fill:none;stroke:%23801a1a;stroke-width:4;}</style><polyline points="3,4 23,24 43,4 "/></svg>') no-repeat calc(100% - 1rem) 53% !important;
    background-size: 1em !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

select::-ms-expand,
select.form-control::-ms-expand {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .page_content-inner {
        padding: 1rem;
    }

    .text-right {
        text-align: center !important;
    }

    .btn-submit {
        width: 100%;
    }
}

