:root {
    --primary-color: #CB1E40;
    --primary-hover: #cc3552;
    --light-bg: #f8f9fa;
    --border-radius: 8px;
}

body {
    background-color: #f5f7fa;
    font-family: 'Noto Sans Sora Sompeng', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-magazine {
    background: linear-gradient(135deg, #CB1E40, #cc3552);
}

.btn-magazine {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-magazine:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: white;
}

.btn-outline-magazine {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-magazine:hover {
    background-color: var(--primary-color);
    color: white;
}

.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    padding: 20px 25px;
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #444;
}

.section-title {
    color: #444;
    font-size: 1.2rem;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.progress-container {
    margin-bottom: 30px;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e0e0e0;
}

.required {
    color: #e74c3c;
}

.form-section {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.form-icon {
    color: var(--primary-color);
    margin-right: 6px;
}

.tooltip-icon {
    color: #95a5a6;
    margin-left: 5px;
    cursor: help;
}

.valid-feedback {
    display: none;
}

.is-valid ~ .valid-feedback {
    display: block;
}

.field-help {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.tab-content {
    padding-top: 20px;
}

.contract-section {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
}

.contract-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.contract-data {
    font-size: 0.95rem;
}

.contract-terms {
    height: 200px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.text-magazine{
    color: var(--primary-color)
}

.flatpickr-innerContainer{
    display: block !important;
}

.flatpickr-monthSelect-months {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas para os meses */
    gap: 5px;
    text-align: center;
}

.flatpickr-monthSelect-month {
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease-in-out;
}

.flatpickr-monthSelect-month:hover {
    background: #ddd;
}

.alert-warning {
    background-color: transparent !important;
    border-color: #ff5700;
    color: black;
}

.fa-exclamation-triangle{
    color: #ff5700;
}

.success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}
.success-icon svg {
    width: 100px;
    height: 100px;
    fill: #00BF63;
}

.green-success{
    color: #00BF63;
}

.check-svg svg{
    width: 20px;
    height: 20px;
    fill: #00BF63;
}

.important {
    background-color: #CB1D40;
    color: white;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: left;
}

.important a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.progress-bar-success {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.step-success {
    width: 30px;
    height: 30px;
    background-color: white;
    border: 5px solid #00BF63;
    border-radius: 50%;
    position: relative;
}

.step-line-success {
    width: 50px;
    height: 5px;
    background-color: #00BF63;
}

.arrow-success {
    width: 0;
    height: 0;
    border-left: 15px solid #00BF63;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.border-left-success {
    border-left: 4px solid #00BF63;
}

.text-align{
    text-align: left;
}

.me-3 svg{
    width: 40px;
    height: 40px;
    fill: white;
}

.alert-danger{
    background-color: #CB1D40;
    color: white;
}

.text-important{
    font-size: 25px;
    margin-left: 10px;
    margin-top: 2px;
}

.margin{
    margin-left: 50px;
    margin-bottom: 0;
}

/* Payment CSS */
.credit-card-payment {
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-line-pack: center;
        align-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    min-height: auto;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}

.form-container-payment .field-container-payment:first-of-type {
    grid-area: name;
}

.form-container-payment .field-container-payment:nth-of-type(2) {
    grid-area: number;
}

.form-container-payment .field-container-payment:nth-of-type(3) {
    grid-area: expiration;
}

.form-container-payment .field-container-payment:nth-of-type(4) {
    grid-area: security;
}

.field-container-payment input {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.field-container-payment {
    position: relative;
}

.form-container-payment {
    display: grid;
    grid-column-gap: 10px;
    grid-template-columns: auto auto;
    /*grid-template-rows: 90px 90px 90px;*/
    grid-template-areas: "name name""number number""expiration security";
    /*max-width: 400px;*/
    padding: 15px 20px 20px 20px;
    color: #707070;
}

.field-container-payment input {
    margin-top: 1px;
    padding: 10px;
    font-size: 16px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
}

.ccicon {
    height: 46px;
    position: absolute;
    right: 6px;
    top: calc(50% - 17px);
    width: 60px;
}

/* CREDIT CARD IMAGE STYLING */
.preload * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
}

.container-payment {
    width: 100%;
    max-width: 400px;
    max-height: 251px;
    height: 54vw;
    padding: 20px;
}

#ccsingle {
    position: absolute;
    right: 15px;
    top: 20px;
}

#ccsingle svg {
    width: 100px;
    max-height: 60px;
}

.creditcard svg#cardfront,
.creditcard svg#cardback {
    width: 100%;
    -webkit-box-shadow: 1px 5px 6px 0px black;
    box-shadow: 1px 5px 6px 0px black;
    border-radius: 22px;
}

#generatecard{
    cursor: pointer;
    float: right;
    font-size: 12px;
    color: #fff;
    padding: 2px 4px;
    background-color: #909090;
    border-radius: 4px;
    cursor: pointer;
    float:right;
}

.creditcard .lightcolor,
.creditcard .darkcolor {
    -webkit-transition: fill .5s;
    transition: fill .5s;
}

.creditcard .lightblue {
    fill: #03A9F4;
}

.creditcard .lightbluedark {
    fill: #0288D1;
}

.creditcard .red {
    fill: #ef5350;
}

.creditcard .reddark {
    fill: #d32f2f;
}

.creditcard .purple {
    fill: #ab47bc;
}

.creditcard .purpledark {
    fill: #7b1fa2;
}

.creditcard .cyan {
    fill: #26c6da;
}

.creditcard .cyandark {
    fill: #0097a7;
}

.creditcard .green {
    fill: #66bb6a;
}

.creditcard .greendark {
    fill: #388e3c;
}

.creditcard .lime {
    fill: #d4e157;
}

.creditcard .limedark {
    fill: #afb42b;
}

.creditcard .yellow {
    fill: #ffeb3b;
}

.creditcard .yellowdark {
    fill: #f9a825;
}

.creditcard .orange {
    fill: #ff9800;
}

.creditcard .orangedark {
    fill: #ef6c00;
}

.creditcard .grey {
    fill: #bdbdbd;
}

.creditcard .greydark {
    fill: #616161;
}

/* FRONT OF CARD */
#svgname {
    text-transform: uppercase;
}

#cardfront .st2 {
    fill: #FFFFFF;
}

#cardfront .st3 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
}

#cardfront .st4 {
    font-size: 54.7817px;
}

#cardfront .st5 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
}

#cardfront .st6 {
    font-size: 33.1112px;
}

#cardfront .st7 {
    opacity: 0.6;
    fill: #FFFFFF;
}

#cardfront .st8 {
    font-size: 24px;
}

#cardfront .st9 {
    font-size: 36.5498px;
}

#cardfront .st10 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 300;
}

#cardfront .st11 {
    font-size: 16.1716px;
}

#cardfront .st12 {
    fill: #4C4C4C;
}

/* BACK OF CARD */
#cardback .st0 {
    fill: none;
    stroke: #0F0F0F;
    stroke-miterlimit: 10;
}

#cardback .st2 {
    fill: #111111;
}

#cardback .st3 {
    fill: #F2F2F2;
}

#cardback .st4 {
    fill: #D8D2DB;
}

#cardback .st5 {
    fill: #C4C4C4;
}

#cardback .st6 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
}

#cardback .st7 {
    font-size: 27px;
}

#cardback .st8 {
    opacity: 0.6;
}

#cardback .st9 {
    fill: #FFFFFF;
}

#cardback .st10 {
    font-size: 24px;
}

#cardback .st11 {
    fill: #EAEAEA;
}

#cardback .st12 {
    font-family: 'Rock Salt', cursive;
}

#cardback .st13 {
    font-size: 37.769px;
}

/* FLIP ANIMATION */
.container-payment {
    perspective: 1000px;
}

.creditcard {
    width: 100%;
    max-width: 400px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: -webkit-transform 0.6s;
    -webkit-transition: -webkit-transform 0.6s;
    transition: transform 0.6s;
    transition: transform 0.6s, -webkit-transform 0.6s;
    cursor: pointer;
}

.creditcard .front,
.creditcard .back {
    position: absolute;
    width: 100%;
    max-width: 400px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    color: #47525d;
}

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

.creditcard.flipped {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

/* Footer com logos */
.footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e1e4e8;
  padding: 20px 0;
  margin-top: 30px;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  gap: 40px;
}

.logo {
  height: auto;
}

.magazine-logo {
  width: 180px;
}

.revenda-logo {
  width: 150px;
}

.footer-copyright {
  font-size: 14px;
  color: #6c757d;
  text-align: center;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
  .footer-logos {
    flex-direction: column;
    gap: 20px;
  }

  .magazine-logo,
  .revenda-logo {
    width: 150px;
  }
}

@media (max-width: 450px) {
    .fw-bold{
        font-size: 13px;
    }

    #ccsingle {
        top: 8px;
    }

    .margin{
        margin-left: 0;
        margin-bottom: 0;
    }

}

@media (max-width: 375px) {
    .fw-bold{
        font-size: 10px;
    }

    #ccsingle {
        top: 8px;
    }

    .margin{
        margin-left: 0;
        margin-bottom: 0;
    }

}
