/* Credit Card Styles */
.contenedor {
    width: 100%;
    max-width: 400px;
    height: 280px;
    margin: auto;
    perspective: 1000px;
}

.creditcard {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.creditcard.flipped {
    transform: rotateY(180deg);
}

.front, .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.front {
    z-index: 2;
}

.back {
    transform: rotateY(180deg);
}

.front svg, .back svg {
    width: 100%;
    height: 100%;
}

/* Card styles */
.lightcolor.grey {
    fill: #4a5568;
    transition: fill 0.3s ease;
}

.darkcolor.greydark {
    fill: #2d3748;
    transition: fill 0.3s ease;
}

#ccsingle, .ccicon {
    transition: opacity 0.3s ease;
}

.st0 {
    fill: none;
}

.st2 {
    fill: #FFFFFF;
}

.st3 {
    font-family: 'Courier New', Courier, monospace;
}

.st4 {
    font-size: 36px;
    letter-spacing: 4px;
}

.st5 {
    font-family: 'Courier New', Courier, monospace;
}

.st6 {
    font-size: 18px;
    letter-spacing: 1px;
}

.st7 {
    font-size: 32px;
    letter-spacing: 6px;
}

.st8 {
    opacity: 0.6;
}

.st9 {
    font-size: 16px;
}

.st10 {
    letter-spacing: 0.5px;
}

.st11 {
    fill: #E5E5E5;
    opacity: 0.5;
}

.st12 {
    fill: #999999;
}

.st13 {
    font-size: 14px;
}

#ccsingle {
    position: absolute;
    right: 15px;
    top: 20px;
    z-index: 10;
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ccsingle img,
#ccsingle svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.ccicon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 35px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccicon img,
.ccicon svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
}

/* Input container adjustments for credit card page */
.inp-container {
    position: relative;
    margin-bottom: 0;
}

.inp-container input,
.inp-container select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.inp-container input:focus,
.inp-container select:focus {
    outline: none;
    border-color: var(--gral-color, #A9040E);
}

.inp-container label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: #718096;
    font-size: 14px;
    background: white;
    padding: 0 4px;
}

.inp-container input:focus + label,
.inp-container input:not(:placeholder-shown) + label,
.inp-container select:focus + label,
.inp-container select:valid + label {
    top: 0;
    font-size: 12px;
    color: var(--gral-color, #A9040E);
}

.container-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container-card button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--gral-color, #A9040E);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.container-card button[type="submit"]:hover {
    background: #8a0309;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 4, 14, 0.3);
}

.container-card .small {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 10px;
}

.container-card hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 10px 0 20px 0;
}

