:root {
    --pte-sky: #eef8ff;
    --pte-sky-strong: #dff1fb;
    --pte-mint: #eef9ef;
    --pte-mint-strong: #dff0db;
    --pte-line: #d8e9ee;
    --pte-text: #3f4b53;
    --pte-heading: #2d3b44;
    --pte-green: #8ccf7a;
    --pte-green-dark: #5f9d4f;
    --pte-orange: #f5a15d;
    --pte-orange-dark: #ef8f43;
    --pte-white: #ffffff;
    --pte-shadow: 0 16px 40px rgba(111, 160, 175, 0.14);
    --pte-radius-lg: 28px;
    --pte-radius-md: 18px;
    --pte-radius-sm: 12px;
}

.pte-estimator {
    position: relative;
    margin: 34px 0;
}

.pte-estimator::before,
.pte-estimator::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
}

.pte-estimator::before {
    top: -18px;
    right: 6%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at center, rgba(140, 207, 122, 0.18), rgba(140, 207, 122, 0));
}

.pte-estimator::after {
    left: 3%;
    bottom: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, rgba(245, 161, 93, 0.16), rgba(245, 161, 93, 0));
}

.pte-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.95) 0, rgba(255,255,255,0.75) 28%, rgba(255,255,255,0) 55%),
        linear-gradient(180deg, var(--pte-sky) 0%, var(--pte-white) 32%, var(--pte-mint) 100%);
    border: 1px solid rgba(205, 230, 236, 0.95);
    border-radius: var(--pte-radius-lg);
    padding: 28px;
    box-shadow: var(--pte-shadow);
}

.pte-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 14%, rgba(255,255,255,0.85) 0, rgba(255,255,255,0) 12%),
        radial-gradient(circle at 78% 8%, rgba(255,255,255,0.9) 0, rgba(255,255,255,0) 14%),
        radial-gradient(circle at 90% 88%, rgba(223, 240, 219, 0.45) 0, rgba(223, 240, 219, 0) 18%);
    pointer-events: none;
}

.pte-card > * {
    position: relative;
    z-index: 1;
}

.pte-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pte-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(210, 232, 238, 0.95);
    border-radius: 999px;
    color: #58717d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(111, 160, 175, 0.08);
}

.pte-title {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.45;
    color: var(--pte-heading);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.pte-subtitle {
    margin: 0 0 18px;
    color: #5b6b73;
    font-size: 0.98rem;
    line-height: 1.9;
}

.pte-info-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.pte-info-chip {
    padding: 12px 14px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(212, 231, 235, 0.95);
    border-radius: 16px;
    color: #56717b;
    font-size: 13px;
    line-height: 1.65;
}

.pte-info-chip strong {
    display: block;
    margin-bottom: 2px;
    color: var(--pte-heading);
    font-size: 14px;
}

.pte-form {
    display: grid;
    gap: 16px;
}

.pte-field {
    position: relative;
}

.pte-field label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--pte-heading);
    font-weight: 800;
    font-size: 14px;
}

.pte-field label::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--pte-green), var(--pte-green-dark));
    box-shadow: 0 0 0 4px rgba(140, 207, 122, 0.16);
}

.pte-field input {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    border: 1.5px solid #cfe3e7;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    color: var(--pte-text);
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .15s ease;
}

.pte-field input::placeholder {
    color: #93a8b0;
}

.pte-field input:hover {
    background: #fff;
}

.pte-field input:focus {
    outline: none;
    border-color: #8fc8de;
    box-shadow: 0 0 0 5px rgba(143, 200, 222, 0.18);
    transform: translateY(-1px);
}

.pte-button,
.pte-contact-button,
.wpcf7 form input[type="submit"],
.wpcf7 form button[type="submit"] {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 15px 24px;
    min-height: 54px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
}

.pte-button,
.wpcf7 form input[type="submit"],
.wpcf7 form button[type="submit"] {
    background: linear-gradient(180deg, var(--pte-orange) 0%, var(--pte-orange-dark) 100%);
    box-shadow: 0 14px 26px rgba(245, 161, 93, 0.28);
}

.pte-contact-button {
    background: linear-gradient(180deg, #8ece7d 0%, #69aa58 100%);
    box-shadow: 0 14px 26px rgba(105, 170, 88, 0.28);
}

.pte-button:hover,
.pte-contact-button:hover,
.wpcf7 form input[type="submit"]:hover,
.wpcf7 form button[type="submit"]:hover {
    opacity: .96;
    transform: translateY(-1px);
}

.pte-button:active,
.pte-contact-button:active,
.wpcf7 form input[type="submit"]:active,
.wpcf7 form button[type="submit"]:active {
    transform: translateY(0);
}

.pte-help {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.7);
    border: 1px dashed rgba(205, 225, 230, 0.95);
    border-radius: 16px;
    color: #5d7178;
    font-size: 13px;
    line-height: 1.8;
}

.pte-result {
    margin-top: 18px;
}

.pte-result-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(245,252,245,0.95) 100%);
    border: 1px solid rgba(204, 227, 211, 0.95);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(111, 160, 175, 0.10);
}

.pte-result-card h4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--pte-heading);
    font-size: 1.2rem;
    font-weight: 800;
}

.pte-result-card h4::before {
    content: "🐾";
    font-size: 18px;
}

.pte-result-list {
    margin: 0;
}

.pte-result-list > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px dashed #d7e7d9;
}

.pte-result-list > div:last-child {
    border-bottom: 0;
}

.pte-result-list dt {
    color: #69838d;
    font-weight: 700;
    font-size: 14px;
}

.pte-result-list dd {
    margin: 0;
    color: var(--pte-heading);
    font-weight: 600;
    line-height: 1.75;
}

.pte-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(243, 252, 246, 0.96) 0%, rgba(255, 247, 240, 0.96) 100%);
    border: 1px solid rgba(214, 231, 214, 0.95);
    font-size: 1rem;
    color: var(--pte-heading);
}

.pte-total strong {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    color: #2f6e1f;
}

.pte-actions {
    margin-top: 18px;
}

.pte-transfer-message {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.8;
}

.pte-transfer-message.is-success {
    color: #285f1d;
    background: rgba(230, 247, 229, 0.95);
    border: 1px solid rgba(185, 223, 176, 0.95);
}

.pte-transfer-message.is-error {
    color: #b42318;
    background: #fff1f1;
    border: 1px solid #ffd3d3;
}

.pte-disclaimer,
.pte-loading,
.pte-error {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.8;
}

.pte-error {
    color: #b42318;
    background: #fff1f1;
    border: 1px solid #ffd3d3;
    border-radius: 16px;
    padding: 13px 15px;
}

.pte-loading {
    color: #4d6570;
    background: rgba(247, 250, 255, 0.96);
    border: 1px solid rgba(209, 222, 255, 0.95);
    border-radius: 16px;
    padding: 13px 15px;
}

/* Contact Form 7 styling */
.wpcf7 {
    margin-top: 28px;
}

.wpcf7 form {
    position: relative;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(242, 250, 255, 0.96) 100%);
    border: 1px solid rgba(208, 228, 234, 0.95);
    box-shadow: var(--pte-shadow);
}

.wpcf7 form[data-pte-prefilled="1"] {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(240, 251, 240, 0.98) 100%);
    border-color: rgba(192, 226, 194, 0.95);
}

.wpcf7 form p {
    margin: 0 0 16px;
}

.wpcf7 form label {
    display: block;
    margin-bottom: 8px;
    color: var(--pte-heading);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

.wpcf7 form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.wpcf7 form textarea,
.wpcf7 form select {
    width: 100%;
    min-height: 56px;
    padding: 15px 16px;
    border: 1.5px solid #cfe3e7;
    border-radius: 18px;
    background: rgba(255,255,255,0.94);
    color: var(--pte-text);
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.wpcf7 form textarea {
    min-height: 170px;
    resize: vertical;
}

.wpcf7 form input:focus,
.wpcf7 form textarea:focus,
.wpcf7 form select:focus {
    outline: none;
    border-color: #8fc8de;
    box-shadow: 0 0 0 5px rgba(143, 200, 222, 0.18);
    background: #fff;
}

.wpcf7 .wpcf7-not-valid-tip {
    margin-top: 8px;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.wpcf7 .wpcf7-response-output {
    margin: 16px 0 0 !important;
    padding: 12px 14px !important;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.8;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: rgba(230, 247, 229, 0.95);
    border-color: rgba(185, 223, 176, 0.95) !important;
    color: #285f1d;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    background: #fff1f1;
    color: #b42318;
}

.pte-cf7-estimate-notice {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(245, 252, 245, 0.98) 0%, rgba(255, 251, 244, 0.98) 100%);
    border: 1px solid rgba(211, 228, 206, 0.95);
}

.pte-cf7-estimate-notice__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--pte-heading);
    font-size: 15px;
    font-weight: 800;
}

.pte-cf7-estimate-notice__title::before {
    content: "📮";
}

.pte-cf7-estimate-notice__text {
    margin: 0;
    color: #5a6f77;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-line;
}

@media (max-width: 860px) {
    .pte-info-band {
        grid-template-columns: 1fr;
    }

    .pte-result-list > div,
    .pte-total {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .pte-card,
    .wpcf7 form {
        padding: 18px;
        border-radius: 22px;
    }

    .pte-title {
        font-size: 1.35rem;
    }

    .pte-result-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pte-button,
    .pte-contact-button,
    .wpcf7 form input[type="submit"],
    .wpcf7 form button[type="submit"] {
        width: 100%;
    }
}
