/* =========================================
   Paint Color Selector – Styles
   ========================================= */

/* --- Button --- */
.pcs-button-wrapper {
    margin-bottom: 16px;
}

.pcs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border: 2px solid #e53935;
    border-radius: 50px;
    background: #fff !important;
    color: #222;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s, border-color 0.22s, transform 0.15s;
    line-height: 1;
    text-transform: uppercase;
}

.pcs-btn:hover {
    background: #fff !important;
    color: #e53935;
    box-shadow: 0 4px 18px rgba(229, 57, 53, 0.35);
    transform: translateY(-1px);
}

.pcs-btn:hover .pcs-icon img {
    filter: none;
}

.pcs-btn:active {
    transform: translateY(0);
}

.pcs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pcs-icon img {
    width: 26px;
    height: 26px;
    transition: filter 0.22s;
}

/* --- Overlay --- */
.pcs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}

/* --- Popup --- */
.pcs-popup {
    background: #f3f3f3;
    border: 1.5px solid #cacaca;
    border-radius: 10px;
    padding: 32px 36px 28px;
    max-width: 760px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
    animation: pcs-slide-in 0.22s cubic-bezier(.4, 0, .2, 1);
    font-family: Arial, sans-serif;
}

@keyframes pcs-slide-in {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Close button --- */
.pcs-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #e53935;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
    font-family: Arial, sans-serif;
}

.pcs-close:hover {
    background: rgba(229, 57, 53, 0.08);
}

/* --- Header --- */
.pcs-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

/* Title: Arial Bold 24px */
.pcs-popup-header h2 {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.pcs-popup-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.pcs-popup-icon img {
    width: 32px;
    height: 32px;
}

/* --- Form grid (top 4 inputs) --- */
.pcs-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 22px;
}

/* --- Field --- */
.pcs-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Labels: Arial Bold 14px */
.pcs-field label,
.pcs-label-bold {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.pcs-required {
    color: #e53935;
}

.pcs-field input[type="text"],
.pcs-field input[type="tel"],
.pcs-field input[type="email"],
.pcs-field input[type="number"] {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #222;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    outline: none;
    transition: box-shadow 0.18s;
    width: 100%;
    box-sizing: border-box;
}

.pcs-field input:focus {
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.22), 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* --- Bottom section layout --- */
.pcs-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* --- Radio list --- */
/* "Wybierz wzornik" label: Arial Bold 18px */
.pcs-field--radio .pcs-label-bold {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    display: block;
}

.pcs-radio-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pcs-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.pcs-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #e53935;
    flex-shrink: 0;
    cursor: pointer;
}

.pcs-radio-other {
    flex-wrap: wrap;
}

.pcs-other-input {
    margin-left: 4px;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    width: auto !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* --- Right column --- */
.pcs-field-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Quantity row --- */
.pcs-quantity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pcs-quantity-row input[type="number"] {
    width: 90px;
    flex-shrink: 0;
}

.pcs-unit-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pcs-unit-btn {
    padding: 9px 18px;
    border: 1.5px solid #ccc;
    border-radius: 10px;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    font-weight: 500;
}

.pcs-unit-btn.active,
.pcs-unit-btn:hover {
    border-color: #e53935;
    background: #fff0f0;
    color: #e53935;
}

.pcs-or {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #888;
}

/* --- Submit button --- */
.pcs-submit-row {
    margin-top: 26px;
}

#pcs-overlay .pcs-submit-btn,
#pcs-overlay .pcs-submit-btn:link,
#pcs-overlay .pcs-submit-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 44px;
    background: #e53935 !important;
    background-color: #e53935 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.03em;
    line-height: 1;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
    min-width: 220px;
}

#pcs-overlay .pcs-submit-btn:hover {
    background: #c62828 !important;
    background-color: #c62828 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

#pcs-overlay .pcs-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --- Success / Error messages --- */
.pcs-success {
    background: #e8f5e9;
    border: 1.5px solid #43a047;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 18px;
    color: #2e7d32;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.pcs-error {
    background: #ffebee;
    border: 1.5px solid #e53935;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 18px;
    color: #c62828;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.pcs-error p,
.pcs-success p {
    margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .pcs-popup {
        padding: 22px 16px 18px;
    }

    .pcs-form-grid,
    .pcs-field-group {
        grid-template-columns: 1fr;
    }

    .pcs-popup-header h2 {
        font-size: 18px;
    }

    .pcs-submit-btn {
        width: 100%;
    }
}
