/* =============================================================
   J'Dance Proefles Widget — widget.css
   ============================================================= */

/* --- FAB knop --- */
#jd-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #1a1a1a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    z-index: 99999;
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
}

#jd-fab:hover {
    transform: scale(1.08);
    background: #333;
}

#jd-fab svg {
    width: 24px;
    height: 24px;
}

#jd-fab-content-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.jd-fab-text {
    display: block;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
}

.jd-fab-text-sub {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- Popup wrapper --- */
#jd-popup {
    position: fixed;
    bottom: 106px;
    right: 24px;
    width: 400px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    z-index: 99998;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    transform: scale(0.92) translateY(14px);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#jd-popup.jd-open {
    opacity: 1;
    pointer-events: all;
    transform: scale(1) translateY(0);
}

/* --- Header --- */
.jd-header {
    background: #1a1a1a;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jd-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jd-header-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.jd-header-text span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.jd-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: background 0.15s;
}

.jd-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* --- Body --- */
.jd-body {
    padding: 18px 18px 20px;
    overflow-y: auto;
    max-height: calc(100vh - 220px);
}

/* --- Steps dots --- */
.jd-steps-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.jd-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.2s;
    display: inline-block;
}

.jd-dot.active {
    background: #1a1a1a;
}

/* --- Steps --- */
.jd-step {
    display: none;
}

.jd-step.active {
    display: block;
}

.jd-step-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
}

/* --- Locatie kaartjes --- */
.jd-loc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.jd-loc-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.jd-loc-card:hover {
    border-color: #999;
}

.jd-loc-card.jd-selected {
    border: 2px solid #1a1a1a;
    background: #f7f7f7;
}

.jd-loc-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.jd-loc-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

.jd-loc-card small {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
}

/* --- Formuliervelden --- */
.jd-field {
    margin-bottom: 11px;
}

.jd-field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.jd-field input,
.jd-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color 0.15s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.jd-field input:focus,
.jd-field select:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
}

.jd-field select:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.jd-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.jd-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* --- Knoppen --- */
.jd-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 9px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity 0.15s, background 0.15s;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.jd-btn:hover {
    opacity: 0.82;
}

.jd-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.jd-btn.jd-btn-outline {
    background: transparent;
    color: #444;
    border: 1px solid #ddd;
    margin-top: 0;
}

.jd-btn.jd-btn-outline:hover {
    background: #f5f5f5;
    opacity: 1;
}

.jd-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.jd-btn-row .jd-btn {
    margin-top: 0;
    flex: 1;
}

/* --- Foutmelding --- */
.jd-error {
    color: #c0392b;
    font-size: 12px;
    margin: 4px 0 0;
    min-height: 16px;
}

/* --- Succesmelding --- */
.jd-success {
    text-align: center;
    padding: 10px 4px 8px;
}

.jd-check-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e8f5e9;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jd-success h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.jd-success p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #555;
    line-height: 1.55;
}

.jd-success-sub {
    font-size: 12px !important;
    color: #888 !important;
    margin-top: 10px !important;
}

/* --- Responsive: mobiel --- */
@media (max-width: 460px) {
    #jd-popup {
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        bottom: 98px;
    }

    #jd-fab {
        right: 16px;
        bottom: 16px;
    }

    .jd-loc-grid {
        grid-template-columns: 1fr;
    }

    .jd-loc-card {
        flex-direction: row;
        text-align: left;
        padding: 10px 14px;
        gap: 10px;
    }
}

/* --- Samenvatting balk stap 2 --- */
.jd-summary-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f3f3;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.jd-summary-tag {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.jd-summary-sep {
    font-size: 12px;
    color: #bbb;
}

.jd-summary-edit {
    margin-left: auto;
    font-size: 11px;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}
