/* wp-coach-appointments/assets/css/frontend.css */

.wp-coach-calendar-container * {
    box-sizing: border-box;
}

.wp-coach-calendar-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.wp-coach-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.wp-coach-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.wp-coach-header p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.wp-coach-content {
    display: flex;
    flex-wrap: wrap;
}

/* Calendar Column */
.wp-coach-calendar-wrap {
    flex: 1 1 350px;
    padding: 24px;
    border-right: 1px solid #eee;
}

.wp-coach-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.wp-coach-month-nav button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    color: #0060E6;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-coach-month-nav button:hover {
    background: #f0f7ff;
    border-color: #0060E6;
}

.wp-coach-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.wp-coach-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.wp-coach-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.wp-coach-day.empty {
    cursor: default;
}

.wp-coach-day.past {
    color: #ccc;
    cursor: not-allowed;
}

.wp-coach-day.available:hover {
    background-color: #f0f7ff;
    color: #0060E6;
}

.wp-coach-day.selected {
    background-color: #0060E6;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 96, 230, 0.4);
    transform: scale(1.05);
}

/* Slots Column */
.wp-coach-slots-wrap {
    flex: 1 1 250px;
    padding: 24px;
    background: #fafafa;
    min-width: 250px;
}

.wp-coach-slots-wrap h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.1em;
}

.wp-coach-slots-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Scrollbar para slots */
.wp-coach-slots-container::-webkit-scrollbar {
    width: 6px;
}
.wp-coach-slots-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.wp-coach-slot-btn {
    background: #fff;
    border: 1px solid #0060E6;
    color: #0060E6;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 1em;
}

.wp-coach-slot-btn:hover {
    border-width: 2px;
    padding: 11px; /* Compensa el border-width visualmente */
}

/* Formulario */
.wp-coach-form-wrap {
    padding: 30px;
}

.wp-coach-form-wrap h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

#wp-coach-back-cal {
    background: none;
    border: none;
    color: #0060E6;
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    font-size: 1em;
}

#wp-coach-back-cal:hover {
    text-decoration: underline;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0060E6;
    outline: none;
    box-shadow: 0 0 0 1px #0060E6;
}

.checkbox-group > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.consent-text {
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
}

#wp-coach-submit-btn {
    background: #0060E6;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#wp-coach-submit-btn:hover {
    background: #004bba;
}

#wp-coach-form-msg {
    margin-top: 15px;
    font-weight: 500;
}

.wp-coach-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Intl Tel Input override */
.iti {
    display: block !important;
    width: 100%;
}

@media (max-width: 600px) {
    .wp-coach-content {
        flex-direction: column;
    }
    .wp-coach-calendar-wrap {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}
