/* ==========================================================================
   LTV Calculator Tool
   ========================================================================== */

/* Calculator Form */
.ltv-calc {
    padding: 3em 0;
}

.ltv-calc_form {
    max-width: 800px;
    margin: 0 auto;
}

.ltv-calc_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
}

@media only screen and (min-width: 600px) {
    .ltv-calc_grid {
        grid-template-columns: 1fr 1fr;
        gap: 2em;
    }
}

.ltv-calc_field {
    display: flex;
    flex-direction: column;
}

.ltv-calc_label {
    font-size: 1rem;
    font-weight: 700;
    color: #272727;
    margin-bottom: 0.25em;
}

.ltv-calc_hint {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #888;
    margin: 0 0 0.75em;
}

.ltv-calc_input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.ltv-calc_input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75em 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #272727;
    background: #fff;
    transition: border-color 0.2s ease;
    -moz-appearance: textfield;
}

.ltv-calc_input::-webkit-outer-spin-button,
.ltv-calc_input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ltv-calc_input:focus {
    outline: none;
    border-color: #ffde00;
    box-shadow: 0 0 0 3px rgba(255, 222, 0, 0.2);
}

.ltv-calc_input-suffix {
    position: absolute;
    right: 1em;
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    pointer-events: none;
}

/* Actions */
.ltv-calc_actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1em;
    padding: 2em 0 0.5em;
    position: relative;
    z-index: 2;
}

.ltv-calc_btn {
    white-space: nowrap;
    padding: 0.75em 2em !important;
    font-size: 1.1rem !important;
}

.ltv-calc_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result */
.ltv-calc_result {
    max-width: 800px;
    margin: 2em auto 0;
    animation: ltv-fadeIn 0.4s ease;
}

@keyframes ltv-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ltv-calc_result-card {
    background: #ffde00;
    border-radius: 12px;
    padding: 2em;
    text-align: center;
    margin-bottom: 1.5em;
}

.ltv-calc_result-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(39, 39, 39, 0.7);
    margin-bottom: 0.5em;
}

.ltv-calc_result-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #272727;
    line-height: 1.2;
}

@media only screen and (min-width: 600px) {
    .ltv-calc_result-value {
        font-size: 3rem;
    }
}

.ltv-calc_result-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
}

@media only screen and (min-width: 600px) {
    .ltv-calc_result-details {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.ltv-calc_result-detail {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.25em;
    text-align: center;
    border: 1px solid #eee;
}

.ltv-calc_result-detail-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5em;
}

.ltv-calc_result-detail-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #272727;
}

/* LTV About section */
.ltv-about {
    padding: 3em 0;
    border-top: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
}

.ltv-about .ltv-illustration {
    margin-top: 2em;
}

/* LTV Definition (image + text side by side) */
.ltv-definition {
    display: flex;
    align-items: flex-start;
    gap: 2em;
}

.ltv-definition_img {
    width: 160px;
    min-width: 160px;
    border-radius: 12px;
}

.ltv-definition_text h2 {
    margin-top: 0;
}

@media only screen and (max-width: 600px) {
    .ltv-definition {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ltv-definition_img {
        width: 120px;
        min-width: 120px;
    }
}

/* LTV Illustration (formula block) */
.ltv-illustration {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 2em;
    border: 1px solid #eee;
}

.ltv-illustration_label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    margin-bottom: 1em;
    background: #ffde00;
    color: #272727;
}

.ltv-illustration_expr {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.ltv-illustration_highlight {
    font-weight: 800;
    font-size: 1.25rem;
    color: #272727;
}

/* ==========================================================================
   Shared Tool Styles (Features, Steps, FAQ, CTA)
   ========================================================================== */

/* Features */
.tool-features {
    padding: 3em 0;
    border-top: 1px solid #eee;
}

.tool-features_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.tool-feature {
    text-align: center;
    padding: 1.5em 1em;
}

.tool-feature_icon {
    margin-bottom: 1em;
}

.tool-feature_heading {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    color: #272727;
}

.tool-feature_desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

/* How it works */
.tool-how-it-works {
    padding: 3em 0;
    border-top: 1px solid #eee;
}

.tool-how-it-works_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.tool-step {
    text-align: center;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.tool-step_number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffde00;
    color: #272727;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1em;
}

.tool-step_heading {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    color: #272727;
}

.tool-step_desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

/* FAQ */
.tool-faq {
    padding: 3em 0;
    border-top: 1px solid #eee;
    max-width: 720px;
    margin: 0 auto;
}

.tool-faq_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.tool-faq_item {
    border-bottom: 1px solid #eee;
}

.tool-faq_question {
    padding: 1.25em 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2em;
    color: #272727;
}

.tool-faq_question::-webkit-details-marker {
    display: none;
}

.tool-faq_question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #999;
    transition: transform 0.2s ease;
}

details[open] .tool-faq_question::after {
    content: '\2212';
}

.tool-faq_answer {
    padding: 0 0 1.25em;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tool-faq_answer p {
    margin: 0;
}

/* CTA */
.tool-cta {
    text-align: center;
    padding: 3em 0;
    border-top: 1px solid #eee;
}

.tool-cta_title {
    font-size: 1.75rem;
    margin-bottom: 0.5em;
}

.tool-cta_desc {
    font-size: 1.05rem;
    color: #666;
    max-width: 560px;
    margin: 0 auto 1.5em;
    line-height: 1.6;
}

/* Clear button (shared) */
.converter-tool_btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.4em 0.8em;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.converter-tool_btn:hover {
    border-color: #999;
    color: #272727;
    background: #f5f5f5;
}

.converter-tool_btn--clear {
    border: none;
    color: #999;
    font-size: 0.8rem;
}

.converter-tool_btn--clear:hover {
    color: #e74c3c;
    background: none;
}

/* Grid helper for 4-col layout */
.u-grid--1of4-at-large > .u-grid-cell {
    width: 100%;
}

@media only screen and (min-width: 1024px) {
    .u-grid--1of4-at-large > .u-grid-cell {
        width: 25%;
    }
}
