

.payment-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 5px;
}

.payment-label {
    display: block;
    color: #1479ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 7px;
}

.payment-header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 750;
}

.payment-header p {
    margin: 8px 0 0;
    color: #7b8798;
    font-size: 14px;
}




.installment-box {
    margin-top: 20px;

}

.installment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 14px;
}

.installment-label {
    display: block;

    margin-bottom: 4px;

    color: #1479ff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.installment-heading h3 {
    margin: 0;

    color: #182235;

    font-size: 15px;
    font-weight: 700;
}

.installment-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: #eaf3ff;

    font-size: 18px;
}

#parcela {
    width: 100%;
    height: 50px;

    padding: 0 15px;

    border: 1px solid #d7dee8;
    border-radius: 9px;

    background: #ffffff;

    color: #182235;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    outline: none;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

#parcela:hover {
    border-color: #aeb9c8;
}

#parcela:focus {
    border-color: #1479ff;

    box-shadow:
        0 0 0 3px rgba(20, 121, 255, .10);
}

.installment-info {
    margin: 8px 0 0;

    color: #8c97a7;

    font-size: 11px;
}



.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.payment-main {
    min-width: 0;
}




.payment-section {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow:
        0 8px 30px rgba(31, 52, 82, 0.06);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
}

.section-number {
    width: 36px;
    height: 36px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1479ff;
    color: #ffffff;

    border-radius: 50%;

    font-size: 14px;
    font-weight: 800;
}

.section-heading h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 750;
}

.section-heading p {
    margin: 4px 0 0;
    color: #8a95a6;
    font-size: 12px;
}




.card-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 285px;
    margin: 0 auto 30px;
    padding: 10px;

    perspective: 1600px;
}



.creditcard {
    --card-navy-deep: #040b1c;
    --card-navy-mid: #0a2a5e;
    --card-blue: #1479ff;
    --card-blue-glow: #5aa8ff;
    --card-gold: #e6c789;
    --card-gold-deep: #a9812f;

    width: 430px;
    max-width: 100%;
    height: 270px;

    position: relative;

    transform-style: preserve-3d;

    transition:
        transform .6s cubic-bezier(.2, .7, .3, 1);

    margin: 0 auto;
}

.creditcard:hover {
    transform: translateY(-3px);
}

.creditcard .front,
.creditcard .back {
    position: absolute;

    width: 100%;
    height: 100%;

    top: 0;
    left: 0;

    overflow: hidden;

    border-radius: 20px;

    backface-visibility: hidden;

    box-shadow:
        0 2px 4px rgba(7, 22, 47, .35),
        0 20px 40px -10px rgba(7, 22, 47, .5),
        0 0 0 1px rgba(255, 255, 255, .07) inset;

    transition: box-shadow .4s ease;
}

.creditcard:hover .front,
.creditcard:hover .back {
    box-shadow:
        0 4px 10px rgba(7, 22, 47, .4),
        0 28px 55px -10px rgba(7, 22, 47, .6),
        0 0 0 1px rgba(255, 255, 255, .09) inset;
}

.creditcard .front,
.creditcard .back {
    background:
        radial-gradient(130% 150% at 12% -10%, rgba(90, 168, 255, .38), transparent 55%),
        linear-gradient(135deg, var(--card-navy-deep) 0%, var(--card-navy-mid) 48%, var(--card-blue) 100%);
}

.creditcard .back {
    transform: rotateY(180deg);

    background:
        radial-gradient(130% 150% at 88% 110%, rgba(90, 168, 255, .3), transparent 55%),
        linear-gradient(135deg, var(--card-navy-deep) 0%, var(--card-navy-mid) 55%, #0f2f66 100%);
}


.creditcard .front::after,
.creditcard .back::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        repeating-linear-gradient(115deg,
            rgba(255, 255, 255, .04) 0px,
            rgba(255, 255, 255, .04) 1px,
            transparent 1px,
            transparent 3px);

    mix-blend-mode: soft-light;
    pointer-events: none;
}


.creditcard .front::before,
.creditcard .back::before {
    content: "";
    position: absolute;
    inset: -20% -60%;

    background: linear-gradient(75deg,
            transparent 42%,
            rgba(255, 255, 255, .32) 50%,
            transparent 58%);

    transform: translateX(-60%) skewX(-15deg);
    opacity: 0;

    pointer-events: none;
    mix-blend-mode: screen;
}

.creditcard:hover .front::before {
    animation: card-sheen-sweep .9s ease-out;
}

@keyframes card-sheen-sweep {
    0% {
        transform: translateX(-60%) skewX(-15deg);
        opacity: 0;
    }

    30% {
        opacity: .6;
    }

    100% {
        transform: translateX(140%) skewX(-15deg);
        opacity: 0;
    }
}


.card-preview-container.preload .creditcard {
    animation: card-rise .8s cubic-bezier(.16, .8, .3, 1) both;
}

.card-preview-container.preload .front::before {
    animation: card-sheen-sweep 1.3s .45s ease-out both;
}

@keyframes card-rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .creditcard,
    .creditcard .front::before,
    .creditcard .back::before,
    .card-preview-container.preload .creditcard,
    .card-preview-container.preload .front::before {
        animation: none;
        transition: none;
    }
}

.creditcard svg {
    width: 100%;
    height: 100%;
    position: relative;
}




.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    min-width: 0;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 12px;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #dce2ea;
    border-radius: 9px;

    background: #ffffff;

    color: #182235;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.field input:hover,
.field select:hover {
    border-color: #b8c3d3;
}

.field input:focus,
.field select:focus {
    border-color: #1479ff;

    box-shadow:
        0 0 0 3px rgba(20, 121, 255, .10);
}

.field input::placeholder {
    color: #aab3c0;
}



.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 50px;
}

.input-icon {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 19px;

    pointer-events: none;
}





.brand-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;

    margin-top: 18px;
}

.brand-row .field {
    width: 300px;
    max-width: 100%;
}

.ccicon {
    width: 65px;
    height: 45px;

    margin-bottom: 2px;
}



.payment-submit {
    margin-top: 5px;
}

#btn-finalizar {
    width: 100%;
    height: 56px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #1479ff,
            #075dcc
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: .3px;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(20, 121, 255, .20);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

#btn-finalizar:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 25px rgba(20, 121, 255, .28);
}

#btn-finalizar:active {
    transform: translateY(0);
}

.payment-submit p {
    margin: 11px 0 0;

    color: #9aa4b2;

    text-align: center;

    font-size: 10px;
}



#botao {
    text-align: center;

    padding: 16px 0;

    color: #1479ff;

    font-size: 14px;
    font-weight: 700;
}

.lds-ring {
    display: inline-block;

    position: relative;

    width: 20px;
    height: 20px;

    margin-right: 10px;
    margin-bottom: -4px;
}

.lds-ring div {
    box-sizing: border-box;

    display: block;

    position: absolute;

    width: 16px;
    height: 16px;
    margin: 2px;

    border: 3px solid #1479ff;
    border-color: #1479ff transparent transparent transparent;
    border-radius: 50%;

    animation: lds-ring 1.1s cubic-bezier(.5, 0, .5, 1) infinite;
}

.lds-ring div:nth-child(1) {
    animation-delay: -.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {

    .lds-ring div {
        animation: none;
    }
}





.field-container[style*="display:none"],
.field-container[style*="height: 0px"] {
    display: none !important;
}




@media (max-width: 900px) {

    .payment-page {
        padding: 25px 15px;
    }

}


@media (max-width: 600px) {

    .payment-page {
        padding: 15px 10px;
    }

    .payment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-header h1 {
        font-size: 25px;
    }

    .payment-section {
        padding: 20px 16px;

        border-radius: 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .brand-row {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-row .field {
        width: 100%;
    }

    .ccicon {
        align-self: flex-start;
    }

    .card-preview-container {
        min-height: auto;

        padding: 5px 0 25px;
    }

    .creditcard {
        width: 100%;
        height: auto;

        aspect-ratio: 750 / 471;
    }
}


@media (max-width: 400px) {

    .payment-header h1 {
        font-size: 22px;
    }

    .section-heading h2 {
        font-size: 16px;
    }

    .card-preview-container {
        overflow: hidden;
    }

}
.creditcard .front {
    position: relative;
}

#cardfront {
    position: relative;
    z-index: 1;
    display: block;
}

#ccsingle {
    position: absolute;

    top: 13%;
    right: 10.5%;

    width: 23%;
    height: 22%;

    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;

    overflow: hidden;
}

#ccsingle svg {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;
}


#ccsingle img {
    display: block;

    width: 100% !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain;
}



#cardfront .lightcolor,
#cardfront .grey,
#cardback .darkcolor,
#cardback .greydark {
    fill: transparent;
}


#cardfront .darkcolor,
#cardfront .greydark {
    fill: rgba(4, 11, 28, .35);
}


#cardfront text,
#cardback text {
    fill: #ffffff;
    font-family: Inter, -apple-system, "Segoe UI", Arial, sans-serif;
}


#cardfront #svgnumber {
    fill: #ffffff;
    font-family: "SFMono-Regular", "Roboto Mono", "Consolas", ui-monospace, monospace;
    font-size: 46px;
    font-weight: 600;
    letter-spacing: 2px;
}


#cardfront #svgname {
    fill: #ffffff;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}


#cardfront #svgexpire {
    fill: #ffffff;
    font-family: "SFMono-Regular", "Roboto Mono", "Consolas", ui-monospace, monospace;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}


#cardfront #svgsecurityfront {
    fill: #ffffff;
    font-family: "SFMono-Regular", "Roboto Mono", "Consolas", ui-monospace, monospace;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 3px;
    transition: fill .25s ease;
}


.payment-section:has(#securitycode:focus) #cardfront #svgsecurityfront {
    fill: var(--card-blue-glow, #5aa8ff);
}


#cardfront text:not([id]) {
    fill: rgba(255, 255, 255, .55);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

#cardfront #cchip .st2,
#cardfront #cchip path {
    fill: var(--card-gold, #e6c789);
    filter:
        drop-shadow(0 1px 0 rgba(255, 255, 255, .5))
        drop-shadow(0 -1px 1px rgba(0, 0, 0, .35));
}




#cardback .st2 {
    fill: rgba(4, 11, 28, .55);
}

#cardback .st3,
#cardback .st4,
#cardback .st5 {
    fill: rgba(255, 255, 255, .85);
}

#cardback .st11 {
    fill: rgba(255, 255, 255, .18);
}


#cardback text:not([id]) {
    fill: rgba(255, 255, 255, .8);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}


#cardback #svgsecurity {
    fill: var(--card-navy-deep, #040b1c);
    font-family: "SFMono-Regular", "Roboto Mono", "Consolas", ui-monospace, monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 3px;
}


#cardback #svgnameback {
    fill: rgba(4, 11, 28, .75);
    font-family: "SFMono-Regular", "Roboto Mono", "Consolas", ui-monospace, monospace;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
}


.payment-page,
.payment-page * {
    box-sizing: border-box;
}

.payment-page {
  
    clear: both;


    border-radius: 14px;
    padding: 5px;

    color: #182235;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

@media (max-width: 600px) {

    .modalCartao-content {
        padding: 16px !important;
    }
}