/* ── Preprava Paliet — Public Form CSS ───────────────────────────────── */

.preprava-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: #1c1917;
}

/* Cards */
.pp-card {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.pp-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #1c1917;
}
.pp-card-title i { color: #78716c; }

/* Grid layouts */
.pp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1rem; }
.pp-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 1rem; }
.pp-row2:last-child, .pp-row3:last-child { margin-bottom: 0; }

@media (max-width: 540px) {
    .pp-row2, .pp-row3 { grid-template-columns: 1fr; }
    .pp-item-grid { grid-template-columns: 1fr 1fr !important; }
    .pp-item-grid .pp-mult-col,
    .pp-item-grid .pp-price-col { display: none; }
}

/* Fields */
.pp-field { display: flex; flex-direction: column; gap: 5px; }
.pp-field label { font-size: 13px; color: #78716c; font-weight: 500; }
.pp-field label small { font-weight: 400; color: #a8a29e; font-size: 11px; }
.pp-mb { margin-bottom: 1rem; }

.preprava-form-wrap input[type=text],
.preprava-form-wrap input[type=email],
.preprava-form-wrap input[type=tel],
.preprava-form-wrap input[type=number],
.preprava-form-wrap input[type=date],
.preprava-form-wrap select,
.preprava-form-wrap textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d6d3d1;
    border-radius: 5px;
    background: #fff;
    color: #1c1917;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.preprava-form-wrap input:focus,
.preprava-form-wrap select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.preprava-form-wrap input.pp-invalid,
.preprava-form-wrap select.pp-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.pp-err {
    font-size: 12px;
    color: #dc2626;
    display: none;
}
.pp-err.show { display: block; }

/* Date info badge */
.pp-date-info-wrap { justify-content: flex-end; }
.pp-date-info { font-size: 13px; color: #78716c; padding-bottom: 6px; }
.pp-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pp-badge-ok  { background: #f0fdf4; color: #166534; }
.pp-badge-mid { background: #fffbeb; color: #92400e; }
.pp-badge-hot { background: #fef2f2; color: #991b1b; }

/* Item cards */
.pp-item-card {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: .75rem;
    position: relative;
}
.pp-item-num {
    font-size: 11px;
    font-weight: 700;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}
.pp-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #a8a29e;
    font-size: 16px;
    padding: 3px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: all .1s;
}
.pp-remove-btn:hover { color: #dc2626; background: #fef2f2; }

.pp-item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 80px 76px;
    gap: 10px;
    align-items: start;
}
.pp-mult-col { display: flex; flex-direction: column; gap: 5px; }
.pp-mult-badge {
    font-size: 13px;
    font-weight: 600;
    color: #78716c;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 5px;
    padding: 7px 8px;
    text-align: center;
}
.pp-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #1c1917;
    text-align: right;
    padding-top: 22px;
    white-space: nowrap;
}
.pp-warn {
    display: none;
    font-size: 11px;
    color: #92400e;
    background: #fffbeb;
    border-radius: 4px;
    padding: 3px 7px;
    margin-top: 3px;
    line-height: 1.4;
}
.pp-warn.show { display: inline-block; }

/* Add button */
.pp-add-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 5px;
    border: 1.5px dashed #d6d3d1;
    background: none;
    color: #78716c;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    width: 100%;
    transition: background .1s;
}
.pp-add-btn:hover { background: #fafaf9; }

/* Price box */
.pp-price-box {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.pp-prow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f4;
}
.pp-prow:last-of-type { border-bottom: none; }
.pp-lbl { color: #78716c; }
.pp-psub { display: block; font-size: 11px; color: #a8a29e; margin-top: 1px; }
.pp-sep { border: none; border-top: 1px solid #e7e5e4; margin: 10px 0 6px; }
.pp-ptotal { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; padding: 8px 0 4px; }
.pp-pdph   { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.pp-pgrand { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; padding: 10px 0 0; border-top: 2px solid #1c1917; margin-top: 8px; }

.pp-dph-info { font-size: 12px; padding: 8px 12px; border-radius: 5px; margin-top: 8px; display: none; line-height: 1.5; }
.pp-dph-info.show { display: block; }
.pp-dph-info.green { background: #f0fdf4; color: #166534; }
.pp-dph-info.blue  { background: #eff6ff; color: #1e40af; }

/* Section divider */
.pp-section-divider {
    font-size: 11px;
    font-weight: 700;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 1.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e7e5e4;
}

/* Submit */
.pp-submit-btn {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    border: none;
    background: #1d4ed8;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s, background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pp-submit-btn:hover   { opacity: .9; }
.pp-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.pp-submit-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}
.pp-submit-msg.error   { background: #fef2f2; color: #991b1b; }
.pp-submit-msg.loading { background: #eff6ff; color: #1e40af; }

/* Success state */
.pp-success {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.pp-success-icon { font-size: 48px; color: #166534; margin-bottom: 1rem; }
.pp-success h2   { font-size: 22px; margin-bottom: .75rem; }
.pp-success p    { color: #78716c; }
