* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
    position: relative;
}

.container {
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    padding: 60px 68px 40px;
    width: 100%;
    max-width: 750px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 80px;
}

h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 28px;
    text-align: center;
}

h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 28px;
    text-align: center;
}

p {
    color: white;
    font-size: 17px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.select-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.select-group {
    flex: 1;
    min-width: 250px;
}

.form-control {
    width: 100%;
    height: 50px;
    border-radius: 4px;
    border: none;
    background-color: #333;
    color: #fff;
    padding: 16px 20px;
    font-size: 16px;
    outline: none;
}

.form-select {
    width: 100%;
    height: 50px;
    border-radius: 4px;
    border: none;
    background-color: #333;
    color: #fff;
    padding: 16px 20px;
    font-size: 16px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.form-control:focus, .form-select:focus {
    background-color: #454545;
}

.form-control::placeholder {
    color: #8c8c8c;
}

.form-select option {
    background-color: #333;
    color: #fff;
    padding: 10px;
}

.btn {
    width: 100%;
    height: 50px;
    background-color: #422D4B;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #33223a;
}

.text-retro-1 {
    color: white;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.75);
}

/* Estilos para el spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #422D4B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 16px;
}

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

/* Estilos para el card de código */
.code-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.code-overlay.show {
    opacity: 1;
    visibility: visible;
}

.code-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.code-overlay.show .code-card {
    transform: scale(1);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.check-icon {
    width: 40px;
    height: 40px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.code-header h3 {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

.code-content {
    margin-bottom: 30px;
}

.code-number {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.service-name {
    color: #888;
    font-size: 14px;
}

.code-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-copy, .btn-accept {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-copy {
    background-color: #333;
    color: #fff;
}

.btn-copy:hover {
    background-color: #555;
}

.btn-accept {
    background-color: #422D4B;
    color: #fff;
}

.btn-accept:hover {
    background-color: #33223a;
}

@media (max-width: 740px) {
    .container {
        padding: 30px 20px;
    }
    
    .select-container {
        flex-direction: column;
        gap: 16px;
    }

    .select-group {
        min-width: 100%;
    }

    .code-actions {
        flex-direction: column;
    }

    .btn-copy, .btn-accept {
        min-width: 100%;
    }
}