/* ========================================
   SHARED PANEL STYLE
   Used by both the form and each result card
   ======================================== */

.pr-panel {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    padding: 30px;
    margin-bottom: 20px;
}

/* ========================================
   FORM STYLES
   ======================================== */

.pr-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.pr-form-question {
    margin-bottom: 25px;
}

.pr-form-question label,
.pr-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.pr-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
}

.pr-zone-link {
    font-size: 13px;
    font-weight: normal;
    color: #2271b1;
    margin-left: 5px;
}

/* Slider */
.pr-slider-container {
    padding: 5px 0;
}

/* Slider Labels - table-based to force inline in all browsers */
.pr-slider-labels {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin-bottom: 8px;
}

.pr-slider-labels span {
    display: table-cell;
    text-align: center;
    font-size: 13px;
    color: #666;
    vertical-align: middle;
    white-space: nowrap;
}

.pr-slider-labels span:first-child {
    text-align: left;
}

.pr-slider-labels span:last-child {
    text-align: right;
}

.pr-slider-value {
    font-weight: 700;
    color: #2271b1;
    font-size: 15px;
}

.pr-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
    outline: none;
    opacity: 0.9;
    display: block;
    margin: 0;
    padding: 0;
}

.pr-slider:hover { opacity: 1; }

.pr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2271b1;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pr-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2271b1;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Form Buttons */
.pr-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.pr-button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pr-button-primary {
    background-color: #2271b1;
    color: #fff;
}

.pr-button-primary:hover {
    background-color: #135e96;
    color: #fff;
}

.pr-button-secondary {
    background-color: #ddd;
    color: #333;
}

.pr-button-secondary:hover {
    background-color: #ccc;
    color: #333;
}

/* Loading */
.pr-loading {
    text-align: center;
    padding: 20px;
}

/* No Results */
.pr-no-results {
    text-align: center;
    padding: 30px 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 16px;
}

.pr-error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
}

/* Series Link */
.pr-series-link {
    color: #2271b1;
    text-decoration: underline;
}
.pr-series-link:hover {
    color: #135e96;
}

/* ========================================
   RESULTS HEADER + COMPARE ALL BUTTON
   ======================================== */

.pr-results-header {
    text-align: center;
    margin-bottom: 20px;
}

.pr-results-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    padding: 0;
}

.pr-results-header p {
    color: #666;
    font-size: 15px;
    margin: 0;
    padding: 0;
}

.pr-compare-all-wrapper {
    text-align: center;
    margin-bottom: 25px;
}

.pr-compare-all-button {
    display: inline-block;
    padding: 13px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    background-color: #0073aa;
    color: #fff;
    border: 2px solid #0073aa;
    transition: all 0.3s ease;
}

.pr-compare-all-button:hover {
    background-color: #005a87;
    border-color: #005a87;
    color: #fff;
    text-decoration: none;
}

/* ========================================
   RESULTS CARDS - 2 COLUMN FLOAT LAYOUT
   ======================================== */

/* Clearfix for float container */
.pr-results-container::after {
    content: "";
    display: table;
    clear: both;
}

/* Each product takes up half the row */
.pr-product-item {
    float: left;
    width: 49%;
    margin: 0 0.5% 20px 0.5%;
    box-sizing: border-box;
}

/* Single result: cap width and center */
.pr-results-container.pr-single-result .pr-product-item {
    float: none;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* The inner panel - matches the form style exactly */
.pr-product-inner {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.pr-product-inner:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Product Image */
.pr-product-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    text-align: center;
    line-height: 200px;
}

.pr-product-img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Product Details */
.pr-product-details {
    padding: 22px;
}

.pr-product-title {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
    margin: 0 0 14px 0;
    padding: 0;
    line-height: 1.3;
}

/* Specs Table - reliable two-column layout */
.pr-product-specs {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 14px 0;
}

.pr-product-specs td {
    padding: 7px 0;
    vertical-align: top;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.4;
}

.pr-spec-label {
    font-weight: 600;
    color: #555;
    width: 130px;
    padding-right: 10px;
    white-space: nowrap;
}

.pr-spec-value {
    color: #333;
}

/* Summary */
.pr-product-summary {
    margin: 12px 0;
    padding: 12px 15px;
    background: #f8f9fa;
    border-left: 3px solid #2271b1;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Compare Button */
.pr-product-action {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
}

.pr-compare-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    background-color: #28a745;
    color: #fff;
    border: 2px solid #28a745;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.pr-compare-button:hover {
    background-color: #218838;
    border-color: #218838;
    color: #fff;
    text-decoration: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 700px) {
    .pr-product-item {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }

    .pr-results-container.pr-single-result .pr-product-item {
        width: 100%;
    }

    .pr-spec-label {
        width: 110px;
    }

    .pr-product-details {
        padding: 15px;
    }
}
