/* ============================================
   MebleFox - Formularz próbek tkanin v2
   Full-width, 2-step layout
   Kolor przewodni: #7aaf3e
   ============================================ */

/* === RESET === */
.sh-form-wrapper *, .sh-form-wrapper *::before, .sh-form-wrapper *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sh-form-wrapper {
    max-width: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #2a2a2a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === HERO BANNER — SPLIT LAYOUT === */
.sh-hero {
    width: 100%;
    display: flex;
    flex-direction: row;
    min-height: 360px;
    border-radius: 16px;
    overflow: hidden;
    background: #f4f9ee;
    border: 1px solid #e4edd8;
}
.sh-hero-bg {
    position: relative;
    width: 45%;
    flex-shrink: 0;
}
.sh-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.sh-hero-overlay {
    display: none;
}
.sh-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 50px;
    text-align: left;
}
.sh-hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: #2a2a2a;
    letter-spacing: 0.3px;
    margin: 0 0 14px;
    line-height: 1.25;
    text-shadow: none;
}
.sh-hero h2 span {
    color: #5d8a2e;
    text-shadow: none;
}
.sh-hero p {
    font-size: 14px;
    color: #555;
    max-width: 420px;
    margin: 0 0 28px;
    font-weight: 400;
    text-shadow: none;
}
.sh-hero-badges {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}
.sh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #d4e8c0;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    color: #5d8a2e;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: none;
}
.sh-hero-badge svg {
    width: 15px;
    height: 15px;
    fill: #7aaf3e;
}

/* === MAIN CONTAINER === */
.sh-main {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 45px 40px 70px;
}

/* === STEP INDICATOR === */
.sh-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 45px;
}
.sh-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 600;
    color: #bbb;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}
.sh-step::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: #e0e0e0;
    transition: all 0.3s ease;
}
.sh-step.active { color: #2a2a2a; }
.sh-step.active::after { background: #7aaf3e; }
.sh-step.completed { color: #5d8a2e; }
.sh-step.completed::after { background: #7aaf3e; }

.sh-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    color: #bbb;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.sh-step.active .sh-step-num,
.sh-step.completed .sh-step-num {
    border-color: #7aaf3e;
    background: #7aaf3e;
    color: #fff;
}

/* === PANELS === */
.sh-panel {
    display: none;
    animation: shFadeIn 0.4s ease;
}
.sh-panel.active { display: block; }

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

/* === TWO-COLUMN GRID === */
.sh-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* === SECTION TITLES === */
.sh-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #5d8a2e;
    margin-bottom: 6px;
}
.sh-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 22px;
    line-height: 1.3;
}

/* === INPUT FIELDS === */
.sh-field {
    margin-bottom: 20px;
}
.sh-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b6b6b;
    margin-bottom: 6px;
}
.sh-field label .req {
    color: #7aaf3e;
    font-weight: 700;
}
.sh-field input[type="text"],
.sh-field input[type="email"],
.sh-field input[type="tel"] {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #2a2a2a;
    background: #fff;
    transition: all 0.25s ease;
    outline: none;
}
.sh-field input:focus {
    border-color: #7aaf3e;
    box-shadow: 0 0 0 3px rgba(122,175,62,0.12);
}
.sh-field input::placeholder { color: #bbb; }
.sh-field.has-error input { border-color: #c0392b; }
.sh-field .sh-error-msg {
    font-size: 11px;
    color: #c0392b;
    margin-top: 4px;
    display: none;
}
.sh-field.has-error .sh-error-msg { display: block; }

/* === CHIP SELECTORS (FABRIC TYPE) === */
.sh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.sh-chip { position: relative; }
.sh-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sh-chip label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 13px;
    color: #6b6b6b;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    white-space: nowrap;
}
.sh-chip label:hover {
    border-color: #9ecb6a;
    color: #2a2a2a;
}
.sh-chip input:checked + label {
    border-color: #7aaf3e;
    background: #f4f9ee;
    color: #2a2a2a;
    font-weight: 600;
    box-shadow: 0 0 0 1px #7aaf3e;
}
.sh-chip-check {
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.sh-chip input:checked + label .sh-chip-check {
    border-color: #7aaf3e;
    background: #7aaf3e;
}
.sh-chip input:checked + label .sh-chip-check::after {
    content: '✓';
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

/* === COLOR GRID === */
.sh-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.sh-color-opt {
    position: relative;
    text-align: center;
}
.sh-color-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sh-color-opt label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}
.sh-color-opt label:hover { background: rgba(122,175,62,0.04); }
.sh-color-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #e4e4e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
}
.sh-color-opt input:checked + label {
    border-color: #7aaf3e;
    background: #f4f9ee;
}
.sh-color-opt input:checked + label .sh-color-circle {
    border-color: #7aaf3e;
    transform: scale(1.12);
    box-shadow: 0 3px 12px rgba(122,175,62,0.3);
}
.sh-color-opt input:checked + label .sh-color-circle::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.sh-color-opt label:hover .sh-color-circle { transform: scale(1.06); }
.sh-color-label {
    font-size: 11px;
    color: #999;
    line-height: 1.2;
}
.sh-color-opt input:checked + label .sh-color-label {
    color: #2a2a2a;
    font-weight: 600;
}

.sh-hint {
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin-bottom: 20px;
}

/* === TEXTURE PILLS === */
.sh-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.sh-pill { position: relative; }
.sh-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sh-pill label {
    display: block;
    padding: 11px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 13px;
    color: #6b6b6b;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}
.sh-pill label:hover { border-color: #9ecb6a; }
.sh-pill input:checked + label {
    border-color: #7aaf3e;
    background: #7aaf3e;
    color: #fff;
    font-weight: 600;
}

/* === TEXTURE CHECKBOXES (multi-select pills) === */
.sh-pills-multi .sh-pill input[type="checkbox"]:checked + label {
    border-color: #7aaf3e;
    background: #f4f9ee;
    color: #2a2a2a;
    font-weight: 600;
    box-shadow: 0 0 0 1px #7aaf3e;
}

/* === DIVIDER === */
.sh-divider {
    height: 1px;
    background: #eeece8;
    margin: 30px 0;
}

/* === ADDRESS CARD (STEP 2) === */
.sh-address-card {
    max-width: 680px;
    margin: 0 auto;
    background: #fafcf8;
    border: 1px solid #e8ecdf;
    border-radius: 12px;
    padding: 45px 50px;
}
.sh-row {
    display: flex;
    gap: 20px;
}
.sh-row .sh-field { flex: 1; }
.sh-row .sh-field.narrow { flex: 0 0 180px; }

/* === RODO === */
.sh-rodo-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8ecdf;
}
.sh-rodo-box input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #7aaf3e;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.sh-rodo-box label {
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    cursor: pointer;
}
.sh-rodo-box a {
    color: #7aaf3e;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sh-rodo-box.has-error {
    border-color: #c0392b;
}

/* === BUTTONS === */
.sh-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 45px;
    gap: 16px;
}
.sh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    border: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sh-btn svg {
    width: 16px;
    height: 16px;
}
.sh-btn-primary {
    background: #7aaf3e;
    color: #fff;
}
.sh-btn-primary:hover {
    background: #5d8a2e;
    box-shadow: 0 6px 20px rgba(122,175,62,0.35);
    transform: translateY(-1px);
}
.sh-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.sh-btn-secondary {
    background: transparent;
    color: #6b6b6b;
    border: 1px solid #e0e0e0;
}
.sh-btn-secondary:hover {
    border-color: #9ecb6a;
    color: #2a2a2a;
}

/* === MESSAGES === */
.sh-msg {
    display: none;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    margin-top: 24px;
    font-size: 14px;
    animation: shFadeIn 0.4s ease;
}
.sh-msg.success {
    display: block;
    background: #f0faf0;
    border: 1px solid #b5dbb5;
    color: #2d6e2d;
}
.sh-msg.success h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #27ae60;
}
.sh-msg.error {
    display: block;
    background: #fdf0f0;
    border: 1px solid #e5b5b5;
    color: #8b2d2d;
}

/* === TRUST BAR === */
.sh-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eeece8;
    flex-wrap: wrap;
}
.sh-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #999;
    letter-spacing: 0.3px;
}
.sh-trust-item svg {
    width: 20px;
    height: 20px;
    color: #7aaf3e;
    flex-shrink: 0;
}

/* === FILE UPLOAD === */
.sh-chip.is-disabled label,
.sh-pill.is-disabled label,
.sh-color-opt.is-disabled label {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.sh-upload {
    margin-bottom: 20px;
}
.sh-upload-area {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fafcf8;
}
.sh-upload-area:hover {
    border-color: #7aaf3e;
    background: #f4f9ee;
}
.sh-upload-area.drag-over {
    border-color: #7aaf3e;
    background: #eef5e4;
    border-style: solid;
}
.sh-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef5e4;
    color: #7aaf3e;
    font-size: 22px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.sh-upload-area:hover .sh-upload-icon {
    background: #7aaf3e;
    color: #fff;
}
.sh-upload-text {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    display: block;
    line-height: 1.2;
}
.sh-upload-formats {
    font-size: 11px;
    color: #aaa;
    display: block;
    margin-top: 2px;
}
/* Preview po dodaniu */
.sh-upload-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f4f9ee;
    border: 1px solid #d4e8c0;
    border-radius: 8px;
    position: relative;
    margin-top: 0;
}
.sh-upload-preview img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #d4e8c0;
    flex-shrink: 0;
}
.sh-upload-info {
    flex: 1;
    min-width: 0;
}
.sh-upload-filename {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sh-upload-filesize {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 2px;
}
.sh-upload-remove {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: #999;
    border: 1px solid #ddd;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.sh-upload-remove:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}
.sh-upload-hint {
    font-size: 11px;
    color: #aaa;
    display: block;
}

/* === INPOST FIELD === */
.sh-field .sh-inpost-hint {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
    display: block;
}
.sh-inpost-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.sh-inpost-row input {
    flex: 1;
    padding: 13px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #2a2a2a;
    background: #fafafa;
    cursor: pointer;
}
.sh-btn-inpost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    background: #ffcd00;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.sh-btn-inpost:hover {
    background: #e6b800;
    box-shadow: 0 4px 12px rgba(255,205,0,0.4);
}
.sh-btn-inpost svg {
    flex-shrink: 0;
}
/* Wybrany paczkomat — info card */
.sh-inpost-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 10px 14px;
    background: #fffbe6;
    border: 1px solid #f0d860;
    border-radius: 6px;
}
.sh-inpost-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
}
.sh-inpost-address {
    font-size: 12px;
    color: #666;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sh-inpost-clear {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #999;
    border: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.sh-inpost-clear:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}
/* Modal z mapą InPost */
.sh-inpost-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sh-inpost-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.sh-inpost-modal-content {
    position: relative;
    width: 90vw;
    height: 80vh;
    max-width: 1000px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1;
}
.sh-inpost-modal-content inpost-geowidget {
    display: block;
    width: 100%;
    height: 100%;
}
.sh-inpost-modal-x {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.sh-inpost-modal-x:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

/* === MOBILE === */
@media (max-width: 900px) {
    .sh-hero { min-height: auto; flex-direction: column; border-radius: 12px; }
    .sh-hero-bg { width: 100%; height: 220px; }
    .sh-hero-content { padding: 28px 24px; text-align: center; }
    .sh-hero-badges { justify-content: center; }
    .sh-main { padding: 28px 16px 50px; }
    .sh-grid-2col {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .sh-steps {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }
    .sh-step {
        padding: 12px 16px;
        font-size: 12px;
        white-space: nowrap;
    }
    .sh-color-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .sh-address-card {
        padding: 24px 20px;
    }
    .sh-row {
        flex-direction: column;
        gap: 0;
    }
    .sh-row .sh-field.narrow { flex: 1; }
    .sh-buttons { flex-direction: column-reverse; }
    .sh-btn {
        width: 100%;
        justify-content: center;
    }
    .sh-inpost-row {
        flex-direction: column;
    }
    .sh-btn-inpost {
        padding: 12px 18px;
        justify-content: center;
    }
    .sh-inpost-modal-content {
        width: 96vw;
        height: 90vh;
        border-radius: 8px;
    }
    .sh-chips { flex-direction: column; }
    .sh-chip label {
        width: 100%;
        justify-content: center;
    }
    .sh-trust { gap: 20px; }
    .sh-hero-badges {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 480px) {
    .sh-color-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* === PRICE INFO === */
.sh-price-info {
    margin-bottom: 28px;
}
.sh-price-info-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: #f4f9ee;
    border: 1px solid #c5e0a8;
    border-radius: 10px;
    font-size: 13px;
    color: #3d5e1e;
    line-height: 1.4;
}
.sh-price-info-inner svg {
    flex-shrink: 0;
    color: #7aaf3e;
}
.sh-price-info-inner strong {
    color: #2a2a2a;
    font-size: 15px;
}
