@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.apc-mortgage-calculator {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    background: #e1f2d3;
    color: #333333;
    padding: 2rem 1rem 3rem;
    padding: 28px;
    border-radius: 28px;
}

.apc-mortgage-calculator * {
    box-sizing: border-box;
}

.apc-mortgage-header {
    max-width: 980px;
    margin: 0 auto 2rem;
    text-align: center;
}

.apc-mortgage-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: #333333;
}

.apc-mortgage-subtitle {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    color: #666666;
}

.apc-mortgage-wrap {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 24px 50px rgba(107, 142, 35, 0.18);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.apc-mortgage-form {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.apc-field {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.apc-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
    color: #262626;
}

.apc-range-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.apc-range {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.apc-range input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(107, 142, 35, 0.25);
    margin-left:0;
    margin-bottom: .75rem;
    padding-top: 10px;
    outline: none;
    position: relative;
}

.apc-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #6b8e23;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    margin-top: -10px;
}

.apc-range input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(107, 142, 35, 0.25);
}

.apc-range input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #6b8e23;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.apc-range-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
}

.apc-amount-display {
    font-size: 1.25rem;
    font-weight: 700;
    text-align:left;
    color: #609E14;
    margin-bottom: 1rem;
}

.apc-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.75rem;
}

.apc-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e1f2d3;
    border-radius: 16px;
    padding: 0.5rem;
    min-height: 46px;
}

.apc-stepper-btn {
    border: none;
    margin: 0;
    background: transparent;
    color: #609E14;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    min-height: inherit;
    padding: 0.25rem 0.75rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.apc-stepper-btn:hover,
.apc-stepper-btn:focus {
    color: #4d6f11;
    outline: none;
    transform: translateY(-1px);
}

.apc-stepper-display {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f1f1f;
}

.apc-stepper-input {
    border: none!important;
    background-color: transparent!important;
    box-shadow: none!important;
    font: inherit;
    color: inherit;
    text-align: center;
    padding: 0!important;
    margin-bottom: 0;
}

.apc-stepper-input:focus {
    outline: none;
    box-shadow: none!important;
}

.apc-stepper-unit {
    color: #3d3d3d;
    font-weight: 600;
}

.apc-notice {
    margin: 0;
    font-size: 0.8rem;
    color: #666666;
    text-align: center;
    max-width: 760px;
    margin: 2rem auto 0;
}


.apc-mortgage-summary {
    display: flex;
    flex-direction: column;
    background: transparent;
    gap: 1.75rem;
    align-items: center;
    justify-content: space-between;
}

.apc-summary-card {
    width: 100%;
    background: #e1f2d3;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
    justify-content: center;
}

.apc-summary-label {
    margin: 0;
    font-size: 1rem;
    color: #262626;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

.apc-summary-value {
    margin: 0;
    font-size: 2.75rem;
    font-weight: 700;
    color: #609E14;
}

.apc-summary-button {
    padding: 0.7rem 1.5rem;
    border-radius: 16px!important;
    min-height: 62px;
    border: none;
    background: #609E14;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    width:100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

.apc-summary-button:hover,
.apc-summary-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(107, 142, 35, 0.3);
    outline: none;
    color: #ffffff;
}

@media (max-width: 768px) {
    .apc-mortgage-wrap {
        padding: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 2rem;
    }

    .apc-mortgage-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 520px) {
    .apc-mortgage-calculator {
        padding: 1.5rem 0.75rem;
        border-radius: 20px;
    }

    .apc-mortgage-wrap {
        padding: 1.5rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .apc-summary-card {
        padding: 1.5rem;
        min-height: 160px;
    }

    .apc-summary-value {
        font-size: 2.3rem;
    }
}
