.cpc-wrap {
    max-width: 1100px;
    margin: 24px auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #ececec;
}

.cpc-header {
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
    color: #fff;
    text-align: center;
    padding: 28px 20px;
}

.cpc-header h2 {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 700;
	color: #fff;
}

.cpc-header p {
    margin: 0;
    font-size: 17px;
}

.cpc-body {
    padding: 28px;
}

.cpc-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0 18px;
    color: #222;
}

.cpc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.cpc-field-full {
    grid-column: 1 / -1;
}

.cpc-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #222;
}

.cpc-field label span {
    color: #d32f2f;
}

.cpc-field input,
.cpc-field select {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 16px;
    background: #fff;
}

.cpc-size-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cpc-size-row input {
    flex: 1;
}

.cpc-preview-wrap {
    margin-top: 28px;
    padding-top: 8px;
    border-top: 1px solid #ececec;
}

.cpc-preview-box {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 18px;
    overflow-x: auto;
}

.cpc-quote-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.cpc-quote-table th,
.cpc-quote-table td {
    border: 1px solid #d9d9d9;
    padding: 12px 10px;
    font-size: 15px;
}

.cpc-quote-table th {
    background: #f3f3f3;
    text-align: center;
    font-weight: 700;
}

.cpc-quote-table td {
    text-align: center;
}

.cpc-summary {
    width: 340px;
    margin-left: auto;
    margin-top: 16px;
}

.cpc-summary div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 16px;
}

.cpc-grand-total {
    border-top: 1px solid #d9d9d9;
    margin-top: 6px;
    padding-top: 10px !important;
    font-size: 18px !important;
    color: #173a8f;
}

.cpc-contact-section {
    margin-top: 26px;
    padding: 22px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
}

.cpc-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.cpc-btn {
    min-width: 240px;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: #c62828;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.cpc-btn-blue {
    background: #173a8f;
}

.cpc-btn-orange {
    background: #d97706;
}

body.cpc-modal-open {
    overflow: hidden;
}

.cpc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.cpc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cpc-modal-box {
    position: relative;
    width: calc(100% - 32px);
    max-width: 520px;
    margin: 80px auto 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    padding: 28px 24px 24px;
    z-index: 2;
    animation: cpcModalPop 0.2s ease-out;
}

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

.cpc-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.cpc-modal-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.cpc-modal-title {
    margin: 0 0 10px;
    text-align: center;
    font-size: 28px;
    color: #173a8f;
}

.cpc-modal-text {
    margin: 0 0 18px;
    text-align: center;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.cpc-modal-contact {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px;
    padding: 14px 16px;
}

.cpc-modal-contact div {
    padding: 7px 0;
    border-bottom: 1px solid #ececec;
    font-size: 15px;
    color: #333;
}

.cpc-modal-contact div:last-child {
    border-bottom: none;
}

.cpc-modal-actions {
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .cpc-grid {
        grid-template-columns: 1fr;
    }

    .cpc-size-row {
        flex-wrap: wrap;
    }

    .cpc-summary {
        width: 100%;
    }

    .cpc-modal-title {
        font-size: 24px;
    }
}