/* ── EHTYMODEL RDV — Front CSS ── */
.erdv-app {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    position: relative;
}

/* Steps */
.erdv-step__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.erdv-back {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    display: inline-block;
}
.erdv-back:hover { color: #000; }

/* Services */
.erdv-services {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.erdv-service-btn {
    flex: 1;
    min-width: 160px;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-align: center;
}
.erdv-service-btn:hover,
.erdv-service-btn.active {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Calendar */
.erdv-calendar {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.erdv-calendar__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}
.erdv-calendar__nav button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}
.erdv-calendar__nav button:hover { background: #f0f0f0; }
#erdv-month-label { font-weight: 600; font-size: 15px; }

.erdv-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 12px;
}
.erdv-cal-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    padding: 4px 0 8px;
    text-transform: uppercase;
}
.erdv-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    cursor: default;
    color: #ccc;
}
.erdv-cal-day.available {
    color: #1a1a1a;
    cursor: pointer;
    font-weight: 500;
}
.erdv-cal-day.available:hover { background: #f0f0f0; }
.erdv-cal-day.selected { background: #000; color: #fff; }
.erdv-cal-day.today { border: 2px solid #000; color: #000; }
.erdv-cal-day.today.selected { border-color: transparent; }

/* Slots */
.erdv-slots__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
}
.erdv-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.erdv-slot-btn {
    padding: 10px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.erdv-slot-btn:hover { border-color: #000; }
.erdv-slot-btn.selected { border-color: #000; background: #000; color: #fff; }

/* Form */
.erdv-summary {
    background: #f8f8f8;
    border-left: 3px solid #000;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
}
.erdv-form__row { display: flex; gap: 12px; }
.erdv-form__row .erdv-form__group { flex: 1; }
.erdv-form__group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}
.erdv-form__group label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #444;
}
.erdv-form__group input,
.erdv-form__group textarea {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .15s;
    outline: none;
}
.erdv-form__group input:focus,
.erdv-form__group textarea:focus { border-color: #000; }

/* Buttons */
.erdv-btn-primary {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}
.erdv-btn-primary:hover { background: #222; }
.erdv-btn-primary:disabled { background: #999; cursor: not-allowed; }

/* Stripe */
.erdv-stripe-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}
.erdv-pay__info { font-size: 14px; color: #555; margin-bottom: 16px; }
.erdv-pay__secure { text-align: center; font-size: 12px; color: #999; margin-top: 12px; }
.erdv-pay__confirm-info { font-size: 14px; color: #555; margin-bottom: 12px; }

/* Success */
.erdv-success { text-align: center; padding: 40px 20px; }
.erdv-success__icon {
    width: 64px; height: 64px;
    background: #000; color: #fff;
    border-radius: 50%;
    font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.erdv-success h3 { font-size: 22px; margin: 0 0 16px; }
.erdv-success__details {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    max-width: 360px;
    margin: 0 auto 16px;
}
.erdv-success__email { font-size: 13px; color: #777; }

/* Error */
.erdv-error {
    background: #fff3f3;
    border: 1px solid #ffc9c9;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #c0392b;
    margin-bottom: 12px;
}

/* Loader */
.erdv-loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}
.erdv-loader__spinner {
    width: 36px; height: 36px;
    border: 3px solid #eee;
    border-top-color: #000;
    border-radius: 50%;
    animation: erdv-spin .7s linear infinite;
}
@keyframes erdv-spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 480px) {
    .erdv-form__row { flex-direction: column; gap: 0; }
    .erdv-services { flex-direction: column; }
}
