/* ============================================
   StylHampton - Formularz próbek tkanin v3
   Full-width, 2-step layout
   Kolor przewodni: #c9a25d (złoto)
   ============================================ */

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

.sh-form-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* === HERO — SPLIT LAYOUT === */
.sh-hero {
    width: 100%;
    display: flex;
    flex-direction: row;
    min-height: 360px;
    border-radius: 16px;
    overflow: hidden;
    background: #faf7f2;
    border: 1px solid #e8dcc8;
    margin-bottom: 40px;
}
.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-content h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 14px;
    line-height: 1.25;
}
.sh-hero-content h2 span {
    color: #a8873e;
}
.sh-hero-content > p {
    font-size: 14px;
    color: #555;
    max-width: 420px;
    margin-bottom: 28px;
}
.sh-hero-badges {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.sh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.7);
    border: 1px solid #e8dcc8;
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #a8873e;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.sh-hero-badge svg {
    width: 16px;
    height: 16px;
    fill: #c9a25d;
    flex-shrink: 0;
}

/* === MAIN CONTAINER === */
.sh-main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === STEPS === */
.sh-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}
.sh-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 100px;
    background: #f5f5f5;
    cursor: default;
    transition: all 0.3s ease;
}
.sh-step.active {
    background: #c9a25d;
    color: #fff;
}
.sh-step.completed {
    background: #faf7f2;
    color: #a8873e;
    cursor: pointer;
}
.sh-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.sh-step.active .sh-step-num {
    background: rgba(255,255,255,0.3);
    color: #fff;
}
.sh-step.completed .sh-step-num {
    background: #c9a25d;
    color: #fff;
}
.sh-step-label {
    font-size: 13px;
    font-weight: 600;
}

/* === PANELS === */
.sh-panel { display: none; }
.sh-panel.active { display: block; animation: shFadeIn 0.3s ease; }
@keyframes shFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

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

/* === SECTION LABELS === */
.sh-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c9a25d;
    margin-bottom: 6px;
}
.sh-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 12px;
}
.sh-hint {
    font-size: 12px;
    color: #999;
    margin-bottom: 14px;
}
.sh-divider {
    height: 1px;
    background: #eee;
    margin: 24px 0;
}

/* === FORM FIELDS === */
.sh-field {
    margin-bottom: 18px;
}
.sh-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.sh-field label .req {
    color: #c9a25d;
}
.sh-field input[type="text"],
.sh-field input[type="email"],
.sh-field input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}
.sh-field input:focus {
    border-color: #c9a25d;
    box-shadow: 0 0 0 3px rgba(201,162,93,0.15);
}
.sh-field.has-error input,
.sh-field.has-error .sh-inpost-row input {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}
.sh-error-msg {
    display: none;
    font-size: 11px;
    color: #e74c3c;
    margin-top: 4px;
}
.sh-field.has-error .sh-error-msg {
    display: block;
}
.sh-row {
    display: flex;
    gap: 16px;
}
.sh-row .sh-field { flex: 1; }
.sh-row .sh-field.narrow { flex: 0 0 140px; }

/* === CHIPS (fabric type) === */
.sh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.sh-chip { position: relative; }
.sh-chip input[type="checkbox"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.sh-chip label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}
.sh-chip label:hover {
    border-color: #c9a25d;
    color: #2a2a2a;
}
.sh-chip-check {
    width: 18px; height: 18px;
    border-radius: 4px;
    border: 2px solid #ccc;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.sh-chip input:checked + label {
    border-color: #c9a25d;
    background: #faf7f2;
    color: #2a2a2a;
}
.sh-chip input:checked + label .sh-chip-check {
    background: #c9a25d;
    border-color: #c9a25d;
}
.sh-chip input:checked + label .sh-chip-check::after {
    content: '✓'; color: #fff; font-size: 12px; font-weight: 700;
}

/* === PILLS (texture - multi-select) === */
.sh-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.sh-pill { position: relative; }
.sh-pill input[type="checkbox"],
.sh-pill input[type="radio"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.sh-pill label {
    display: inline-block;
    padding: 8px 18px;
    border: 1.5px solid #e0e0e0;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}
.sh-pill label:hover {
    border-color: #c9a25d;
    color: #2a2a2a;
}
.sh-pills-multi .sh-pill input[type="checkbox"]:checked + label {
    background: #faf7f2;
    border-color: #c9a25d;
    color: #a8873e;
    font-weight: 600;
    box-shadow: 0 0 0 1px #c9a25d;
}

/* === COLOR GRID === */
.sh-color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}
.sh-color-opt { position: relative; }
.sh-color-opt input[type="checkbox"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.sh-color-opt label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}
.sh-color-opt label:hover {
    background: #faf7f2;
    border-color: #e8dcc8;
}
.sh-color-circle {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid #e8e8e8;
    transition: all 0.2s ease;
}
.sh-color-label {
    font-size: 11px;
    color: #777;
    text-align: center;
    line-height: 1.2;
}
.sh-color-opt input:checked + label {
    border-color: #c9a25d;
    background: #faf7f2;
}
.sh-color-opt input:checked + label .sh-color-circle {
    border-color: #c9a25d;
    box-shadow: 0 0 0 3px rgba(201,162,93,0.25);
}
.sh-color-opt input:checked + label .sh-color-label {
    color: #a8873e;
    font-weight: 600;
}

.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;
}

/* === FILE UPLOAD === */
.sh-upload { margin-bottom: 20px; }
.sh-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 20px;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fdfcfa;
}
.sh-upload-area:hover {
    border-color: #c9a25d;
    background: #faf7f2;
}
.sh-upload-area.drag-over {
    border-color: #c9a25d;
    background: #f5efe4;
    transform: scale(1.01);
}
.sh-upload-icon { font-size: 32px; color: #c9a25d; line-height: 1; }
.sh-upload-text { font-size: 13px; font-weight: 600; color: #555; }
.sh-upload-formats,
.sh-upload-hint { font-size: 11px; color: #aaa; display: block; }
.sh-upload-preview {
    position: relative;
    display: inline-block;
    margin-top: 12px;
}
.sh-upload-preview img {
    max-width: 200px; max-height: 150px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    object-fit: cover;
}
.sh-upload-info { margin-top: 6px; font-size: 11px; color: #999; }
.sh-upload-remove {
    position: absolute; top: -8px; right: -8px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #c0392b; color: #fff; border: none;
    font-size: 16px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.sh-upload-remove:hover { background: #a93226; }

/* === INPOST === */
.sh-inpost-row { display: flex; gap: 10px; align-items: stretch; }
.sh-inpost-row input { flex: 1; }
.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: inherit;
    font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: all 0.2s ease;
}
.sh-btn-inpost:hover {
    background: #e6b800;
    box-shadow: 0 2px 8px rgba(255,205,0,0.4);
}
.sh-inpost-selected {
    display: flex; align-items: center; gap: 10px;
    margin-top: 10px; padding: 12px 16px;
    background: #fffbe6; border: 1px solid #ffe066; border-radius: 8px;
}
.sh-inpost-name { font-weight: 600; font-size: 14px; color: #1a1a1a; }
.sh-inpost-address { font-size: 12px; color: #666; flex: 1; }
.sh-inpost-clear { background: none; border: none; font-size: 20px; color: #999; cursor: pointer; padding: 0 4px; }
.sh-inpost-clear:hover { color: #c0392b; }

/* === INPOST MODAL === */
.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.6);
}
.sh-inpost-modal-content {
    position: relative; width: 90vw; height: 80vh; max-width: 900px;
    background: #fff; border-radius: 12px; overflow: hidden; 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;
    background: #fff; border: 1px solid #ddd; border-radius: 50%;
    width: 32px; height: 32px; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.sh-inpost-modal-x:hover { background: #f5f5f5; }

/* === ADDRESS CARD === */
.sh-address-card {
    max-width: 640px; margin: 0 auto;
    background: #fff; border: 1px solid #eee;
    border-radius: 16px; padding: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* === BUTTONS === */
.sh-buttons {
    display: flex; justify-content: space-between;
    align-items: center; margin-top: 32px; gap: 16px;
}
.sh-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 10px;
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.25s ease; border: none;
}
.sh-btn svg { width: 18px; height: 18px; }
.sh-btn-primary { background: #c9a25d; color: #fff; }
.sh-btn-primary:hover {
    background: #a8873e;
    box-shadow: 0 4px 15px rgba(201,162,93,0.35);
    transform: translateY(-1px);
}
.sh-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.sh-btn-secondary { background: #f5f5f5; color: #555; border: 1px solid #e0e0e0; }
.sh-btn-secondary:hover { background: #eee; }

/* === RODO === */
.sh-rodo-box {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 18px; background: #fafafa;
    border-radius: 10px; margin-top: 24px; border: 1px solid #eee;
}
.sh-rodo-box input[type="checkbox"] {
    margin-top: 3px; width: 18px; height: 18px;
    accent-color: #c9a25d; flex-shrink: 0;
}
.sh-rodo-box label { font-size: 12px; color: #666; line-height: 1.5; }
.sh-rodo-box a { color: #c9a25d; text-decoration: underline; }
.sh-rodo-box.has-error { border-color: #e74c3c; background: #fef5f5; }

/* === MESSAGES === */
.sh-msg { display: none; padding: 20px 24px; border-radius: 12px; margin-top: 24px; font-size: 14px; }
.sh-msg.success { background: #faf7f2; border: 1px solid #c9a25d; color: #2a2a2a; }
.sh-msg.success h3 { color: #c9a25d; font-size: 18px; margin-bottom: 8px; }
.sh-msg.error { background: #fef5f5; border: 1px solid #e74c3c; color: #c0392b; }

/* === TRUST === */
.sh-trust {
    display: flex; justify-content: center; gap: 32px;
    margin-top: 48px; padding: 24px 0; border-top: 1px solid #eee;
}
.sh-trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #999;
}
.sh-trust-item svg { width: 18px; height: 18px; color: #c9a25d; }

/* === MOBILE === */
@media (max-width: 900px) {
    .sh-grid-2col { grid-template-columns: 1fr; gap: 20px; }
    .sh-color-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .sh-hero { min-height: auto; flex-direction: column; border-radius: 12px; margin-left: 0; margin-right: 0; }
    .sh-hero-bg { width: 100%; height: 220px; }
    .sh-hero-content { padding: 28px 24px; text-align: center; }
    .sh-hero-content h2 { font-size: 22px; }
    .sh-hero-badges { justify-content: center; }
    .sh-steps { gap: 6px; }
    .sh-step { padding: 10px 16px; }
    .sh-step-label { font-size: 12px; }
    .sh-color-grid { grid-template-columns: repeat(3, 1fr); }
    .sh-row { flex-direction: column; gap: 0; }
    .sh-row .sh-field.narrow { flex: auto; }
    .sh-address-card { padding: 24px 20px; }
    .sh-buttons { flex-direction: column-reverse; }
    .sh-btn { width: 100%; justify-content: center; }
    .sh-trust { flex-direction: column; align-items: center; gap: 12px; }
    .sh-inpost-row { flex-direction: column; }
}
