/* ═══════════════════════════════════════════════════════════════════
   Pogotowie Programistyczne – Formularz Kontaktowy
   Kolory: granat #1e2d4d, czerwień #c0392b, beż #f0ece4
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset wewnątrz kontenera ─────────────────────────────────────── */
.pp-form-wrap *,
.pp-form-wrap *::before,
.pp-form-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Kontener główny ──────────────────────────────────────────────── */
.pp-form-wrap {
    background: #fff; /* domyślne; nadpisywane przez Elementor */
    border-radius: 18px;
    padding: 36px 40px 40px;
    max-width: 780px;
    margin: 0 auto;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #1e2d4d;
    box-shadow: 0 4px 32px rgba(30, 45, 77, 0.08);
}

/* ── Pasek postępu ────────────────────────────────────────────────── */
.pp-steps-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
}

.pp-step-dot {
    display: block;
    height: 4px;
    width: 48px;
    border-radius: 99px;
    background: #d0c9bc;
    transition: background .3s;
}

.pp-step-dot.active {
    background: #1e2d4d;
}

.pp-steps-label {
    margin-left: 10px;
    font-size: 11px;
    letter-spacing: .12em;
    color: #7a6f5f;
    font-weight: 500;
    white-space: nowrap;
}

.pp-steps-label strong {
    color: #1e2d4d;
}

/* ── Pytanie / etykieta kroku ─────────────────────────────────────── */
.pp-step-question,
.pp-step-label {
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 600;
    color: #7a6f5f;
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* ── Siatka kart ──────────────────────────────────────────────────── */
.pp-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}

@media (max-width: 560px) {
    .pp-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .pp-cards-grid { gap: 10px; margin-bottom: 24px; }
}

/* ── Karta wyboru ─────────────────────────────────────────────────── */
.pp-card {
    background: #eeeae3;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 18px 20px;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pp-card strong {
    font-size: 15px;
    font-weight: 600;
    color: #1e2d4d;
    line-height: 1.3;
}

.pp-card span {
    font-size: 13px;
    color: #5a5145;
    line-height: 1.5;
}

.pp-card:hover {
    background: #e5dfd6;
    transform: translateY(-1px);
}

.pp-card.selected {
    border-color: #1e2d4d;
    background: #fff;
}

/* ── Siatka pól formularza ────────────────────────────────────────── */
.pp-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 28px;
}

.pp-field-group.pp-full {
    grid-column: 1 / -1;
}

@media (max-width: 560px) {
    .pp-fields-grid { grid-template-columns: 1fr; }
    .pp-field-group.pp-full { grid-column: 1; }
}

@media (max-width: 480px) {
    .pp-fields-grid { gap: 12px 0; margin-bottom: 20px; }
}

.pp-field-group label {
    display: block;
    font-size: 10px;
    letter-spacing: .1em;
    font-weight: 600;
    color: #7a6f5f;
    margin-bottom: 7px;
}

.pp-field-group input,
.pp-field-group textarea {
    width: 100%;
    background: #fff;
    border: 1.5px solid #ddd7cc;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    color: #1e2d4d;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.pp-field-group input:focus,
.pp-field-group textarea:focus {
    border-color: #1e2d4d;
    box-shadow: 0 0 0 3px rgba(30, 45, 77, 0.1);
}

.pp-field-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* ── Checkbox ─────────────────────────────────────────────────────── */
.pp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #1e2d4d;
}

.pp-checkbox-label input[type="checkbox"] {
    display: none;
}

.pp-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #c0c0b4;
    border-radius: 5px;
    flex-shrink: 0;
    background: #fff;
    transition: background .2s, border-color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-checkbox-label input[type="checkbox"]:checked + .pp-checkbox-custom {
    background: #1e2d4d;
    border-color: #1e2d4d;
}

.pp-checkbox-label input[type="checkbox"]:checked + .pp-checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.pp-nda-row {
    margin-top: 4px;
}

.pp-field-group .pp-checkbox-label {
    display: flex;
    font-size: 14px;
    letter-spacing: normal;
    font-weight: 400;
    color: #1e2d4d;
    margin-bottom: 0;
}

/* ── Podsumowanie ─────────────────────────────────────────────────── */
.pp-summary-headline {
    font-size: 20px;
    font-weight: 600;
    color: #1e2d4d;
    margin-bottom: 24px;
    line-height: 1.4;
}

.pp-summary-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #ddd7cc;
    margin-bottom: 24px;
}

.pp-summary-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ddd7cc;
}

@media (max-width: 560px) {
    .pp-summary-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 480px) {
    .pp-summary-headline { font-size: 17px; margin-bottom: 16px; }
}

.pp-summary-key {
    font-size: 10px;
    letter-spacing: .1em;
    font-weight: 600;
    color: #7a6f5f;
    padding-top: 2px;
    text-transform: uppercase;
}

.pp-summary-val {
    font-size: 14px;
    color: #1e2d4d;
    font-weight: 500;
    line-height: 1.5;
}

.pp-consent-row {
    margin: 0 0 20px;
}

/* ── Komunikat błędu ──────────────────────────────────────────────── */
.pp-error-msg {
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    padding: 10px 14px;
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ── Nawigacja ────────────────────────────────────────────────────── */
.pp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pp-nav-right {
    justify-content: flex-end;
}

/* ── Przyciski ────────────────────────────────────────────────────── */
.pp-btn {
    border: none;
    border-radius: 99px;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, transform .15s, opacity .2s;
    letter-spacing: .02em;
    min-height: 44px;
    touch-action: manipulation;
}

.pp-btn-back {
    background: #fff;
    color: #1e2d4d;
    border: 1.5px solid #ddd7cc;
}

.pp-btn-back:hover {
    background: #f0ece4;
}

.pp-btn-primary {
    background: #1e2d4d;
    color: #fff;
}

.pp-btn-primary:hover:not(:disabled) {
    background: #253660;
    transform: translateY(-1px);
}

.pp-btn-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.pp-btn-submit {
    background: #c0392b;
    color: #fff;
    padding: 13px 32px;
}

.pp-btn-submit:hover {
    background: #a93226;
    transform: translateY(-1px);
}

.pp-btn-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.pp-btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.pp-btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pp-spin 0.55s linear infinite;
}

@keyframes pp-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
    .pp-form-wrap {
        padding: 24px 20px;
        padding-bottom: max(28px, env(safe-area-inset-bottom));
        border-radius: 14px;
    }

    .pp-steps-bar {
        margin-bottom: 20px;
    }

    .pp-step-dot {
        width: 36px;
    }

    .pp-btn {
        padding: 12px 20px;
        font-size: 13px;
        min-height: 48px;
    }

    .pp-btn-submit {
        padding: 12px 20px;
    }

    .pp-nav {
        gap: 10px;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ── Ekran sukcesu ────────────────────────────────────────────────── */
.pp-success-screen {
    text-align: center;
    padding: 40px 20px;
}

.pp-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #1e2d4d;
    color: #fff;
    font-size: 32px;
    line-height: 72px;
    margin: 0 auto 24px;
}

.pp-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e2d4d;
    margin-bottom: 12px;
}

.pp-success-msg {
    font-size: 15px;
    color: #5a5145;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.7;
}
