/* Corvette Stock Connector Frontend Stylesheet - Exact Match with Site Design, Rich Vehicle Specs, Pop-up Modal & Fluent Forms RWD Styling */

.csc-corvette-grid {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.csc-site-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #f1f5f9;
}

.csc-site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.csc-site-card-image-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 8px 16px;
    box-sizing: border-box;
}

.csc-site-card-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.csc-site-card:hover .csc-site-card-image-wrap img {
    transform: scale(1.04);
}

.csc-site-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
    letter-spacing: 0.3px;
}

.csc-site-card-body {
    padding: 16px 18px 22px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.csc-site-brand {
    font-size: 16px;
    font-weight: 800;
    color: #000000;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    line-height: 1.2;
}

.csc-site-model-desc {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Lista pełnej specyfikacji wewnątrz firmowej karty */
.csc-site-specs-list {
    width: 100%;
    margin: 4px 0 16px 0;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
    box-sizing: border-box;
}

.csc-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.csc-spec-label {
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    font-size: 11px;
}

.csc-spec-val {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
    font-size: 11px;
}

.csc-spec-vin {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed #cbd5e1;
}

.csc-spec-vin code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #e2e8f0;
    padding: 1px 5px;
    border-radius: 4px;
    color: #0f172a;
    font-size: 11px;
}

.csc-site-price {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    margin-top: auto;
    letter-spacing: -0.3px;
    transition: all 0.2s ease;
}

.csc-site-price:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Paginacja AJAX */
.csc-page-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.csc-page-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.csc-page-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

/* Pop-up Modal Base Styles */
.csc-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.csc-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    animation: cscModalSlide 0.25s ease-out;
}

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

.csc-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    font-weight: 300;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.csc-modal-close:hover {
    color: #0f172a;
}

.csc-modal-header {
    padding: 22px 24px 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.csc-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.csc-modal-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

/* ==========================================================================
   STYLIOWANIE I RWD DLA FLUENT FORMS WEWNĄTRZ MODALU
   ========================================================================== */

.csc-modal-content .fluentform {
    width: 100% !important;
    margin: 0 !important;
}

.csc-modal-content .fluentform .ff-el-group {
    margin-bottom: 12px !important;
}

/* Etykiety pól (Labels) */
.csc-modal-content .fluentform .ff-el-input--label label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 4px !important;
}

/* Pola tekstowe (Input fields) */
.csc-modal-content .fluentform .ff-el-form-control {
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-sizing: border-box !important;
    height: auto !important;
}

.csc-modal-content .fluentform .ff-el-form-control:focus {
    border-color: #0f172a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1) !important;
}

/* Zgoda RODO / Checkbox */
.csc-modal-content .fluentform .ff-el-form-check-label {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

/* Przycisk Wyślij (Submit Button) */
.csc-modal-content .fluentform .ff-btn-submit,
.csc-modal-content .fluentform button[type="submit"] {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
    margin-top: 10px !important;
    text-align: center !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

.csc-modal-content .fluentform .ff-btn-submit:hover,
.csc-modal-content .fluentform button[type="submit"]:hover {
    background: #1e293b !important;
    transform: translateY(-1px) !important;
}

/* Responsywność RWD dla urządzeń mobilnych (Smartfony < 640px) */
@media (max-width: 640px) {
    .csc-modal-backdrop {
        padding: 12px !important;
    }

    .csc-modal-content {
        max-height: 92vh !important;
        border-radius: 12px !important;
    }

    .csc-modal-header {
        padding: 16px 18px 12px 18px !important;
    }

    .csc-modal-header h3 {
        font-size: 15px !important;
    }

    .csc-modal-body {
        padding: 16px !important;
        max-height: 75vh !important;
    }

    .csc-modal-content .fluentform .ff-t-container {
        gap: 8px !important;
    }

    .csc-modal-content .fluentform .ff-el-group {
        margin-bottom: 10px !important;
    }

    .csc-modal-content .fluentform .ff-el-input--label label {
        font-size: 12px !important;
    }

    .csc-modal-content .fluentform .ff-el-form-control {
        padding: 9px 12px !important;
        font-size: 12px !important;
    }

    .csc-modal-content .fluentform .ff-el-form-check-label {
        font-size: 10px !important;
    }

    .csc-modal-content .fluentform .ff-btn-submit,
    .csc-modal-content .fluentform button[type="submit"] {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* Oxygen Builder Shortcode Containers Full Width Fix */
.csc-hd-gallery-container,
.csc-equipment-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
