/**
 * Kariérne poradenstvo — štýly
 */

/* ========================================
   LAYOUT
   ======================================== */
.kp-wrapper {
    width: 100%;
    margin: 0 auto 60px;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========================================
   STEPPER — kroky hore
   ======================================== */
.kp-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 30px 0 40px;
    padding: 0;
    list-style: none;
}

.kp-stepper-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.kp-stepper-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e7ef;
    color: #8899a6;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.kp-stepper-label {
    font-size: 12px;
    color: #8899a6;
    margin-left: 8px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.kp-stepper-line {
    width: 40px;
    height: 2px;
    background: #e0e7ef;
    margin: 0 8px;
    transition: background 0.3s ease;
}

/* Aktívny krok */
.kp-stepper-item.active .kp-stepper-dot {
    background: #179CFA;
    color: #fff;
    box-shadow: 0 2px 8px rgba(23, 156, 250, 0.3);
}

.kp-stepper-item.active .kp-stepper-label {
    color: #179CFA;
    font-weight: 600;
}

/* Dokončený krok */
.kp-stepper-item.done .kp-stepper-dot {
    background: #22c55e;
    color: #fff;
}

.kp-stepper-item.done .kp-stepper-label {
    color: #22c55e;
}

.kp-stepper-item.done + .kp-stepper-item .kp-stepper-line,
.kp-stepper-line.done {
    background: #22c55e;
}

/* Mobile stepper */
@media (max-width: 600px) {
    .kp-stepper-label {
        display: none;
    }

    .kp-stepper-line {
        width: 24px;
    }
}

/* ========================================
   KROKY — spoločné
   ======================================== */
.kp-step {
    display: none;
    animation: kpFadeIn 0.4s ease;
}

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

@keyframes kpFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   KROK 1 — Úvod
   ======================================== */
.kp-intro-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 24px;
}

.kp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #3a4a5c;
    text-align: left;
    max-width: 500px;
}

.kp-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #179CFA;
    flex-shrink: 0;
}

.kp-intro {
    text-align: left;
    line-height: 1.7;
    color: #3a4a5c;
    font-size: 15px;
}

.kp-intro h1 {
    font-size: 28px;
    color: #1a2b3c;
    margin-bottom: 20px;
}

.kp-intro h2, .kp-intro h3 {
    color: #1a2b3c;
}

.kp-intro strong {
    color: #1a2b3c;
}

.kp-intro ul {
    padding-left: 20px;
}

.kp-intro ul li {
    margin-bottom: 6px;
}

/* ========================================
   KROK 2, 3 — Formulár
   ======================================== */
.kp-field {
    margin-bottom: 28px;
}

.kp-field label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 6px;
}

.kp-field .kp-hint {
    display: block;
    font-size: 13px;
    color: #6b7c8d;
    margin-bottom: 8px;
    line-height: 1.5;
}

.kp-field textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border: 2px solid #d0d9e3;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1a2b3c;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.kp-field textarea:focus {
    outline: none;
    border-color: #179CFA;
    box-shadow: 0 0 0 3px rgba(23, 156, 250, 0.1);
}

.kp-field textarea.kp-valid {
    border-color: #22c55e;
}

.kp-field textarea.kp-invalid {
    border-color: #e74c3c;
}

/* Progress bar pod textarea */
.kp-progress-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    gap: 10px;
}

.kp-progress-bar {
    flex: 1;
    height: 4px;
    background: #e0e7ef;
    border-radius: 2px;
    overflow: hidden;
}

.kp-progress-fill {
    height: 100%;
    background: #179CFA;
    border-radius: 2px;
    width: 0%;
    transition: width 0.2s ease, background 0.2s ease;
}

.kp-progress-fill.complete {
    background: #22c55e;
}

.kp-progress-text {
    font-size: 11px;
    color: #8899a6;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

/* Validačná hláška */
.kp-validation-msg {
    font-size: 13px;
    color: #e74c3c;
    margin-top: 6px;
    display: none;
    line-height: 1.4;
}

.kp-validation-msg.visible {
    display: block;
}

/* ========================================
   KROK 3 — Výber smeru (radio karty)
   ======================================== */
.kp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.kp-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e0e7ef;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.kp-radio-card:hover {
    border-color: #179CFA;
    background: #f5faff;
}

.kp-radio-card input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #179CFA;
    flex-shrink: 0;
}

.kp-radio-card.selected {
    border-color: #179CFA;
    background: #f0f7ff;
}

.kp-radio-card span {
    font-size: 14px;
    color: #1a2b3c;
}

/* "Niečo iné" input */
.kp-other-input {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 2px solid #d0d9e3;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: none;
    box-sizing: border-box;
}

.kp-other-input.visible {
    display: block;
}

.kp-other-input:focus {
    outline: none;
    border-color: #179CFA;
}

/* ========================================
   TLAČIDLÁ
   ======================================== */
.kp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: #179CFA;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
    margin-top: 10px;
}

.kp-btn:hover {
    background: #1280d4;
    transform: translateY(-1px);
}

.kp-btn:active {
    transform: translateY(0);
}

.kp-btn:disabled {
    background: #b8d4ef;
    cursor: not-allowed;
    transform: none;
}

.kp-btn-secondary {
    background: #f0f2f5;
    color: #3a4a5c;
}

.kp-btn-secondary:hover {
    background: #e0e3e8;
}

.kp-btn-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ========================================
   KROK 4 — AI karty (3 smery)
   ======================================== */
.kp-loading {
    text-align: center;
    padding: 60px 20px;
}

.kp-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e7ef;
    border-top-color: #179CFA;
    border-radius: 50%;
    animation: kpSpin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes kpSpin {
    to { transform: rotate(360deg); }
}

.kp-loading-text {
    font-size: 16px;
    color: #5a6c7d;
    font-weight: 500;
}

.kp-loading-progress {
    margin-top: 24px;
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.kp-loading-bar {
    width: 100%;
    height: 8px;
    background: #e0e7ef;
    border-radius: 4px;
    overflow: hidden;
}

.kp-loading-fill {
    height: 100%;
    background: linear-gradient(90deg, #179CFA, #22c55e);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.kp-loading-percent {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #179CFA;
    margin-top: 8px;
}

.kp-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.kp-card {
    padding: 20px;
    border: 2px solid #e0e7ef;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.kp-card:hover {
    border-color: #179CFA;
    background: #f5faff;
    box-shadow: 0 4px 12px rgba(23, 156, 250, 0.1);
}

.kp-card h4 {
    font-size: 18px;
    color: #179CFA;
    margin: 0 0 8px 0;
}

.kp-card p {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

.kp-card .kp-card-select {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #179CFA;
}

/* ========================================
   KROK 5 — Detailný plán
   ======================================== */
.kp-plan {
    line-height: 1.7;
    color: #3a4a5c;
    font-size: 15px;
}

/* Hlavný nadpis plánu */
.kp-plan .kp-plan-title {
    font-size: 28px;
    color: #1a2b3c;
    text-align: center;
    margin: 0 0 24px 0;
    font-weight: 700;
}

/* Kurzy ako boxy */
.kp-course-box {
    background: #f0f7ff;
    border: 1px solid #c8dff5;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 10px 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.kp-course-name {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.kp-course-name a {
    color: #179CFA;
    text-decoration: none;
    font-weight: 600;
}

.kp-course-name a:hover {
    text-decoration: underline;
}

.kp-course-desc {
    font-size: 13px;
    color: #5a6c7d;
    line-height: 1.5;
}


.kp-plan h3, .kp-plan h4 {
    color: #1a2b3c;
    margin-top: 24px;
}

.kp-plan strong {
    color: #1a2b3c;
}

.kp-plan ul {
    padding-left: 20px;
}

.kp-plan a {
    color: #179CFA;
    text-decoration: none;
    font-weight: 600;
}

.kp-plan a:hover {
    text-decoration: underline;
}

/* ========================================
   KROK 6 — CTA
   ======================================== */

/* Hlavička */
.kp-cta-header {
    margin-bottom: 30px;
}

.kp-cta-header h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    color: #1a2b3c;
    margin: 0 0 12px 0;
}

.kp-cta-header p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #5a6c7d;
    margin: 0;
}

/* Sekcia email — podfarbená */
.kp-cta-email-section {
    background: #f0f2f5;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.kp-cta-email-section h4 {
    margin: 0 0 8px 0;
}

.kp-cta-email-section p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #5a6c7d;
    margin: 0 0 16px 0;
}

#kp-email-status {
    margin-top: 10px;
    font-size: 14px;
}

.kp-email-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
}

.kp-email-input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #d0d9e3;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

.kp-email-input:focus {
    outline: none;
    border-color: #179CFA;
}

/* 2 stĺpce */
.kp-cta-columns {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
}

.kp-cta-col {
    flex: 1;
    background: #f8f9fb;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    padding: 24px;
}

.kp-cta-col h4 {
    margin: 0 0 8px 0;
}

.kp-cta-col p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #5a6c7d;
    margin: 0 0 16px 0;
}

.kp-cta-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Mobile — stĺpce pod seba */
@media (max-width: 600px) {
    .kp-cta-columns {
        flex-direction: column;
    }

    .kp-email-row {
        flex-direction: column;
        max-width: 100%;
    }
}

/* Disclaimer */
.kp-disclaimer {
    font-size: 12px;
    color: #8899a6;
    margin-top: 30px;
    text-align: center;
    line-height: 1.5;
}

.kp-disclaimer a {
    color: #179CFA;
    text-decoration: none;
}

.kp-disclaimer a:hover {
    text-decoration: underline;
}
