:root {
    --pc-bg-page: transparent;
    --pc-bg-calc: #ffffff;
    --pc-card: #f8f9fa;
    --pc-ink: #181818;
    --pc-ink-light: #7A7A7A;
    --pc-secondary: #54595F;
    --pc-accent: #0369B6;
    --pc-accent-hover: #035193;
    --pc-track-bg: #eaedf1;
    --pc-border: #e2e8f0;
}

.pc-widget {
    color: var(--pc-ink);
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    perspective: 1500px;
    position: relative;
    width: 100%;
}

.pc-card-wrapper {
    background: var(--pc-bg-calc);
    border-radius: var(--pc-border-radius, 20px);
    box-shadow: var(--pc-widget-shadow, 0 20px 50px rgba(0, 0, 0, 0.2));
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.pc-widget.is-flipped .pc-card-wrapper {
    transform: rotateY(180deg);
}

.pc-card-face {
    backface-visibility: hidden;
    border-radius: var(--pc-border-radius, 20px);
    box-sizing: border-box;
    padding: var(--pc-card-padding, 40px);
    width: 100%;
}

.pc-card--back {
    align-items: center;
    background: var(--pc-bg-calc);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    transform: rotateY(180deg);
}

.pc-layout-front {
    display: flex;
    gap: 40px;
}

.pc-col-left {
    flex: 1;
}

.pc-col-right {
    flex-shrink: 0;
    width: 320px;
}

.pc-title {
    color: var(--pc-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 30px;
}

.pc-slider {
    margin-bottom: 24px;
}

.pc-slider-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pc-label {
    color: var(--pc-secondary);
    font-size: 14px;
    font-weight: 500;
}

.pc-value-box {
    background: #ffffff;
    border: 1px solid var(--pc-border);
    border-radius: 6px;
    color: var(--pc-accent);
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
}

.pc-help-text {
    color: var(--pc-ink-light);
    display: flex;
    font-size: 11px;
    justify-content: space-between;
    margin-top: 8px;
}

.pc-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: var(--pc-track-bg);
    border-radius: 4px;
    height: 8px;
    margin: 0;
    outline: none;
    width: 100%;
}

.pc-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #ffffff;
    border: 2px solid var(--pc-accent);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    height: 20px;
    width: 20px;
}

.pc-slider input[type="range"]::-moz-range-thumb {
    background: #ffffff;
    border: 2px solid var(--pc-accent);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    height: 20px;
    width: 20px;
}

.pc-results-card {
    background: var(--pc-card);
    border: 1px solid var(--pc-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 24px;
}

.pc-result-row {
    margin-bottom: 20px;
}

.pc-result-header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pc-result-label {
    color: var(--pc-ink);
    font-size: 14px;
    font-weight: 700;
}

.pc-result-value {
    color: var(--pc-ink);
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}

.pc-result-desc {
    color: var(--pc-ink-light);
    font-size: 11px;
    line-height: 1.4;
    padding-right: 20px;
}

.pc-divider {
    background: #f0f0f0;
    height: 1px;
    margin: 20px 0;
    width: 100%;
}

.pc-roi-section {
    margin-top: auto;
    padding-top: 10px;
}

.pc-roi-label {
    color: var(--pc-ink);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pc-roi-value {
    color: var(--pc-ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.pc-cta-section {
    margin-top: 24px;
}

.pc-cta-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pc-cta-desc {
    color: var(--pc-ink-light);
    font-size: 12px;
    margin-bottom: 16px;
}

.pc-action {
    background: var(--pc-accent);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: block;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 16px;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}

.pc-action:hover {
    background: var(--pc-accent-hover);
}

.pc-action:active {
    transform: scale(0.98);
}

.pc-action:disabled {
    cursor: wait;
    opacity: 0.75;
}

.pc-form-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    max-width: 400px;
    padding: 40px;
    width: 100%;
}

.pc-form-container .pc-title {
    margin-bottom: 24px;
    text-align: center;
}

.pc-field {
    margin-bottom: 20px;
}

.pc-field .pc-label {
    display: block;
    margin-bottom: 8px;
}

.pc-field input {
    background: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    padding: 12px 16px;
    transition: border-color 0.2s;
    width: 100%;
}

.pc-field input:focus {
    background: #ffffff;
    border-color: var(--pc-accent);
    outline: none;
}

.pc-field input.is-invalid {
    border-color: #DC2626;
}

.pc-field-error {
    color: #DC2626;
    display: none;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 6px;
}

.pc-field-error.is-visible {
    display: block;
}

.pc-form-error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 8px;
    color: #B91C1C;
    display: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
    padding: 10px 12px;
}

.pc-form-error.is-visible {
    display: block;
}

.pc-link {
    background: none;
    border: none;
    color: var(--pc-ink-light);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    margin-top: 16px;
    text-decoration: underline;
    width: 100%;
}

.pc-success-message {
    background: rgba(3, 105, 182, 0.1);
    border: 1px solid rgba(3, 105, 182, 0.22);
    border-radius: 8px;
    color: var(--pc-accent);
    display: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    padding: 12px 14px;
}

.pc-success-message.is-visible {
    display: block;
}

@media (max-width: 768px) {
    .pc-layout-front {
        flex-direction: column;
    }

    .pc-col-right {
        width: 100%;
    }

    .pc-card-face {
        padding: min(var(--pc-card-padding, 40px), 24px) 20px;
    }
}
