/* Public CSS */
.agenda-facil-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.agenda-facil-steps {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.agenda-facil-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    position: relative;
    opacity: 0.5;
}

.agenda-facil-step.active {
    opacity: 1;
    font-weight: bold;
}

.agenda-facil-step.completed {
    opacity: 0.8;
}

.agenda-facil-step::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 20px;
    height: 2px;
    background: #ddd;
    transform: translateY(-50%);
}

.agenda-facil-step:last-child::after {
    display: none;
}

.agenda-facil-step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #f1f1f1;
    margin-right: 5px;
}

.agenda-facil-step.active .agenda-facil-step-number {
    background: #0073aa;
    color: #fff;
}

.agenda-facil-step.completed .agenda-facil-step-number {
    background: #46b450;
    color: #fff;
}

.agenda-facil-form-group {
    margin-bottom: 20px;
}

.agenda-facil-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.agenda-facil-form-group input[type="text"],
.agenda-facil-form-group input[type="email"],
.agenda-facil-form-group input[type="tel"],
.agenda-facil-form-group select,
.agenda-facil-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.agenda-facil-form-group textarea {
    min-height: 100px;
}

.agenda-facil-services {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.agenda-facil-service {
    flex: 0 0 calc(50% - 20px);
    margin: 0 10px 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agenda-facil-service:hover {
    background: #f1f1f1;
    border-color: #ddd;
}

.agenda-facil-service.selected {
    background: #0073aa;
    border-color: #006799;
    color: #fff;
}

.agenda-facil-service-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.agenda-facil-service-duration {
    font-size: 0.9em;
    color: #666;
}

.agenda-facil-service.selected .agenda-facil-service-duration {
    color: #eee;
}

.agenda-facil-datepicker {
    margin-bottom: 20px;
}

.agenda-facil-timeslots {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.agenda-facil-timeslot {
    flex: 0 0 calc(20% - 10px);
    margin: 0 5px 10px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agenda-facil-timeslot:hover {
    background: #f1f1f1;
    border-color: #ddd;
}

.agenda-facil-timeslot.selected {
    background: #0073aa;
    border-color: #006799;
    color: #fff;
}

.agenda-facil-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.agenda-facil-error {
    color: #d63638;
    padding: 10px;
    background: #ffebe8;
    border: 1px solid #d63638;
    border-radius: 4px;
    margin-bottom: 20px;
}

.agenda-facil-success {
    color: #46b450;
    padding: 10px;
    background: #ecf7ed;
    border: 1px solid #46b450;
    border-radius: 4px;
    margin-bottom: 20px;
}

.agenda-facil-loading {
    text-align: center;
    padding: 20px;
}

.agenda-facil-loading::after {
    content: "...";
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

.agenda-facil-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agenda-facil-services-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.agenda-facil-services-list li:last-child {
    border-bottom: none;
}

.agenda-facil-services-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.agenda-facil-services-grid-item {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.agenda-facil-services-grid-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

@media screen and (max-width: 782px) {
    .agenda-facil-service {
        flex: 0 0 calc(100% - 20px);
    }
    
    .agenda-facil-timeslot {
        flex: 0 0 calc(33.333% - 10px);
    }
    
    .agenda-facil-services-grid-item {
        flex: 0 0 calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    .agenda-facil-timeslot {
        flex: 0 0 calc(50% - 10px);
    }
    
    .agenda-facil-services-grid-item {
        flex: 0 0 calc(100% - 20px);
    }
}
