.form-control {
    background-color: var(--form-bg);
    border: 1px solid var(--form-border);
    color: var(--form-text);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: auto;
    font-size: 1rem;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--form-focus-border);
    background-color: var(--form-focus-bg);
    box-shadow: 0 0 0 0.2rem var(--form-focus-shadow);
    color: var(--form-text);
}

.form-control::placeholder {
    color: var(--form-placeholder);
    opacity: 1;
}

.form-control::-moz-placeholder {
    color: var(--form-placeholder);
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    color: var(--form-placeholder);
}

.form-control::-ms-input-placeholder {
    color: var(--form-placeholder);
}


.invalid-feedback {
    color: #e74a3b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #e74a3b;
    background-image: none;
}

.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
    border-color: #e74a3b;
    box-shadow: 0 0 0 0.2rem rgba(231, 74, 59, 0.25);
}

.valid-feedback {
    color: #1cc88a;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #1cc88a;
    background-image: none;
}

.was-validated .form-control:valid:focus,
.form-control.is-valid:focus {
    border-color: #1cc88a;
    box-shadow: 0 0 0 0.2rem rgba(28, 200, 138, 0.25);
}


:root {
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

body.light_theme {
    --home-primary-color: #4e73df;
    --home-secondary-color: #1cc88a;
    --accent-color: #f6c23e;

    --bg-main: #ffffff;
    --bg-alt: #f8f9fc;
    --bg-card: #ffffff;
    --home-bg-header: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);

    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #ffffff;

    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);

    --gradient-primary: linear-gradient(90deg, var(--home-primary-color), var(--home-secondary-color));
    --gradient-btn: linear-gradient(45deg, var(--home-primary-color), #375bc8);
    --overlay-light: rgba(255, 255, 255, 0.1);
    --overlay-dark: rgba(0, 0, 0, 0.1);
    --highlight: rgba(255, 255, 255, 0.9);
    --carousel-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));

    --icon-bg: rgba(78, 115, 223, 0.1);
    --icon-color: var(--home-primary-color);
}

body.dark_theme {
    --home-primary-color: #5e83ef;
    --home-secondary-color: #2cd89a;
    --accent-color: #f6c23e;

    --bg-main: #121212;
    --bg-alt: #1a1a2e;
    --bg-card: #1e1e30;
    --home-bg-header: linear-gradient(135deg, #0f0f1a 0%, #0a1a30 100%);

    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --text-light: #ffffff;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.3);

    --gradient-primary: linear-gradient(90deg, var(--home-primary-color), var(--home-secondary-color));
    --gradient-btn: linear-gradient(45deg, var(--home-primary-color), #4a6ad0);
    --overlay-light: rgba(255, 255, 255, 0.05);
    --overlay-dark: rgba(0, 0, 0, 0.3);
    --highlight: rgba(255, 255, 255, 0.1);
    --carousel-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));

    --icon-bg: rgba(94, 131, 239, 0.2);
    --icon-color: var(--home-primary-color);
}


@media (max-width: 990px) {
    .copyicon {
        font-size: 6rem !important;
    }

    .desktop-profile {
        display: none !important;
    }

    .mobile-profile {
        display: block !important;
    }

    .carrossel-home {
        height: auto !important;
        min-height: 25rem !important;
    }

    .carousel-item {
        height: 50vh !important;
        min-height: 25rem !important;
        max-height: 35rem !important;
    }

    .img-carrossel {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .carousel-caption {
        bottom: 15% !important;
        padding: 0 1rem !important;
    }

    .carousel-title {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }

    .carousel-description {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .carousel-btn {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
    }
}

@media (min-width: 991px) {
    .mobile-profile {
        display: none !important;
    }

    .copyicon {
        font-size: 3rem !important;
    }

    /* Mantém as configurações originais para telas maiores */
    .carrossel-home {
        height: 60rem !important;
    }

    .carousel-item {
        height: 60rem !important;
    }

    .img-carrossel {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Regras adicionais para melhor responsividade */
@media (max-width: 576px) {
    .carrossel-home {
        min-height: 20rem !important;
    }

    .carousel-item {
        height: 40vh !important;
        min-height: 20rem !important;
        max-height: 30rem !important;
    }

    .carousel-title {
        font-size: 1.5rem !important;
    }

    .carousel-description {
        font-size: 0.9rem !important;
    }

    .carousel-btn {
        padding: 6px 16px !important;
        font-size: 0.8rem !important;
    }
}

/* Melhorar a sobreposição do conteúdo */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    position: absolute;
    text-align: center;
}



/* Estilos para o carrossel principal */
.carrossel-home {
    position: relative;
    overflow: hidden;
    max-height: 750px;
}

.carousel-item {
    position: relative;
    height: 100vh;
    max-height: 750px;
    overflow: hidden;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--carousel-overlay);
    z-index: 1;
}

.img-carrossel {
    border-radius: 0 !important;
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.carousel-description {
    font-size: 1.5rem;
    color: var(--text-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.carousel-btn {
    display: inline-block;
    background: var(--gradient-btn);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    color: var(--text-light);
}

.carousel-indicators {
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    width: 30px;
    border-radius: 10px;
    background-color: var(--home-primary-color);
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
    width: 10%;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    background-size: 50%;
}

/* Estilos para a seção "O que é AC7?" */
#features13-1v {
    padding: 6rem 0;
    background-color: var(--bg-main);
    position: relative;
    overflow: hidden;
}

#features13-1v::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: var(--bg-alt);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}

#features13-1v .container {
    position: relative;
    z-index: 1;
}

#features13-1v .card-wrapper {
    position: relative;
    padding-right: 2rem;
}

#features13-1v .card-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

#features13-1v .card-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -15px;
    left: 0;
}

#features13-1v .mbr-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(30px);
}

#features13-1v .mbr-text:nth-child(2) {
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

#features13-1v .mbr-text:nth-child(3) {
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

#features13-1v .mbr-text:nth-child(4) {
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

#features13-1v .display-7 {
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 1.1s;
}

/* Estilos para os cards de valores/diferenciais */
.features-without-image {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-wrapper {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.item-wrapper:nth-child(1) {
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.item-wrapper:nth-child(2) {
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.item-wrapper:nth-child(3) {
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.item-wrapper:nth-child(4) {
    animation: fadeInUp 0.8s ease forwards 1s;
}

.item-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.item-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.item-wrapper:hover::after {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.item-wrapper:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-primary);
}

.icons {
    font-size: 1.8rem;
    color: var(--icon-color);
    transition: all 0.3s ease;
}

.item-wrapper:hover .icons {
    color: var(--text-light);
}

.text-box {
    flex: 1;
}

.icon-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.item-wrapper:hover .icon-title {
    color: var(--home-primary-color);
}

.icon-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Estilos para a seção de serviços */
#features04-w {
    padding: 6rem 0;
    background-color: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

#features04-w::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('{% static "img/pattern-dots.webp" %}');
    background-size: cover;
    opacity: 0.03;
    z-index: 0;
}

#features04-w .container {
    position: relative;
    z-index: 1;
}

#features04-w .mbr-section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

#features04-w .mbr-section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid var(--border-light);
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
}

.service-card:nth-child(1) {
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.service-card:nth-child(2) {
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.service-card:nth-child(3) {
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.service-card:nth-child(4) {
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 0 !important;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
    position: relative;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--home-primary-color);
}

.service-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gradient-btn);
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

/* Seção de contato */
#contacts02-9 {
    padding: 6rem 0;
    background-color: var(--bg-main);
    position: relative;
}

#contacts02-9 .mbr-section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

#contacts02-9 .mbr-section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.contact-form {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.form-control {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.form-control:focus {
    border-color: var(--home-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.contact-info {
    padding: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon ion-icon {
    font-size: 1.5rem;
    color: var(--icon-color);
}

.contact-text h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn-submit {
    background: var(--gradient-btn);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .carousel-item {
        height: 60vh;
    }

    .carousel-title {
        font-size: 2.8rem;
    }

    .carousel-description {
        font-size: 1.2rem;
    }

    #features13-1v .card-title,
    #features04-w .mbr-section-title,
    #contacts02-9 .mbr-section-title {
        font-size: 2.5rem;
    }

    #features13-1v::before {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 50vh;
    }

    .carousel-title {
        font-size: 2.2rem;
    }

    .carousel-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .carousel-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    #features13-1v .card-title,
    #features04-w .mbr-section-title,
    #contacts02-9 .mbr-section-title {
        font-size: 2rem;
    }

    #features13-1v::before {
        display: none;
    }

    #features13-1v .card-wrapper {
        padding-right: 0;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}