/* Main wrapper */
.adp-calculator-wrapper {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    width: 100%;
    background: #F4F8FB;
    padding: 0px;
}

/* Main calculator container - gray background with blue border */
.adp-calculator {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding: 32px;
    border-radius: 20px;
    border: 2px solid #2563eb;
    background: #F4F8FB;
    box-sizing: border-box;
    max-width: 100%;
}

.adp-calculator-left {
    flex: 1 1 320px;
    min-width: 0;
}

.adp-calculator-right {
    flex: 1 1 320px;
    min-width: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 4px 4px 12.1px 3px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
}

/* Questions */
.adp-question {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #111827;
}

/* Toggle buttons */
.adp-toggle-buttons {
    display: inline-flex;
    gap: 12px;
    background: transparent;
}

.adp-toggle-button {
    background: #ffffff;
    border: 1px solid #2563eb;
    padding: 10px 36px;
    font-size: 16px;
    cursor: pointer;
    color: #2563eb;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    border-radius: 6px;
    margin: 0;
}

.adp-toggle-button--active:hover {
    background: #2563eb;
}

.adp-toggle-button:not(.adp-toggle-button--active):hover {
    background: #ffffff !important;
}

.adp-toggle-button--active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.adp-toggle-button:hover:not(.adp-toggle-button--active) {
    background: #eff6ff;
}

/* Slider */
.adp-slider-group {
    margin-top: 28px;
}

.adp-slider-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.adp-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.adp-slider:focus {
    outline: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.adp-slider:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.adp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    margin-top: -7px;
    outline: none !important;
}

.adp-slider::-webkit-slider-thumb:focus {
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.adp-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    outline: none !important;
}

.adp-slider::-moz-range-thumb:focus {
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.adp-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #2563eb 0%, #2563eb var(--slider-progress, 10%), #e5e7eb var(--slider-progress, 10%), #e5e7eb 100%);
}

.adp-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
}

.adp-slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px 0 0 3px;
    background: #2563eb;
}

.adp-slider-value {
    min-width: 40px;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    color: #2E4DFF;
    line-height: 1;
}

/* Testimonial */
.adp-testimonial-card {
    margin-top: 28px;
    padding: 24px 28px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 4px 4px 12.1px 3px rgba(0, 0, 0, 0.07);
}

.adp-testimonial-content {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.adp-testimonial-bar {
    width: 5px;
    background: #2563eb;
    flex-shrink: 0;
    border-radius: 0;
}

.adp-testimonial-inner {
    flex: 1;
}

.adp-testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 16px;
    color: #111827;
    font-weight: 400;
}

.adp-testimonial-author {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    text-align: right;
}

.adp-testimonial-role {
    font-weight: 400;
    color: #111827;
    font-style: italic;
    font-size: 16px;
}

.adp-testimonial-link {
    color: #2563eb;
    text-decoration: underline;
    font-style: italic;
}

.adp-testimonial-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Right side summary cards */
.adp-summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.adp-summary-card {
    flex: 1 1 200px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
}

.adp-summary-title-wrapper {
    background: #2563eb;
    padding: 16px 14px;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

.adp-summary-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    text-align: center;
}

.adp-summary-value-wrapper {
    background: #000000;
    padding: 16px 14px;
    text-align: center;
    border-radius: 0 0 5px 5px;
}

.adp-summary-value {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-align: center;
}

/* Detail rows */
.adp-details {
    margin-bottom: 24px;
    padding: 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.adp-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.adp-detail-row:last-child {
    border-bottom: none;
}

.adp-detail-label {
    color: #111827;
    flex: 1;
    text-align: left;
}

.adp-detail-value {
    font-weight: 800;
    color: #2563eb;
    margin-left: 16px;
    white-space: nowrap;
    text-align: right;
}

/* CTA buttons */
.adp-cta-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
    align-items: stretch;
}

.adp-cta-button,
.adp-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    flex: 0 0 auto;
    width: 180px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    box-sizing: border-box;
}

.adp-cta-button {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.adp-cta-button:hover {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}

.adp-secondary-button {
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.adp-secondary-button:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    .adp-calculator {
        padding: 20px;
        gap: 24px;
        flex-direction: column;
    }

    .adp-calculator-left {
        flex: 1 1 100%;
        display: contents;
    }

    .adp-toggle-group {
        order: 1;
    }

    .adp-slider-group {
        order: 2;
    }

    .adp-calculator-right {
        flex: 1 1 100%;
        order: 3;
    }

    .adp-testimonial-card {
        order: 4;
        margin-top: 0;
    }

    .adp-summary-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .adp-cta-row {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .adp-cta-button,
    .adp-secondary-button {
        width: 100%;
        flex: 1 1 100%;
    }
}
