/* Custom styles for homeowner loans page */
.homeowner-loans-page {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.homeowner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #a51c36 0%, #b91e3e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
}

.text-danger {
    color: #c31432 !important;
}

.text-purple {
    color: #6a356b !important;
}

.btn-danger {
    background: linear-gradient(90deg, #c31432 0%, #b91e3e 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(195, 20, 50, 0.15);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(90deg, #b91e3e 0%, #a01029 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(195, 20, 50, 0.25);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.loan-sidebar {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.loan-sidebar:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.loan-sidebar h2 {
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}


.loan-sidebar h4 {
    font-weight: 600;
    margin-top: 1.5rem;
    color: #444;
}

.loan-sidebar ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.loan-sidebar ul li {
    margin-bottom: 0.75rem;
    position: relative;
    list-style-type: none;
    transition: all 0.2s ease;
}

.loan-sidebar ul li:before {
    content: "•";
    color: #c31432;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    transition: all 0.2s ease;
}

.loan-sidebar ul li:hover {
    transform: translateX(5px);
}

.card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-body {
    padding: 1.25rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(195, 20, 50, 0.3);
    box-shadow: 0 0 0 3px rgba(195, 20, 50, 0.15);
}

.form-check-input:checked {
    background-color: #c31432;
    border-color: #c31432;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(145deg, #c31432, #b91e3e);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 99;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(195, 20, 50, 0.25);
}

.back-to-top:hover {
    background: linear-gradient(145deg, #d41638, #c31432);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(195, 20, 50, 0.4);
}

/* Modern styling for links */
a {
    color: #c31432;
    transition: all 0.2s ease;
    text-decoration: none;
}

a:hover {
    color: #a01029;
    text-decoration: underline;
}

/* Modern styling for form elements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #444;
}

/* Header elements */
.header-section {
    position: relative;
}

.subtitle-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c31432, #b91e3e);
    border-radius: 2px;
    margin-top: -5px;
    margin-bottom: 25px;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: #444;
    line-height: 1.6;
}

/* Logo styling */
.logo-container {
    width: 100%;
    display: flex;
    margin-bottom: 2rem;
}

.kisf-logo {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 80px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
}

/* Add subtle animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.homeowner-loans-page {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive styles */
@media (max-width: 1399.98px) {
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 1199.98px) {
    .loan-sidebar ul li {
        margin-bottom: 0.75rem;
    }

    .homeowner-title {
        font-size: 2.5rem;
    }

    .kisf-logo {
        max-height: 70px;
    }
}

@media (max-width: 991.98px) {
    .homeowner-title {
        font-size: 2.2rem;
    }

    .loan-sidebar h2 {
        font-size: 1.6rem;
    }

    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .card {
        transform: none !important;
    }

    .kisf-logo {
        max-height: 65px;
        padding: 8px;
    }
}

@media (max-width: 767.98px) {
    .homeowner-title {
        font-size: 2rem;
        background: linear-gradient(90deg, #c31432 0%, #d41638 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent;
    }

    .loan-sidebar {
        margin-top: 2.5rem;
    }

    .card {
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .d-grid {
        width: 100% !important;
    }

    h2.text-danger {
        font-size: 1.5rem;
    }

    .col-md-6 {
        margin-bottom: 1rem;
    }

    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .kisf-logo {
        max-height: 60px;
        padding: 6px;
    }

    .logo-container {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .homeowner-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    h2.text-danger {
        font-size: 1.4rem;
    }

    h2.text-danger:after {
        width: 40px;
    }

    .kisf-logo {
        max-height: 50px;
        padding: 5px;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .form-check-inline {
        margin-right: 0.5rem;
    }

    .loan-sidebar {
        padding: 1.25rem !important;
        border-radius: 10px;
    }

    /* Improve form readability on small screens */
    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
    }

    .form-label {
        font-size: 0.9rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Better spacing for small screens */
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}