html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.hero-section {
    background: url('/images/contact-hero.jpg') no-repeat center center;
    background-size: cover;
    height: 350px;
    position: relative;
    margin-top: 60px;
    color: white;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 100px;
}

.hero-section p {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;
}

.custom-navbar {
    background-color: #0A1A2F;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease;
    box-shadow: none;
}

.custom-navbar.scrolled {
    background-color: #0A1A2F !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    color: #ffffff !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #0d6efd !important;
    border-bottom: 2px solid #0d6efd;
}

.navbar .dropdown-menu {
    background-color: #0A1A2F;
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.navbar .dropdown-item {
    color: #ffffff;
}

.navbar .dropdown-item:hover {
    background-color: #0d6efd;
    color: #ffffff;
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.fincresta-logo {
    height: 60px;
    max-width: 150px;
    object-fit: contain;
    animation: fadeInDown 1s ease forwards;
    opacity: 0;
    transition: transform 0.3s ease-in-out;
    padding: 5px 10px;
}

.fincresta-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .navbar-brand {
        justify-content: center;
        flex-direction: column;
    }

    .fincresta-logo {
        height: 48px;
        margin-bottom: 0.25rem;
    }
}

.navbar-brand img {
    max-height: 40px;
}

.navbar .btn-outline-light:hover {
    color: #0A1A2F;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-light {
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
}

.section {
    padding: 5rem 0;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.fade-in {
    animation: fadeIn 1.2s ease-in-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-brand {
    background-color: #0A1A2F !important;
    color: #ffffff;
}

.btn-brand {
    background-color: #0A1A2F;
    color: white;
    border: none;
    transition: background-color 0.2s ease-in-out;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: #122c48;
    color: white;
}

.card-header.bg-brand {
    background-color: #0A1A2F;
    color: white;
}

.card {
    border-radius: 1rem;
}

.btn-primary {
    background-color: #0A1A2F;
    border-color: #0A1A2F;
}

.btn-primary:hover {
    background-color: #1d2f48;
    border-color: #1d2f48;
}

.btn-outline-brand {
    color: #0A1A2F;
    border: 2px solid #0A1A2F;
    background-color: transparent;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background-color: #0A1A2F;
    color: #fff;
}

.avatar-placeholder {
    width: 36px;
    height: 36px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-role {
    background-color: #e7f1ff;
    color: #0A1A2F;
    font-size: 0.75rem;
    padding: 0.4em 0.65em;
    border-radius: 0.5rem;
    font-weight: 500;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .table td, .table th {
        white-space: nowrap;
    }

    .avatar-placeholder {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* DataTables styles cleaned and preserved */
table.dataTable thead th {
    background-color: #f5f7fa;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0A1A2F;
    border-bottom: 2px solid #dee2e6;
}

table.dataTable td {
    font-size: 0.9rem;
    vertical-align: middle;
}

table.dataTable tbody tr:hover {
    background-color: #f0f4f8;
}

.dataTables_info, .dataTables_length {
    font-size: 0.85rem;
    color: #6c757d;
}

.dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 3px;
    color: #0A1A2F !important;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #e9f2ff;
}

.dataTables_paginate .paginate_button.current {
    background-color: #0A1A2F !important;
    color: white !important;
}

.dt-buttons .btn {
    background-color: #0A1A2F;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    padding: 6px 14px;
    margin-left: 6px;
    font-size: 0.85rem;
}

.modal-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    animation: zoomIn 0.5s ease-in-out both;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

body.offcanvas-backdrop::before {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050 !important;
}

.offcanvas-backdrop.show {
    z-index: 1050 !important;
}

body.offcanvas-active {
    overflow: hidden !important;
    padding-right: 0 !important;
}

.offcanvas {
    transform: none !important;
    visibility: hidden;
    opacity: 0;
    transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s, opacity 0.3s ease-in-out;
}

.offcanvas.show {
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition-delay: 0s !important;
}

.hero {
    background: linear-gradient(to right, #0A1A2F, #1F3B64);
    color: white;
    padding: 5rem 1.5rem;
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    animation: fadeInDown 1s ease-in-out both;
}

.hero p {
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease-in-out both;
}

.contact-form-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.btn-light:hover {
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
}

.features {
    padding: 3rem 1rem;
}

.announcement-bar {
    position: sticky;
    top: 0;
    z-index: 1050;
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    animation: fadeInDown 0.8s ease-in-out;
}

.announcement-bar p {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 576px) {
    .feature-card {
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }

    .feature-icon {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.25rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
