@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================
   WRAPPER & RESET
   ============================ */
.conf-form-wrapper {
    max-width: 680px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

/* ============================
   PROGRESS
   ============================ */
.conf-progress {
    background: #C580B6;
    padding: 28px 32px 0;
}
.conf-progress-bar {
    background: rgba(255,255,255,.2);
    border-radius: 99px;
    height: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}
.conf-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease;
    width: 25%;
}
.conf-steps {
    display: flex;
    justify-content: space-between;
}
.conf-step-indicator {
    text-align: center;
    flex: 1;
    padding-bottom: 18px;
}
.conf-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    transition: all .3s;
}
.conf-step-dot span {font-weight: 700; }
.conf-step-indicator.active .conf-step-dot {}
.conf-step-indicator.active .conf-step-dot span { color: #1e3a5f; }
.conf-step-indicator.done .conf-step-dot {
    background: #7dd3fc;
    border-color: #7dd3fc;
}
.conf-step-indicator.done .conf-step-dot span::before { content: '✓'; }
.conf-step-indicator.done .conf-step-dot span { color: #1e3a5f; }
.conf-step-name {color: rgba(255,255,255,.5); font-weight: 500; }
.conf-step-indicator.active .conf-step-name { color: #fff; }

/* ============================
   STEPS CONTENT
   ============================ */
form#confRegForm { padding: 32px; }

.conf-step-header { margin-bottom: 28px; }
.conf-step-header h2 { font-weight: 700; margin: 0 0 6px; color: #0f172a; }
.conf-step-header p { margin: 0; color: #64748b; }

/* ============================
   FIELDS
   ============================ */
.conf-fields { display: flex; flex-direction: column; gap: 18px; }
.conf-field { display: flex; flex-direction: column; gap: 6px; }
.conf-field label { font-weight: 600; color: #374151; }
.conf-req { color: #ef4444; }
.conf-field input,
.conf-field textarea {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 11px 14px;
    color: #1e293b;
    transition: border-color .2s, box-shadow .2s;
    background: #f8fafc;
    outline: none;
}
.conf-field input:focus,
.conf-field textarea:focus {
    border-color: #2d6a9f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45,106,159,.12);
}
.conf-field input.conf-invalid { border-color: #ef4444; }

/* ============================
   RADIO CARDS (STEP 2)
   ============================ */
.conf-radio-cards { display: flex; flex-direction: column; gap: 12px; }
.conf-radio-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all .2s;
    background: #f8fafc;
    user-select: none;
    position: relative;
}
.conf-radio-card:hover { border-color: #93c5fd; background: #eff6ff; }
.conf-radio-card.active {
    border-color: #2d6a9f;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(45,106,159,.12);
}
.conf-radio-card-icon { font-size: 24px; flex-shrink: 0; }
.conf-radio-card-title { font-size: 15px; font-weight: 600; color: #1e293b; flex: 1; }
.conf-radio-card-check {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all .2s;
    flex-shrink: 0;
}
.conf-radio-card.active .conf-radio-card-check {
    background: #2d6a9f;
    border-color: #2d6a9f;
    color: #fff;
}

/* ============================
   WORKSHOP CARDS (STEP 3)
   ============================ */
.conf-workshop-cards { display: flex; flex-direction: column; gap: 14px; }
.conf-workshop-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all .25s;
    background: #f8fafc;
    user-select: none;
}
.conf-workshop-card:hover:not(.conf-ws-disabled) { border-color: #93c5fd; background: #eff6ff; }
.conf-workshop-card.active {
    border-color: #2d6a9f;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(45,106,159,.12);
}
.conf-workshop-card.conf-ws-disabled {
    border-color: #e2e8f0;
    background: #f1f5f9;
    opacity: .55;
    cursor: not-allowed;
}
.conf-ws-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.conf-ws-tag { font-weight: 700; letter-spacing: 0.5px; color: #2d6a9f; text-transform: uppercase; }
.conf-ws-limit {color: #94a3b8; }
.conf-ws-title { font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.conf-ws-desc { color: #64748b; line-height: 1.5; margin-bottom: 12px; }
.conf-ws-footer { display: flex; justify-content: space-between; align-items: center; }
.conf-ws-spots { color: #94a3b8; }
.conf-ws-spots.conf-spots-ok { color: #16a34a; font-weight: 600; }
.conf-ws-spots.conf-spots-low { color: #d97706; font-weight: 600; }
.conf-ws-spots.conf-spots-full { color: #ef4444; font-weight: 600; }
.conf-ws-select-label { font-weight: 600; color: #2d6a9f; }
.conf-workshop-card.active .conf-ws-select-label { color: #1d4ed8; }
.conf-ws-skip { color: #94a3b8; margin-top: 12px; text-align: center; }

/* ============================
   CHECKBOXES (STEP 4)
   ============================ */
.conf-preferences,
.conf-consents { margin-bottom: 28px; }
.conf-pref-title { font-weight: 700; color: #374151; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
.conf-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
}
.conf-checkbox-row input[type="checkbox"] { display: none; }
.conf-checkbox-box {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.conf-checkbox-row input:checked + .conf-checkbox-box {
}
.conf-checkbox-row input:checked + .conf-checkbox-box::after {
    content: '✓';
    color: #fff;
    font-weight: 700;
}
.conf-checkbox-row span:last-child {color: #374151; line-height: 1.5; }
.conf-consent-required .conf-checkbox-box { border-color: #fca5a5; }
.conf-consent-required input:checked + .conf-checkbox-box { border-color: #2d6a9f; }
.conf-link { color: #2d6a9f; }
.conf-special-desc { margin: 8px 0 0 32px; }
.conf-special-desc label { font-weight: 600; display: block; margin-bottom: 6px; }
.conf-special-desc textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.conf-special-desc textarea:focus {background: #fff; }

/* ============================
   NAVIGATION
   ============================ */
.conf-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    gap: 12px;
}

.conf-btn-back:hover {}
.conf-btn-next { margin-left: auto;}
.conf-btn-next:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(30,58,95,.2); }
.conf-btn-submit { margin-left: auto;}
.conf-btn-submit:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(21,128,61,.2); }
.conf-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ============================
   ERROR
   ============================ */
.conf-error-msg {
    margin-top: 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    color: #dc2626;
    line-height: 1.5;
}

/* ============================
   SUCCESS
   ============================ */
.conf-success {
    padding: 60px 32px;
    text-align: center;
}
.conf-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto 20px;
}
.conf-success h2 { font-weight: 700; color: #0f172a; margin: 0 0 10px; }
.conf-success p { color: #64748b;}

@media (max-width: 600px) {
    form#confRegForm { padding: 20px; }
    .conf-progress { padding: 20px 20px 0; }
    .conf-step-name { display: none; }
    .conf-radio-cards { gap: 8px; }
    .conf-btn-back, .conf-btn-next, .conf-btn-submit { padding: 10px 18px; }
}
