/* =========================================
   Zapytaj o Cenę – Style
   ========================================= */

/* Przycisk */
.zoc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #4283bd;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s;
    box-shadow: none;
    margin: 12px 0;
}
.zoc-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.zoc-btn:hover {
    background-color: #104d83 !important;
    transform: none;
    box-shadow: none;
}

/* Overlay */
.zoc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: zocFadeIn .2s ease;
}
.zoc-overlay.zoc-active {
    display: flex;
}

@keyframes zocFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal */
.zoc-modal {
    background: #fff;
    border-radius: 0;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    animation: zocSlideUp .25s cubic-bezier(.34,1.26,.64,1);
    max-height: 90vh;
    overflow-y: auto;
    border-top: 4px solid #104d83;
}

@keyframes zocSlideUp {
    from { opacity: 0; transform: translateY(28px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ikona */
.zoc-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: #e8f0f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.zoc-modal-icon svg {
    width: 24px;
    height: 24px;
    stroke: #104d83;
}

/* Nagłówek */
.zoc-modal h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #104d83 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    border: none !important;
}
.zoc-subtitle {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 0 24px !important;
    line-height: 1.5 !important;
}

/* Przycisk zamknięcia */
.zoc-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e8f0f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 0;
    font-size: 14px;
    color: #104d83;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    line-height: 1;
}
.zoc-close:hover {
    background: #104d83;
    color: #fff;
}

/* Pola formularza */
.zoc-field {
    margin-bottom: 16px;
}
.zoc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.zoc-field label span {
    color: #104d83;
}
.zoc-field label small {
    font-weight: 400;
    color: #999;
    font-size: 12px;
}
.zoc-field input,
.zoc-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d9e6;
    border-radius: 0;
    font-size: 14px;
    color: #111;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}
.zoc-field input:focus,
.zoc-field textarea:focus {
    border-color: #4283bd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(66, 131, 189, .12);
}
.zoc-field textarea {
    resize: vertical;
    min-height: 90px;
}

/* Błąd */
.zoc-error {
    background: #eef4fb;
    border: 1px solid #4283bd;
    color: #104d83;
    border-radius: 0;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

/* Przycisk wyślij */
.zoc-submit {
    width: 100%;
    padding: 13px;
    background: #104d83;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}
.zoc-submit:hover:not(:disabled) {
    background: #0d3f6e;
}
.zoc-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* Sukces */
.zoc-success {
    text-align: center;
    padding: 20px 0;
}
.zoc-success-icon {
    width: 60px;
    height: 60px;
    background: #e8f0f9;
    color: #104d83;
    border-radius: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-weight: 700;
}
.zoc-success p {
    font-size: 16px !important;
    color: #104d83 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* Admin styles */
.zoc-admin .form-table th {
    width: 240px;
}

/* Mobile */
@media (max-width: 520px) {
    .zoc-modal {
        padding: 28px 20px 24px;
    }
}

/* Pole produktu – tylko do odczytu */
.zoc-produkt-display {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d9e6;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    color: #104d83;
    background: #e8f0f9;
    box-sizing: border-box;
}

/* Ukryj widget "Dodaj do koszyka" Elementora gdy jest przycisk Zapytaj o cenę */
.zoc-has-button .elementor-add-to-cart,
.zoc-has-button .elementor-widget-woocommerce-product-add-to-cart {
    display: none !important;
}
