.ptcd-public-calculator {
    background: #faf6fc;
    border: 2px solid #cfd1f2;
    box-shadow: 0 4px 20px #cfd1f240, 0 1.5px 3px #0001;
    border-radius: 16px;
    max-width: 95%;
    margin: 44px auto 18px auto;
    padding: 2.2em 2em 1.5em 2em;
    transition: box-shadow 0.18s;
}

.ptcd-form {
    margin-bottom: 1.5em;
}

.ptcd-form-table {
    width: 100%;
    margin-bottom: 1.3em;
    border-collapse: collapse;
}
.ptcd-form-table th, .ptcd-form-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #ececf0;
}
.ptcd-form-table th {
    font-weight: 500;
    color: #202042;
}

.ptcd-form-fields {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1.3em;
}

.ptcd-form-fields .ptcd-field-group {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ptcd-form-fields label {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 1.07em;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ptcd-form input[type=number] {
    border: 1.5px solid #bbb;
    border-radius: 7px;
    padding: 0.55em 0.8em;
    font-size: 1em;
    width: 100%;
    transition: border 0.18s, box-shadow 0.16s;
    background: #fff;
}

.ptcd-form input[type=number]:focus {
    border-color: #d90a2c;
    box-shadow: 0 1.5px 8px #d90a2c11;
    outline: none;
}
.ptcd-form input[type=number]:hover {
    border-color: #c2c4e6;
}

.ptcd-tooltip {
    cursor: pointer;
    color: #5e5e80;
    font-size: 0.98em;
    margin-left: 2px;
    display: inline-block;
    vertical-align: middle;
}
.ptcd-tooltip:hover .ptcd-tooltip-text {
    opacity: 1;
    pointer-events: all;
}
.ptcd-tooltip-text {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 1.7em;
    top: 100%;
    z-index: 999;
    width: 250px;
    background: #232345;
    color: #fff;
    font-size: 0.97em;
    padding: 9px 14px;
    border-radius: 7px;
    box-shadow: 0 2px 12px #0002;
    transition: opacity 0.18s;
    margin-top: 7px;
    line-height: 1.4;
}

.ptcd-form-toggle {
    margin-bottom: 1.2em;
    display: flex;
    gap: 20px;
}
.ptcd-form-toggle label {
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 500;
}
.ptcd-form-toggle i {
    font-size: 1.18em;
    margin-right: 3px;
    color: #d90a2c;
}

.ptcd-form button[type=submit] {
    padding: 12px 36px;
    background: #d90a2c;
    border: none;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1em;
    letter-spacing: .5px;
    box-shadow: 0 1.5px 6px #0001;
    transition: background 0.15s;
    margin-top: 10px;
}
.ptcd-form button[type=submit]:hover {
    background: #ad0821;
    cursor: pointer;
}
@media (max-width: 700px) {
    .ptcd-public-calculator { padding: 1em 0.5em; }
    .ptcd-form-fields { flex-direction: column; gap: 12px; }
}

.ptcd-chart-card {
    min-width: 300px;
    max-width: 400px;
    width: 40%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 3px 16px #d2d2e722;
    padding: 1.2em 1em 1em 1em;
    margin: 0.5em 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.18s;
}
.ptcd-chart-card:hover {
    box-shadow: 0 8px 26px #d90a2c18;
}

.ptcd-dollar-input {
    position: relative;
    display: flex;
    align-items: center;
}
.ptcd-dollar-input .ptcd-dollar-sign {
    position: absolute;
    left: 12px;
    font-size: 1.05em;
    color: #888;
    pointer-events: none;
}
.ptcd-dollar-input input[type=number] {
    padding-left: 1.4em !important;
}