body {
    background-color: #fff;
}

/* Fixed header by default */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1030;
}

.unscrolled {
    visibility: visible;
    opacity: 1;
}

.scrolled {
    visibility: visible;
    opacity: 1;
}

/* Add padding for fixed header */
body {
    padding-top: 90px;
}

/* Scrollable header for Objects and About pages */
.main-page .navbar {
    position: relative;
}

/* Remove padding for scrollable header pages */
.main-page {
    padding-top: 0;
}

h2, h4, p {
    color: #000;
}

.navbar {
    transition: all 0.3s ease;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
}

/* Hero section - add padding for header */
.vh-100 {
    padding-top: 90px;
}

/* Main navbar styles */
.navbar .nav-link,
.navbar .header-text,
.navbar a {
    color: #21399C;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 57, 156, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 57, 156, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 18L18 6M6 6l12 12'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

.navbar-collapse.collapsing {
    height: auto;
    transition: height 0.35s ease;
}

.navbar-collapse.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
        border-bottom: 1px solid rgba(33, 57, 156, 0.1);
        padding-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(33, 57, 156, 0.1);
        color: #21399C;
        transform: translateX(5px);
    }
    
    .navbar-nav .nav-link i {
        font-size: 1.2rem;
        margin-right: 0.75rem;
    }
    
    .navbar .btn-outline-primary {
        margin: 1rem 0;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .navbar .btn-outline-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(33, 57, 156, 0.2);
    }
    
    .navbar-brand img {
        height: 60px;
    }
    
    .header-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .unscrolled {
        position: relative;
    }

    .scrolled {
        position: fixed;
    }
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        flex-direction: row;
        align-items: center;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link i {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
    
    .navbar .btn-outline-primary {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }
}

.navbar-nav .nav-link,
.navbar .btn-outline-primary,
.navbar-toggler {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link.active {
    color: #21399C !important;
    background-color: rgba(33, 57, 156, 0.1);
    border-radius: 0.5rem;
    font-weight: 600;
}

.navbar-nav .nav-link.active i {
    color: #21399C;
}

.navbar-nav .nav-link:hover {
    color: #21399C;
    background-color: rgba(33, 57, 156, 0.05);
}

@media (max-width: 991.98px) {
    .navbar-collapse.show {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0.5rem;
        margin: 0.5rem 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse.collapsing {
        background: rgba(255, 255, 255, 0.95);
    }
}

.navbar .btn-outline-primary {
    color: #21399C;
    border-color: #21399C;
}

.navbar .btn-outline-primary:hover {
    color: #fff;
    background-color: #21399C;
    border-color: #21399C;
}

.logo_white {
    opacity: 0.8;
}

.card-title {
    color: #061554;
}

footer {
    background-color: #313C69;
    min-height: 400px;
    padding: 60px 0;
}

.footer_text {
    color: #fff;
}

.footer-map {
    height: 300px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-info {
    padding: 0 15px;
}

.footer-info h5 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-info h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #fff;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-contacts {
    margin-bottom: 2rem;
}

.footer-contacts a:hover {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease;
}

.footer-info i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0;
    }
    
    .footer-map {
        height: 250px;
        margin-bottom: 30px;
    }
    
    .footer-info {
        padding: 0;
        margin-bottom: 30px;
    }
}

/* Carousel overlay */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

/* Activity section styles */
.activity-img-wrapper {
    width: 100%;
}

.activity-steps {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.activity-step {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.activity-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #313C69;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    margin-left: 60px;
}

/* Remove left margin for screens smaller than 760px */
@media (max-width: 759px) {
    .activity-circle {
        margin-left: 0;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .ms-4 h4{
        font-size: 0.95rem;
    }
    
    .ms-4 p{
        font-size: 0.8rem;
    }
    
    .col-md-7 h2 {
        text-align: left !important;
        font-size: 1.2rem;
    }

}

.activity-title {
    font-size: 1.12rem;
}

.activity-desc {
    font-size: 0.92rem;
}

/* Advantage cards */
.advantage-card {
    display: flex;
    align-items: flex-start;
    height: 100%;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background-color: #fff;
    min-width: 0;
}

.advantage-icon {
    font-size: 2.2rem;
    color: #313C69;
    margin-right: 1.5rem;
}

.advantage-content {
    text-align: start;
    width: 100%;
}

.advantage-title {
    font-size: 1.15rem;
    color: #061554;
    margin-bottom: 0.75rem;
}

.advantage-text {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Bootstrap 5 дополнительные стили */
.object-fit-cover {
    object-fit: cover;
    object-position: center;
}

/* Object cards carousel styles */
.card .carousel-indicators {
    margin-bottom: 0.5rem;
}

.card .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
}

.card .carousel-indicators button.active {
    background-color: #fff;
}

.card .carousel-control-prev,
.card .carousel-control-next {
    width: 15%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.card:hover .carousel-control-prev,
.card:hover .carousel-control-next {
    opacity: 1;
}

.card .carousel-control-prev-icon,
.card .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 1rem;
}

/* Object cards styles */
.card {
    transition: transform 0.2s ease-in-out;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    border-radius: 0.375rem 0.375rem 0 0;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.card-text.text-muted {
    font-size: 0.9rem;
}

.card-text.fw-bold {
    color: #21399C;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.card .text-primary.fw-bold {
    color: #21399C !important;
    font-size: 1.1rem;
    font-weight: 700;
}

.card .bi-currency-euro {
    color: #21399C;
    font-size: 1.1rem;
}

.price-badge {
    background: linear-gradient(135deg, #21399C, #313C69);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card:hover .text-primary.fw-bold {
    color: #061554 !important;
    transform: scale(1.05);
    transition: all 0.2s ease-in-out;
}

.statistics-card {
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.statistics-card:hover {
    transform: translateY(-5px);
    border-color: #21399C;
    box-shadow: 0 10px 25px rgba(33, 57, 156, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.statistics-card i {
    transition: all 0.3s ease-in-out;
}

.statistics-card:hover i {
    transform: scale(1.1);
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #21399C, #313C69);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 8px 25px rgba(33, 57, 156, 0.1);
}

.service-card:hover i {
    transform: scale(1.2);
    transition: all 0.3s ease-in-out;
}

.service-card h5 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 0;
}

.badge.rounded-pill {
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease-in-out;
}

.badge.rounded-pill:hover {
    transform: scale(1.05);
}

.team-card {
    transition: all 0.3s ease-in-out;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.team-card img {
    transition: all 0.3s ease-in-out;
}

.team-card:hover img {
    transform: scale(1.05);
}

.contact-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.achievement-badge {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.achievement-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}
.geography-list ul {
    align-items: flex-start;
}

.geography-list li {
    transition: all 0.2s ease-in-out;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.geography-list li:hover {
    transform: translateX(5px);
    color: #21399C;
}

.geography-list li i {
    margin-right: 0.5rem;
}

.cta-section {
    background: linear-gradient(135deg, #21399C 0%, #313C69 100%);
    color: white;
    border-radius: 1rem;
    padding: 3rem;
}

.cta-section .btn {
    transition: all 0.3s ease-in-out;
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.statistics-card i,
.service-card i,
.team-card i,
.contact-info-card i {
    color: #21399C;
}

.statistics-card:hover i,
.service-card:hover i,
.team-card:hover i,
.contact-info-card:hover i {
    color: #061554;
}

.statistics-card .card-title,
.service-card h5,
.team-card .card-title {
    color: #21399C;
    font-weight: 600;
}

.statistics-card:hover .card-title,
.service-card:hover h5,
.team-card:hover .card-title {
    color: #061554;
}

.about-section h2 {
    color: #21399C;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #21399C, #313C69);
    border-radius: 2px;
}

.about-section p {
    color: #495057;
    line-height: 1.6;
}

.about-section .text-muted {
    color: #6c757d !important;
}

.about-section .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.about-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 57, 156, 0.2);
}

.about-section .card-body {
    padding: 1.5rem;
}

.about-section .statistics-card i {
    font-size: 3rem;
}

.about-section .service-card i {
    font-size: 2rem;
}

.about-section .team-card i {
    font-size: 2.5rem;
}

.about-section .mb-4 {
    margin-bottom: 1.5rem !important;
}

.about-section .mb-5 {
    margin-bottom: 3rem !important;
}

.card-body h4 i {
    vertical-align: middle;
    
}

.best-deals-card {
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.best-deals-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 57, 156, 0.1), transparent);
    transition: left 0.5s ease-in-out;
}

.best-deals-card:hover::before {
    left: 100%;
}

.best-deals-card:hover {
    transform: translateY(-8px);
    border-color: #21399C;
    box-shadow: 0 15px 35px rgba(33, 57, 156, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.best-deals-card .card-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.best-deals-card .bg-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease-in-out;
}

.best-deals-card:hover .bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    transform: scale(1.05);
}

.best-deals-card .badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease-in-out;
}

.best-deals-card:hover .badge {
    transform: scale(1.1);
}

.deal-statistics {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;
}

.deal-statistics:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(33, 57, 156, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.deal-statistics h3 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.deal-statistics .bg-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease-in-out;
}

.deal-statistics:hover .bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    transform: scale(1.02);
}

.best-deals-card i {
    transition: all 0.3s ease-in-out;
}

.best-deals-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.text-success strong {
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .best-deals-card .card-title {
        font-size: 1.1rem;
    }
    
    .deal-statistics h3 {
        font-size: 1.5rem;
    }
}

/* Property details carousel styles */
#propertyCarousel {
    border-radius: 0.5rem;
    overflow: hidden;
}

#propertyCarousel .carousel-item {
    transition: all 0.6s ease-in-out;
}

#propertyCarousel .carousel-control-prev,
#propertyCarousel .carousel-control-next {
    width: 10%;
    opacity: 0.8;
    transition: all 0.3s ease-in-out;
}

#propertyCarousel .carousel-control-prev:hover,
#propertyCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
}

#propertyCarousel .carousel-indicators {
    bottom: 20px;
}

#propertyCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease-in-out;
}

#propertyCarousel .carousel-indicators button.active {
    background-color: #21399C;
    border-color: #21399C;
    transform: scale(1.2);
}

#propertyCarousel .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Responsive carousel controls */
@media (max-width: 768px) {
    #propertyCarousel .carousel-control-prev,
    #propertyCarousel .carousel-control-next {
        width: 15%;
    }
    
    #propertyCarousel .carousel-indicators {
        bottom: 10px;
    }
    
    #propertyCarousel .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

/* Carousel animation enhancements */
#propertyCarousel .carousel-item img {
    transition: transform 0.6s ease-in-out;
}

#propertyCarousel:hover .carousel-item img {
    transform: scale(1.02);
}

/* Badge positioning for carousel */
#propertyCarousel + .badge {
    z-index: 15 !important;
}

/* Contact form styles */
.contact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}

.contact-card h5 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.contact-card .form-control {
    background: rgba(255, 255, 255, 0.9);
    color: #212529;
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.contact-card .form-control:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.contact-card .form-control::placeholder {
    color: #495057;
    font-weight: 400;
}

.contact-card .form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #ffffff;
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
    color: #212529;
    font-weight: 500;
    transform: translateY(-1px);
}

.contact-card .form-control.is-invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 0.15rem rgba(255, 107, 107, 0.25);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.contact-card .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.25);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

/* Additional hover effects for form elements */
.contact-card .form-control:hover,
.contact-card .form-control:focus,
.contact-card .form-control.is-invalid,
.contact-card .form-control.is-valid {
    transition: all 0.3s ease-in-out;
}

.contact-card .invalid-feedback {
    font-size: 0.875rem;
    color: #ff6b6b;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-card .valid-feedback {
    font-size: 0.875rem;
    color: #28a745;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-card .form-label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

#contactForm .form-label:has(+ input:not([required]))::after {
    content: "";
}

#feedbackForm .form-label:has(+ input:not([required]))::after {
    content: "";
}

.contact-card .form-check-label {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.contact-card .form-check-input {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.contact-card .form-check-input:checked {
    background-color: #21399C;
    border-color: #21399C;
}

.contact-card .form-check-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}

/* Submit button styles */
.contact-card #submitContactBtn {
    position: relative;
    transition: all 0.3s ease-in-out;
    background: rgba(255, 255, 255, 0.9);
    color: #21399C;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-shadow: none;
    letter-spacing: 0.5px;
}

.contact-card #submitContactBtn:hover {
    background: rgba(255, 255, 255, 1);
    color: #21399C;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.contact-card #submitContactBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: rgba(255, 255, 255, 0.5);
    color: #6c757d;
}

.contact-card #submitContactBtn .spinner-border {
    margin-right: 0.5rem;
    color: #21399C;
}

/* Modal styles */
#contactModal .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

#contactModal .modal-header {
    border-bottom: 2px solid #f8f9fa;
    border-radius: 1rem 1rem 0 0;
}

#contactModal .modal-footer {
    border-top: 2px solid #f8f9fa;
    border-radius: 0 0 1rem 1rem;
}

/* Alert styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert .btn-close {
    filter: invert(1);
}

/* Form validation animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-control.is-invalid {
    animation: shake 0.5s ease-in-out;
}

/* Responsive form adjustments */
@media (max-width: 768px) {
    #contactModal .modal-dialog {
        margin: 1rem;
    }
    
    #contactForm .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    #feedbackForm .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Loading state styles */
.btn:disabled .spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

/* Success animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    animation: fadeInUp 0.3s ease-out;
}

/* Enhanced form validation styles */
#contactForm .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    animation: shake 0.5s ease-in-out;
}

#feedbackForm .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    animation: shake 0.5s ease-in-out;
}

#contactForm .form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

#feedbackForm .form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

#contactForm .invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
    animation: fadeInUp 0.3s ease-out;
}

#feedbackForm .invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
    animation: fadeInUp 0.3s ease-out;
}

#contactForm .valid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #198754;
    margin-top: 0.25rem;
    animation: fadeInUp 0.3s ease-out;
}

#feedbackForm .valid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #198754;
    margin-top: 0.25rem;
    animation: fadeInUp 0.3s ease-out;
}

/* Phone input specific styles */
#contactForm input[type="tel"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

#feedbackForm input[type="tel"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

#contactForm input[type="tel"]::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

#feedbackForm input[type="tel"]::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Real-time validation feedback */
#contactForm .form-control:focus:not(.is-invalid):not(.is-valid) {
    border-color: #21399C;
    box-shadow: 0 0 0 0.2rem rgba(33, 57, 156, 0.25);
}

#feedbackForm .form-control:focus:not(.is-invalid):not(.is-valid) {
    border-color: #21399C;
    box-shadow: 0 0 0 0.2rem rgba(33, 57, 156, 0.25);
}

/* Character counter for message */
#contactForm textarea {
    resize: vertical;
    min-height: 80px;
}

#feedbackForm textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form field animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Required field indicator */
#contactForm .form-label.required::after {
    content: " ";
    color: #dc3545;
    font-weight: bold;
}

#feedbackForm .form-label.required::after {
    content: " ";
    color: #dc3545;
    font-weight: bold;
}

/* Form submission feedback */
.form-submitting {
    pointer-events: none;
    opacity: 0.7;
}

.form-submitting .btn {
    cursor: not-allowed;
}

/* Success state animations */
.form-success .form-control {
    border-color: #198754;
    background-color: #f8fff9;
}

/* Error state animations */
.form-error .form-control {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.contact-info a {
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #21399C !important;
    text-decoration: underline !important;
}

.contact-info a:active {
    transform: scale(0.98);
}

.contact-info i {
    transition: transform 0.3s ease;
}

.contact-info a:hover + i,
.contact-info a:hover ~ i {
    transform: scale(1.1);
}

@media (max-width: 991.98px) {
    .vh-100 {
        min-height: 100vh;
        height: auto;
        padding: 2rem 0;
    }
    
    .contact-card {
        margin: 1rem 0;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    .contact-card .card-body {
        padding: 1.5rem;
    }
    
    .contact-card h5 {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .contact-card .form-control {
        font-size: 16px; 
        padding: 0.75rem;
    }
    
    .contact-card .form-control.form-control-lg {
        font-size: 16px;
        padding: 0.75rem;
    }
    
    .contact-card .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .contact-card .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-card .form-check-label {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media (max-width: 767.98px) {
    .vh-100 {
        padding: 1rem 0;
    }
    
    .contact-card {
        margin: 0.5rem 0;
    }
    
    .contact-card .card-body {
        padding: 1rem 1rem 0 1rem;
    }
    
    .contact-card h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .contact-card .form-control {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-card .form-control.form-control-lg {
        padding: 0.5rem 0.75rem;
    }
    
    .contact-card .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .fs-5 {
        font-size: 1rem !important;
    }
    
    .fs-6 {
        font-size: 0.9rem !important;
    }
    
    .card-body {
        padding: 1rem 1rem 0 1rem;
    }
    
    .card-footer {
        padding: 1rem;
    }
    
    .activity-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        margin-right: 1rem;
    }
    
    .activity-title {
        font-size: 1rem;
    }
    
    .activity-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .contact-card .card-body {
        padding: 0.75rem 0.75rem 0 0.75rem;
    }
    
    .contact-card h5 {
        font-size: 1rem;
    }
    
    .contact-card .form-control {
        padding: 0.5rem;
        font-size: 16px;
    }
    
    .contact-card .btn-lg {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .fs-5 {
        font-size: 0.9rem !important;
    }
    
    .fs-6 {
        font-size: 0.8rem !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 991.98px) {
    .btn {
        min-height: 44px; 
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .form-check-input {
        min-width: 20px;
        min-height: 20px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
        height: 100%;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

@media (max-width: 767.98px) {
    .invalid-feedback,
    .valid-feedback {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }
    
    .form-control.is-invalid,
    .form-control.is-valid {
        background-size: 16px 16px;
        padding-right: 2.5rem;
    }
}

.btn {
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 0.5rem;
}

.btn:only-child {
    margin-right: 0;
}

.btn:has(i:only-child) {
    padding: 0.5rem;
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-footer .btn-outline-primary {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 60px;
    border-width: 1px;
    transition: all 0.3s ease-in-out;
}

.card-footer .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 57, 156, 0.2);
    font-weight: 700;
}

.card-footer .btn-outline-primary:active {
    transform: translateY(0);
}

@media (max-width: 767.98px) {
    .card-footer .btn-outline-primary {
        padding: 0.8rem 1.6rem;
        font-size: 1.1rem;
        min-height: 55px;
    }
}

@media (max-width: 575.98px) {
    .card-footer .btn-outline-primary {
        padding: 0.7rem 1.4rem;
        font-size: 1rem;
        min-height: 50px;
    }
}