:root {
    --pioneer-dt-primary: #0056b3;
    --pioneer-dt-primary-hover: #004494;
    --pioneer-dt-bg: #ffffff;
    --pioneer-dt-border: #d1d5db;
    --pioneer-dt-text: #1f2937;
    --pioneer-dt-text-muted: #6b7280;
    --pioneer-dt-error-bg: #fee2e2;
    --pioneer-dt-error-text: #b91c1c;
    --pioneer-dt-success-bg: #dcfce7;
    --pioneer-dt-success-text: #15803d;
    --pioneer-dt-focus: #3b82f6;
    --pioneer-dt-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --pioneer-dt-radius: 8px;
}

.pioneer-dt-calc-wrapper {
    max-width: 100%;
    margin: 1em auto;
    border-radius: var(--pioneer-dt-radius);
    padding: 1.5em 2em;
    color: var(--pioneer-dt-text);
    padding-top: 0px !important;
}

.pioneer-dt-calc-main-field-wrapper {
    max-width: 620px;
    margin: auto;
}

.pioneer-dt-calc-field-wrapper {
    margin: auto;
    margin-bottom: 30px;
}

.pioneer-dt-calc-header {
    text-align: center;
    margin-bottom: 2em;
}

.pioneer-dt-calc-header h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--pioneer-dt-text);
}

.pioneer-dt-calc-header p {
    margin: 0;
    font-size: 0.95em;
    color: var(--pioneer-dt-text-muted);
}


.pioneer-dt-calc-field {
    min-width: 50%;
}

.pioneer-dt-calc-field label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    font-size: 0.95em;
    color: var(--pioneer-dt-text);
}

.pioneer-dt-calc-field input,
.pioneer-dt-calc-field select {
    width: 100%;
    padding: 0.75em 1em;
    font-size: 1em;
    border: 1px solid var(--pioneer-dt-border);
    border-radius: var(--pioneer-dt-radius);
    background-color: #fff;
    color: var(--pioneer-dt-text);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.pioneer-dt-calc-field input:focus,
.pioneer-dt-calc-field select:focus {
    outline: none;
    border-color: var(--pioneer-dt-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.pioneer-dt-calc-field.recaptcha-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0px;
    max-width: 270px;
}

.pioneer-dt-btn {
    width: 100%;
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75em 1.5em;
    font-size: 1em;
    line-height: 1.5;
    border-radius: var(--pioneer-dt-radius);
    color: #fff;
    background-color: var(--pioneer-dt-primary);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 86, 179, 0.4);
    transition: all 0.2s ease-in-out;
}

.pioneer-dt-btn:hover {
    background-color: var(--pioneer-dt-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 86, 179, 0.5);
}

.pioneer-dt-btn-secondary {
    background-color: transparent;
    color: var(--pioneer-dt-primary);
    border: 2px solid var(--pioneer-dt-primary);
    box-shadow: none;
    margin-top: 1em;
    text-decoration: none;
}

.pioneer-dt-btn-secondary:hover {
    background-color: var(--pioneer-dt-primary);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 86, 179, 0.4);
}

.pioneer-dt-calc-cta {
    margin-top: 1em;
}

.pioneer-dt-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#pioneer-dt-calc-account {
    font-size: 1em;
    height: 2.8em;
    margin-bottom: 15px;
}

#pioneer-dt-calc-message {
    margin-top: 1.5em;
    padding: 1em;
    border-radius: var(--pioneer-dt-radius);
    font-size: 0.9em;
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
    text-align: center;
}

#pioneer-dt-calc-message.error {
    background-color: var(--pioneer-dt-error-bg);
    color: var(--pioneer-dt-error-text);
    border: 1px solid #fca5a5;
}

#pioneer-dt-calc-message.success {
    background-color: var(--pioneer-dt-success-bg);
    color: var(--pioneer-dt-success-text);
    border: 1px solid #86efac;
}

#pioneer-dt-calc-result-box {
    margin-top: 1.5em;
    border-radius: var(--pioneer-dt-radius);
}

.pioneer-dt-calc-hidden {
    display: none;
}

.pioneer-dt-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.pioneer-dt-card {
    flex: 1 1 calc(33.333% - 1em);
    min-width: 120px;
    background: #fff;
    border: 1px solid var(--pioneer-dt-border);
    border-radius: 12px;
    padding: 1.25em 0.6em;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 115px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pioneer-dt-card:first-child {
    flex: 1 1 100%;
    background: #ebebeb;
}

.pioneer-dt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.pioneer-dt-card-title {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--pioneer-dt-text-muted);
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pioneer-dt-card-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--pioneer-dt-primary);
}

@media (max-width: 600px) {
    .pioneer-dt-card {
        flex: 1 1 100%;
    }
}

.pioneer-dt-calc-info-message {
    text-align: center;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 1.2em;
    background-color: #f9fafb;
    border: 1px solid var(--pioneer-dt-border);
    border-radius: var(--pioneer-dt-radius);
    color: var(--pioneer-dt-text);
    line-height: 1.6;
}

.pioneer-dt-calc-info-message p {
    margin: 0 0 1em 0;
}

.pioneer-dt-calc-info-message p:last-child {
    margin-bottom: 0;
}

.pioneer-dt-calc-info-message a {
    color: var(--pioneer-dt-primary);
    text-decoration: underline;
    font-weight: 600;
}

.pioneer-dt-calc-info-message a:hover {
    color: var(--pioneer-dt-primary-hover);
    text-decoration: none;
}

.pioneer-dt-calc-actions {
    margin-top: 15px;
}

.pioneer-dt-calc-actions .ct-button {
    min-width: 200px;
    text-align: center;
    background: linear-gradient(270deg, #79cdda, #97cd48);
    color: #1a1e22;
    width: 200px;
}

.pioneer-dt-calc-actions .ct-button:hover {
    background: linear-gradient(270deg, #1b75bc, #00437b);
    color: #fff;
    gap: var(--theme-button-gap, 0.5em);
}

.pioneer-dt-calc-actions .ct-button svg {
    opacity: 0;
    margin-left: -18px;
    transition: opacity .3s, margin-left .3s;
}

.pioneer-dt-calc-actions .ct-button:hover svg {
    opacity: 1;
    margin-left: 0;
}

.pioneer-dt-calc-actions .ct-button:hover svg path {
    fill: white;
}

.pioneer-dt-calc-field-and-captcha-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

@media(max-width: 1024px) {
    .pioneer-dt-calc-field {
        width: 100%;
    }

    .pioneer-dt-calc-field-and-captcha-wrapper {
        gap: 0px;
        flex-direction: column;
    }

    .pioneer-dt-calc-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pioneer-dt-calc-field.recaptcha-wrapper {
        max-width: 100%;
    }
}