:root {
    --primary-color: #0d1b2a; /* Azul escuro */
    --secondary-color: #ffffff; /* Branco */
    --accent-color: #1b263b; /* Azul um pouco mais claro para efeitos */
    --highlight-color: #e74c3c; /* Vermelho para destaque */
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* ============ NAVBAR ESTILOS ============ */
.navbar {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 10px var(--shadow-color);
    padding: 12px 0;
    border-bottom: 2px solid var(--primary-color);
}

.navbar .container-fluid {
    max-width: 1360px;
    margin: 0 auto;
}

.navbar-brand img {
    height: 45px;
    filter: drop-shadow(2px 2px 2px var(--shadow-color));
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 12px !important;
    position: relative;
}

.nav-link:hover {
    color: var(--highlight-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 12px;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: calc(100% - 24px);
}

.navbar-nav {
    gap: 0.5rem;
}

/* ============ DROPDOWN MENU ============ */
.dropdown-menu {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--highlight-color);
    padding-left: 25px;
}

.dropdown-item.active {
    background-color: rgba(13, 27, 42, 0.1);
    color: var(--highlight-color);
}

.nav-link.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.nav-link.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.navbar-toggler {
    border-color: var(--primary-color);
}

.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='%230d1b2a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============ HEADER BANNER ============ */
header {
    background: 
        linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(27, 38, 59, 0.85) 100%),
        url('img/slide1.png') center/cover no-repeat;
    color: var(--secondary-color);
    padding: 60px 20px;
    text-align: left;
    box-shadow: 0 8px 20px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

header .container {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    margin: 0 auto;
}

/* Icon Box Header */
.icon-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 203, 5, 0.15);
    border-radius: 8px;
    width: fit-content;
}

.icon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-header svg {
    width: 24px;
    height: 24px;
}

.header-icon-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFCB05;
}

/* Header Content */
.header-content {
    animation: fadeInUp 0.6s ease-out;
}

.header-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 20px 0 15px 0;
    line-height: 1.2;
}

.header-divider {
    width: 80px;
    height: 4px;
    background-color: #FFCB05;
    border-radius: 2px;
    margin: 20px 0;
}

.header-subtitle {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.95;
    line-height: 1.6;
}

.header-note {
    font-size: 0.9rem;
    opacity: 0.85;
    font-style: italic;
    margin: 0;
}

/* ============ FORMULÁRIO ============ */
.form-container {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out 0.1s both;
    max-width: 420px;
    margin: 0 auto;
}

.inscription-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-step {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: fadeIn 0.3s ease-out;
}

.form-step.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.form-control,
.form-select {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--primary-color);
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230d1b2a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* ============ BOTÕES FORMULÁRIO ============ */
.btn-form-next,
.btn-form-prev,
.btn-form-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-form-next,
.btn-form-submit {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 100%;
}

.btn-form-next:hover,
.btn-form-submit:hover {
    background-color: var(--highlight-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

.btn-form-next:active,
.btn-form-submit:active {
    transform: translateY(0);
}

.btn-form-prev {
    background-color: #f0f0f0;
    color: var(--primary-color);
    flex: 1;
}

.btn-form-prev:hover {
    background-color: #e0e0e0;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.form-buttons .btn-form-submit {
    flex: 2;
}

/* ============ CHECKBOX LGPD ============ */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    border: 1.5px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.form-check-input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.1);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.form-check-label {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    cursor: pointer;
    margin: 0;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-check-label a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

/* Disclaimer */
.form-disclaimer {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
    text-align: center;
    line-height: 1.5;
}

.form-disclaimer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-disclaimer a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

/* ============ ANIMAÇÃO FADE IN ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============ MAIN CONTENT ============ */
main {
    padding: 60px 20px;
    min-height: calc(100vh - 400px);
}

main.container {
    max-width: 1360px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    text-align: center;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--highlight-color);
    border-radius: 2px;
}

/* ============ CARDS ============ */
.card {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--highlight-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-body {
    padding: 30px;
}

.card h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: #666;
    line-height: 1.8;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* ============ BUTTONS ============ */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--highlight-color);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

.btn-primary h1 {
    margin: 0;
    font-size: 1rem;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

/* ============ FOOTER ============ */
footer {
    background-color: var(--primary-color);
    border-top: 3px solid #FFCB05;
    color: var(--secondary-color);
    padding: 50px 20px 20px;
    margin-top: 60px;
}

footer .container {
    max-width: 1360px;
    margin: 0 auto;
}

footer h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFCB05;
    margin-bottom: 1.5rem;
}

footer p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

footer a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #FFCB05;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 8px;
}

footer ul li a:hover {
    color: #FFCB05;
}

footer hr {
    border-color: #333;
    margin: 2rem 0;
    opacity: 0.3;
}

.social-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #FFCB05;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFCB05;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background-color: #FFCB05;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    font-size: 0.9rem;
}

/* ============ ANIMAÇÃO DE ENTRADA ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: var(--secondary-color);
        padding: 20px 15px;
        border-radius: 5px;
        margin-top: 15px;
        max-height: 100vh;
        overflow-y: auto;
    }

    .nav-link {
        padding: 14px 15px !important;
        display: block;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.05rem !important;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Dropdown responsivo */
    .dropdown-menu {
        background-color: #f9f9f9;
        border: none;
        border-left: 3px solid var(--primary-color);
        box-shadow: none;
        padding: 0;
        position: static;
    }

    .dropdown-item {
        padding: 12px 20px 12px 40px;
        border-bottom: 1px solid #e0e0e0;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    /* Destaque para Inscreva-se no mobile */
    .nav-link[href*="cadastro"] {
        background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
        color: var(--secondary-color) !important;
        border-radius: 6px;
        margin: 10px 0;
        padding: 16px 15px !important;
        font-weight: 700 !important;
        font-size: 1.1rem !important;
        border: none !important;
        transition: all 0.3s ease;
    }

    .nav-link[href*="cadastro"]::after {
        display: none;
    }

    .nav-link[href*="cadastro"]:hover {
        background: linear-gradient(90deg, var(--highlight-color), var(--primary-color));
        transform: scale(1.02);
        box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
    }

    header {
        padding: 40px 20px;
    }

    .header-title {
        font-size: 2.2rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .form-container {
        margin-top: 30px;
        max-width: 100%;
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .navbar-brand img {
        height: 40px;
    }

    main {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    footer .container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        padding: 30px 15px;
        text-align: center;
    }

    .navbar-collapse {
        padding: 20px 12px;
    }

    .nav-link {
        padding: 16px 12px !important;
        font-size: 1.08rem !important;
    }

    .nav-link[href*="cadastro"] {
        font-size: 1.15rem !important;
        padding: 18px 12px !important;
    }

    .header-title {
        font-size: 1.8rem;
    }

    .header-subtitle {
        font-size: 0.95rem;
    }

    .icon-box-header {
        justify-content: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .header-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .form-container {
        padding: 20px;
        margin-top: 20px;
        width: 95%;
        max-width: 100%;
    }

    .form-control,
    .form-select {
        font-size: 16px;
    }

    .card-body {
        padding: 20px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .navbar-collapse {
        max-height: 100vh;
        overflow-y: auto;
    }

    .btn-form-next,
    .btn-form-prev,
    .btn-form-submit {
        font-size: 0.95rem;
        padding: 11px 20px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-buttons .btn-form-submit {
        flex: 1;
    }

    footer {
        padding: 40px 15px 15px;
    }

    footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    footer p,
    footer a,
    footer ul li a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}