﻿main {
    padding-top: 0 !important;
}

.hero-overlay-content {
    background-color: #6d361e;
    padding: 2rem;
    border-radius: 12px;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 10rem;
    opacity: 0.9;
    align-self: end;
}

    .hero-overlay-content h2 {
        margin-bottom: 1rem;
        color: #fff;
    }

.mortgage-cta-section h2 {
    margin-bottom: 1rem;
}

.mortgage-cta-section p {
    margin-bottom: 1.5rem;
}

.mortgage-cta-section .button {
    border: 2px solid #6d361e;
    background: transparent;
    color: #6d361e;
    transition: all 0.3s ease;
}

    .mortgage-cta-section .button:hover {
        background-color: #6d361e;
        color: #fefcf5;
    }

.cta-column {
    padding-left: 20px;
    padding-right: 20px;
}


.loan-card {
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    min-height: 400px;
}

.info-side {
    border-radius: 10px 0 0 10px;
    border: 1px solid;
    padding: 2rem;
    flex: 0 0 58.333333%;
}

.result-side {
    border-radius: 0 10px 10px 0;
    background-color: #6d361e;
    padding: 2rem;
    color: #fefcf5;
    flex: 0 0 41.666667%;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #6d361e;
    border-radius: 8px;
    color: #6d361e;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dropdown-button:hover {
        background: #fefcf5;
    }

    .dropdown-button.active {
        border-color: #6d361e;
        background: #fefcf5;
    }

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #6d361e;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(109, 54, 30, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

    .dropdown-menu-custom.show {
        display: block;
    }

.dropdown-item-custom {
    padding: 0.75rem 1rem;
    color: #6d361e;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

    .dropdown-item-custom:hover {
        background: #f5ebe6;
    }

    .dropdown-item-custom:first-child {
        border-radius: 6px 6px 0 0;
    }

    .dropdown-item-custom:last-child {
        border-radius: 0 0 6px 6px;
    }

#calculateLoan {
    background: #6d361e;
    transition: all 0.3s ease;
    line-height: normal;
}

.result-label {
    margin-bottom: 0.3rem;
}

.result-currency {
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.9;
}

.loan-calculator-section input.form-control {
    width: 100%;
    padding: 0.75rem 3.5rem 0.75rem 1rem;
    border: 1px solid #6d361e;
    border-radius: 8px;
    outline: none;
    box-shadow: none;
    color: #6d361e;
    background-color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .loan-calculator-section input.form-control:focus {
        border-color: #6d361e;
        background: #fefcf5;
        box-shadow: none;
        outline: none;
    }

    .loan-calculator-section input.form-control::placeholder {
        color: #6d361e;
        opacity: 0.6;
    }

.label-with-tooltip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.loan-tooltip {
    display: none;
    position: absolute;
    top: 125%;
    background-color: #6d361e;
    color: #fefcf5;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.tooltip-wrapper:hover .loan-tooltip,
.tooltip-wrapper:focus-within .loan-tooltip,
.tooltip-wrapper.active .loan-tooltip {
    display: block;
}

.loan-info-icon {
    color: #6d361e;
    cursor: pointer;
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

    .input-wrapper .money-input {
        width: 100%;
    }

.currency-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6d361e;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.7;
}

.static-value-display {
    padding: 0.75rem 1rem;
    border: 1px solid #6d361e;
    border-radius: 8px;
    background-color: #fefcf5;
    color: #6d361e;
    font-size: 0.9rem;
    font-weight: 600;
}

.credit-score-section {
    background: #fefcf5;
    padding: 3rem 0;
}

.credit-score-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    overflow-x: hidden;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .check-list li {
        position: relative;
        padding-left: 1.6rem;
        margin: .45rem 0;
    }

        .check-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: .05rem;
            color: #6d361e;
            font-weight: 700;
        }

.note {
    background: #f6efe9;
    border: 1px solid #e1d6cd;
    border-radius: 8px;
    padding: .6rem .8rem;
    color: #6d361e;
}

.credit-score-image {
    width: 100%;
}

.credit-score-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
}

    .credit-score-image-wrapper img {
        width: 100%;
        object-fit: cover;
        display: block;
    }

.credit-score-section .button {
    display: inline-block;
    padding: .7rem 1.4rem;
    font-size: .9rem;
    border: 1px solid #6d361e;
    background: transparent;
    color: #6d361e;
    text-decoration: none;
    border-radius: 5px;
    transition: all .2s ease;
}

    .credit-score-section .button:hover {
        background: #6d361e;
        color: #fefcf5;
        border-color: #6d361e;
    }

.info-card {
    background: #6d361e;
    color: #fefcf5;
    padding: 2rem 1.5rem;
    border-radius: 5px;
    text-align: left;
    height: 100%;
}

    .info-card .card-title {
        margin-bottom: 1rem;
    }

    .info-card .card-body-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

.tabs-header {
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
    border-bottom: 1px solid #e7ddd4;
    margin-bottom: 3rem;
}

.advice-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: #6d361e;
    padding: 0.7rem 1rem;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
}

    .advice-tab:hover {
        opacity: 1;
    }

    .advice-tab:active {
        transform: translateY(1px);
    }

    .advice-tab.active {
        opacity: 1;
        border-bottom: 1px solid #6d361e
    }

.tab-panel {
    display: none;
    overflow: hidden;
}

    .tab-panel.active {
        display: block;
    }

@@media (max-width: 768px) {
    .mortgage-hero-section {
        height: 70vh !important;
        min-height: 70vh !important;
    }

    .loan-tooltip {
        white-space: normal;
        width: 200px;
    }

    .mortgage-cta-section .button {
        display: inline-flex;
    }
}

@media (max-width: 767.98px) {
    .loan-card {
        flex-direction: column;
    }

    .info-side,
    .result-side {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .result-side {
        border-top: 1px solid rgba(255, 255, 255, 0.1); 
    }

    .tabs-header {
        gap: 0.5rem !important;
    }

    .advice-tab {
        padding: 0.7rem !important;
    }
}

/* make both cols stretch to equal height on md+ */
@media (min-width: 768px) {
    .credit-score-container {
        align-items: stretch; 
    }

    .credit-score-text {
        align-self: center;
    }

    .credit-score-text,
    .credit-score-image {
        display: flex;
        flex-direction: column;
    }

    .credit-score-image-wrapper {
        height: 100%;
    }

        .credit-score-image-wrapper img {
            height: 100%;
            object-fit: cover; 
        }
}

@media (min-width: 1200px) {
    .credit-score-image-wrapper {
        max-height: 640px; 
    }
}


.loan-interest {
    font-style: italic;
    font-size: 0.8rem;
    color: #6d361e;
    opacity: 0.85;
}

.warning-icon {
    color: #c0392b;
    font-size: 0.9rem;
    cursor: help;
    animation: pulse 2s ease-in-out infinite;
}


@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}


