/* Formularz zgłoszeniowy – RCKiK Gdańsk */

.rck-form-wrap {
    font-family: 'Open Sans', Arial, sans-serif;
    max-width: 860px;
    margin: 0 auto 40px;
    color: #333;
    float: left;
    width: 100%;
}

.rck-note-top {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #fff8f8;
    border-left: 4px solid #c0182b;
    border-radius: 2px;
}

/* ---- Sekcje ---- */
.rck-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 18px;
    overflow: hidden;
}

.rck-section__title {
    background: #c0182b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 11px 20px;
}

.rck-subsection__title {
    font-size: 12px;
    font-weight: 700;
    color: #c0182b;
    padding: 12px 20px 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-top: 1px solid #eee;
}

/* ---- Pola ---- */
.rck-field {
    padding: 11px 20px;
    border-bottom: 1px solid #f2f2f2;
}

.rck-field:last-child {
    border-bottom: none;
}

.rck-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.4;
}

.rck-label small {
    font-weight: 400;
    color: #888;
    display: block;
    margin-top: 2px;
}

.rck-label-note {
    font-weight: 400;
    color: #888;
    font-size: 11px;
}

.rck-hint {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-top: 5px;
}

.rck-input,
.rck-select,
.rck-textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.rck-input:focus,
.rck-select:focus,
.rck-textarea:focus {
    border-color: #c0182b;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 24, 43, 0.1);
}

.rck-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 fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    padding-right: 30px;
}

.rck-textarea {
    resize: vertical;
    min-height: 75px;
}

/* ---- Siatka 2 kolumny ---- */
.rck-row--2 {
    display: flex;
}

.rck-row--2 > .rck-field {
    flex: 1;
    min-width: 0;
}

.rck-row--2 > .rck-field:first-child {
    border-right: 1px solid #f2f2f2;
}

/* ---- Radio ---- */
.rck-radio-group--inline {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.rck-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    user-select: none;
}

.rck-radio input[type="radio"] {
    accent-color: #c0182b;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ---- Wiersze TAK/NIE ---- */
.rck-yn-row {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #f2f2f2;
    gap: 16px;
}

.rck-yn-row:last-child {
    border-bottom: none;
}

.rck-yn-row__label {
    flex: 1;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.rck-yn-row__label small {
    display: block;
    color: #999;
    font-size: 11px;
    margin-top: 3px;
}

.rck-yn-row__options {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    min-width: 120px;
}

/* ---- Checkboxy ---- */
.rck-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    cursor: pointer;
}

.rck-checkbox:last-child {
    border-bottom: none;
}

.rck-checkbox input[type="checkbox"] {
    accent-color: #c0182b;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.rck-checkbox a {
    color: #c0182b;
    text-decoration: underline;
}

/* ---- Submit ---- */
.rck-submit {
    text-align: center;
    padding: 10px 0 20px;
}

.rck-btn {
    background: #c0182b;
    color: #fff;
    border: none;
    padding: 13px 44px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: background 0.2s;
}

.rck-btn:hover {
    background: #9e1224;
}

.rck-btn:active {
    background: #7e0e1c;
}

/* ---- Widoczność warunkowa ---- */
.rck-conditional {
    display: none;
}

/* ---- Popup ---- */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup__wrap {
    background: #fff;
    border-radius: 6px;
    padding: 40px 36px 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    animation: popupIn 0.2s ease;
}

@keyframes popupIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.popup__title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
    margin-bottom: 26px;
}

.popup__close {
    display: inline-block;
    background: #c0182b;
    color: #fff;
    text-decoration: none;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 11px 36px;
    border-radius: 3px;
    transition: background 0.2s;
}

.popup__close:hover {
    background: #9e1224;
    color: #fff;
}

/* ---- Responsywność: tablet ---- */
@media (max-width: 768px) {
    .rck-form-wrap {
        margin-bottom: 24px;
    }

    .rck-section__title {
        font-size: 11px;
    }
}

/* ---- Responsywność: mobile ---- */
@media (max-width: 600px) {
    .rck-row--2 {
        flex-direction: column;
    }

    .rck-row--2 > .rck-field:first-child {
        border-right: none;
        border-bottom: 1px solid #f2f2f2;
    }

    .rck-field {
        padding: 10px 14px;
    }

    .rck-section__title {
        padding: 10px 14px;
    }

    .rck-subsection__title {
        padding: 10px 14px 5px;
    }

    /* Zapobiega auto-zoomowi na iOS (wymaga font-size >= 16px) */
    .rck-input,
    .rck-select,
    .rck-textarea {
        font-size: 16px;
    }

    .rck-yn-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 14px;
    }

    .rck-yn-row__options {
        min-width: auto;
    }

    .rck-checkbox {
        padding: 11px 14px;
    }

    /* Większy obszar kliknięcia dla radio/checkbox na dotyk */
    .rck-radio,
    .rck-checkbox {
        min-height: 36px;
    }

    .rck-radio input[type="radio"],
    .rck-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .rck-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 13px;
    }

    .popup__wrap {
        padding: 28px 20px 24px;
    }

    .popup__title {
        font-size: 15px;
    }

    .popup__close {
        width: 100%;
        padding: 13px 20px;
        box-sizing: border-box;
    }
}
