:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --border-color: #d2d2d7;
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --error-color: #e30000;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 18px;
}

.nolita-validacion-container {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px;
    background-color: transparent; /* Permite que se vea el fondo de WP */
}

.nolita-validacion-container * {
    box-sizing: border-box;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

p.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 40px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 12px;
}

.required {
    color: var(--error-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-family);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

/* Radio & Checkbox buttons styled as modern selectable cards */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
    background: #fff;
}

.option-label:hover {
    border-color: var(--text-muted);
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + .option-label {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: var(--primary-hover);
}

button[type="submit"]:active {
    transform: scale(0.98);
}

button[type="submit"]:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.hidden {
    display: none !important;
}

/* Modal styles for disqualification */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

/* Calendar Styles */
.calendar-wrapper {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fbfbfd;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.calendar-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-day-name {
    padding: 10px 0;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    background: #fbfbfd;
}

.calendar-day {
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day.empty {
    background: #f9f9f9;
    cursor: default;
}

.calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
    background: #fafafa;
}

.calendar-day.active {
    background: rgba(0, 113, 227, 0.1);
    font-weight: 600;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.time-slots {
    margin-top: 20px;
}

.time-slots-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.slot {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

.slot:hover:not(.booked) {
    border-color: var(--primary-color);
}

.slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.slot.booked {
    background: #f5f5f7;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .card {
        padding: 24px;
    }
}
