.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.custom-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    color: #666;
    cursor: pointer;
}

.custom-modal h2, .custom-modal h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.custom-modal form {
    display: flex;
    flex-direction: column;
}

.custom-modal.show {
    display: flex;
}

.custom-modal input[type="text"],
.custom-modal input[type="tel"],
.custom-modal input[type="number"],
.custom-modal input[type="password"] {
    font-size: 16px;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.custom-modal input[type="text"]:focus,
.custom-modal input[type="tel"]:focus,
.custom-modal input[type="number"]:focus,
.custom-modal input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
}

.custom-modal button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.custom-modal button[type="submit"]:hover {
    background-color: #0056b3;
}

#cardLogo img {
    height: 40px;
    margin-top: 10px;
}

.custom-modal-stamps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    overflow: hidden;
}

.custom-modal-stamps img {
    height: 30px;
    width: 70px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.custom-modal-stamps img:hover {
    opacity: 1;
}

.custom-modal-separator {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(131, 133, 134, 0.75), rgba(0,0,0,0));
    margin: 20px 0;
}

.tab {
    display: flex;
    justify-content: space-around;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.tab button {
    background-color: transparent;
    color: #007bff;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-size: 16px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: -2px;
}

.tab button:hover, .tab button.active {
    background-color: #007bff;
    color: white;
    border-radius: 5px 5px 0 0;
    border-bottom: 2px solid #007bff;
}

.tabcontent {
    display: none;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-top: none;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spinner {
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 5px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.custom-modal button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal button[type="submit"]:disabled {
    background-color: #007bff;
    opacity: 0.5;
}

.tablinks {
    flex: 1;
    margin: 5px;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .tab button {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tablinks {
        padding: 8px;
        font-size: 12px;
    }
}

.tab button.active {
    background-color: #007bff;
    color: white;
}

.tablinks svg {
    margin-right: 5px;
    vertical-align: middle;
}

