/* Basic styles for the custom /nabor page */
.cnp-nabor .wrap {
    /* Match container width so the H1 computes to width/max-width 1140px */
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px;
}

.cnp-hero {
    background: #f5f7fb;
    border-bottom: 1px solid #e5e7eb;
}

.cnp-nabor {
    padding-bottom: 2em;
}

.cnp-hero h1 {
    /* Ensure computed values match the requested heading styles */
    box-sizing: border-box;
    display: block;
    /* default, explicit for clarity */
    width: 100%;
    /* computes to 1140px inside .wrap on wide screens */
    margin: 8px 0 16px;
    /* margin-block-start/end */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 40px;
    line-height: 48px;
    font-weight: 500;
    color: rgb(51, 51, 51);
    /* Rendering and text sizing hints */
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    unicode-bidi: isolate;
}

.cnp-hero p {
    margin: 8px 0 24px;
    color: #4b5563;
}

/* Announcement banner */
.cnp-announcement {
    background: #fff7ed;
    /* warm orange tint */
    border-bottom: 1px solid #fdba74;
}

.cnp-announcement .wrap {
    padding-top: 16px;
    padding-bottom: 16px;
}

.cnp-announcement p {
    margin: 0;
    color: #7c2d12;
    /* dark orange/brown for contrast */
    font-weight: 600;
}

/* Alert section with CTA */
.cnp-alert .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 8px;
}

.cnp-alert-box {
    background: #ecfeff;
    /* cyan tint */
    border: 1px solid #06b6d4;
    color: #0e7490;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.cnp-actions {
    margin-left: auto;
}

.cnp-button.cnp-primary {
    background: #2563eb;
}

.cnp-button.cnp-primary:hover {
    background: #1e40af;
}

.cnp-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cnp-col {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.cnp-form .cnp-field {
    margin-bottom: 12px;
}

.cnp-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.cnp-form input,
.cnp-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.cnp-button {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: 0;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.cnp-button:hover {
    color: #fff;
    background: #1e40af;
}

.cnp-status {
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Tiles slider (match site styling) */
.cnp-tiles-section .wrap {
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    justify-content: center;
}

.cnp-tiles {
    display: flex;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
}

.cnp-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: auto;
}

.cnp-slider-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #263A89;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cnp-slider-btn:hover {
    background: #f3f4f6;
}

.cnp-tile {
    flex: 0 0 auto;
    min-width: 260px;
    max-width: 320px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
    text-decoration: none;
    scroll-snap-align: start;
    position: relative;
}

.cnp-tile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.cnp-tile-title {
    display: block;
    color: #263A89;
    /* site primary */
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.cnp-tile-dates {
    color: #374151;
    font-size: 14px;
}

.cnp-badge-test {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #b91c1c;
    color: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.cnp-alert-box .cnp-badge-test {
    position: static;
    margin-left: 10px;
}

/* Single nabor */
#cnp-single-nabor .cnp-title {
    margin-top: 48px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #263A89;
    text-align: center;
}

#cnp-single-nabor .cnp-subtitle {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #263A89;
    text-align: center;
}

#cnp-single-nabor .cnp-downloads {
    margin-top: 32px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#cnp-single-nabor .cnp-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: #263A89;
    color: #fff;
    border-radius: 999px;
    padding: 12px 20px;
}

#cnp-single-nabor .cnp-download:hover {
    background: #1e2e6e;
}

#cnp-single-nabor .cnp-download-icon {
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>') no-repeat center / contain;
}

#cnp-single-nabor .cnp-note {
    margin-top: 16px;
    text-align: center;
    color: #4b5563;
}

#cnp-single-nabor .cnp-alert-inline {
    margin: 24px auto 0;
    max-width: 750px;
    width: 96%;
    background: #ef4444;
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    padding: 16px 20px;
    border-radius: 12px;
}

/* Test banner for single page */
.cnp-banner-test {
    margin: 24px auto 16px;
    max-width: 950px;
    width: 96%;
    background: #fef3c7;
    /* amber-100 */
    color: #7c2d12;
    /* amber-900 */
    border: 1px solid #f59e0b;
    /* amber-500 */
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    text-align: center;
}

/* ------------------------------ */
/* Fiszka form: consistent styles */
/* ------------------------------ */

/* Ensure left alignment inside the form */
.cnp-form {
    text-align: left;
}

.cnp-form .cnp-legend {
    font-weight: 700;
    margin-bottom: 12px;
    color: #263A89;
}

/* Step visibility control */
#cnp-fiszka-form .cnp-step {
    display: none;
}

#cnp-fiszka-form .cnp-step.active {
    display: block;
}

/* Progress bar */
.cnp-progress {
    height: 8px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin: 8px 0 20px;
}

.cnp-progress__bar {
    height: 8px;
    width: 25%;
    background: #263A89;
}

.cnp-progress__label {
    margin: 0 0 16px 0;
    font-weight: 700;
    color: #263A89;
}

/* Fields */
.cnp-form .cnp-field {
    margin-bottom: 16px;
}

.cnp-form .cnp-question {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.cnp-form input,
.cnp-form select,
.cnp-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.4;
}

/* Choice rows (radios/checkboxes) */
.cnp-form .cnp-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.cnp-form .cnp-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.cnp-form .cnp-choice input[type="radio"],
.cnp-form .cnp-choice input[type="checkbox"] {
    width: auto;
}

/* Columns inside the form */
.cnp-form .cnp-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* Actions */
.cnp-form .cnp-actions {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cnp-form .cnp-actions.cnp-actions--spread {
    justify-content: space-between;
}

/* Utility: hidden */
.cnp-hidden {
    display: none !important;
}

/* RODO box */
.cnp-rodo-box {
    max-height: 220px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

/* Ensure white text on primary (Dalej/Zatwierdź) buttons even if theme overrides */
.cnp-nabor .cnp-button.cnp-primary {
    color: #ffffff !important;
}

/* Style the Back (Wstecz) button as red */
.cnp-nabor .cnp-form [data-prev].cnp-button {
    background: #ffffff;
    color: #b91c1c !important;
    /* red-700 */
    border: 1px solid #b91c1c;
}

.cnp-nabor .cnp-form [data-prev].cnp-button:hover {
    background: #fee2e2;
    /* red-100 */
    color: #991b1b !important;
    /* red-800 */
    border-color: #991b1b;
}