.fidelidade-form-wrap {
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
    color: #333;
}

.fidelidade-form-wrap h2 {
    text-align: center;
    color: #ffffff !important;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.fidelidade-form label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #ffffff;
    font-size: 0.95em;
}

.fidelidade-form input[type="text"],
.fidelidade-form input[type="password"],
.fidelidade-form input[type="email"],
.fidelidade-form input[type="date"],
.fidelidade-form input[type="number"] {
    width: calc(100% - 16px);
    padding: 10px 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
}

.fidelidade-form input:focus {
    border-color: #aa0093;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

.fidelidade-form button[type="submit"] {
    display: block;
    margin: 0 auto;
    border: 1px solid white;
    width: 60%;
    background-color: white;
    color: #2A37AA;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.fidelidade-form button[type="submit"]:hover {
    background-color: #2A37AA;
    color: white;
    transform: translateY(-1px);
}

.fidelidade-form button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.fidelidade-status-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    border: 1px solid transparent;
}

.fidelidade-status-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.fidelidade-status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.fidelidade-status-message pre {
    background-color: rgba(0,0,0,0.05);
    padding: 10px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
    text-align: left;
    font-size: 0.85em;
    margin-top: 10px;
    overflow-x: auto;
}

.fidelidade-results-area {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.fidelidade-results-area h3 {
    font-size: 1.4em;
    color: #444;
    margin-bottom: 15px;
    text-align: center;
}

.fidelidade-results-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fidelidade-results-area li {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    font-size: 0.95em;
    color: #666;
}

.fidelidade-results-area li strong {
    color: #333;
}

.fidelidade-swal-grid-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.fidelidade-swal-grid {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9em;
}

.fidelidade-swal-grid th,
.fidelidade-swal-grid td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.fidelidade-swal-grid thead {
    background-color: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 1;
}

.fidelidade-swal-grid th {
    font-weight: bold;
    color: #555;
}

.fidelidade-swal-grid tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.fidelidade-swal-grid tbody tr:hover {
    background-color: #eef;
}

@media only screen and (max-width: 48em) {
    .fidelidade-form-wrap {
        max-width: 380px !important;
    }
    .fidelidade-form button[type="submit"]{
        width: 80%;
    }
}
