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

body {
    font-family: 'Titillium Web', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow: auto;
}

body.blocked {
    overflow: hidden
}

#home {
    height: 90vh;
    display: flex;
    flex-direction: column;
}



#contacts {
    background-color: #0556c9;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 10%;
}

#contacts > div {
    display: flex;
    gap: 10px;
}

#contacts > div:first-child {
    justify-content: flex-start;
}

#contacts > div:last-child {
    justify-content: flex-end;
}

.contact-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    color: #f1f1f1;
    font-size: 0.9rem;
    font-weight: 600;
}

header {
    padding: 10px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
#btnCloseMenu {
    cursor: pointer;
    user-select: none;
    position: absolute;
    top: 20px;
    right: 20px;
    display: none;
}
#btnOpenMenu {
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: none;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
}

header nav ul a {
    text-decoration: none;
    color: #36454f ;
    font-size: 1.1rem;
    padding: 10px 20px;
    font-weight: 700;
    transition: all 0.5s ease;
    border-radius: 50px;
}

header nav ul a:hover {
    background-color: #86b3f3;
}

.btn {
    text-decoration: none;
    border-radius: 50px;
    padding: 10px 30px;
    color: #36454f;
    transition: all 0.5s ease;
    border: none;
    outline: none;
    font-weight: lighter;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

a.btn {
    font-weight: 400;
}

.btn:hover {
    opacity: 0.8;
}

.btn.primary {
    background-color: #a51b38;
    color: #fff;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
}

/* Media queries */
@media only screen and (max-width: 480px) {
    header img {
        width: 80px;
    }
    .hero-content h1 {
        font-size: 30px !important;
    }
    .hero-content h2 {
        font-size: 1.2rem !important;
    }
    #contacts > div:first-child {
        justify-content: center;
        flex-direction: column;
        gap: 0;
        align-items: flex-start !important;
    }
    .section-header h1 {
        font-size: 30px !important;
    }
    #cursos-categorias > div a {
        padding: 5px 10px;
    }
    #lista-cursos article h1 {
         font-size: 1.1rem !important;
         text-align: center;
    }
    .section-header p {
        text-align: center;
    }
    #contactos .section-body {
        flex-direction: column;
    }
    .modal {
        height: auto !important;
        
    }
    .modal .container {
        width: 100% !important;
        height: 100% !important;
    }
}

@media only screen and (max-width: 768px) {
   #btnOpenMenu {
        /* display: block; */
    }
    #btnCloseMenu {
        display: block;
    }
    header img {
        width: 100px;
    }
    header nav.shown{
        display: block;
    }
    header nav {
        position:fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #f1f1f1;
        z-index: 20;
        display: none;
    }
    header nav ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        gap: 30px;
    }
     header nav ul li {
        display: block;
     }
     #logged-user {
        padding: 5px 7px;
    }
    #logged-user .user-info span {
        font-size: 20px !important;
    }
    #logged-user .user-info p {
        font-size: 12px;
    }
    #logged-user .options a {
        font-size: 10px !important;
    }
    #logged-user .options a span {
        font-size: 15px !important;
    }
     .btn {
        font-size: 0.8rem;
        padding: 5px 15px;
    }
    #about-us > div {
        flex-direction: column;
        gap: 40px !important;
    }
    #lista-cursos {
        grid-template-columns: repeat(1, 1fr) !important ;
    }
     .modal {
        height: auto !important;
        
    }
    .modal .container {
        width: 100% !important;
        height: 100% !important;
    }
    body.blocked {
        overflow: scroll !important;
    }
    .modal .container .header h1,
    #detalhes-candidatura .content h1 {
        font-size: 20px !important;
    }
    #detalhes-candidatura .content h3,
    #detalhes-candidatura .content span {
        font-size: 1rem;
    }
}

#logged-user {
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 30px;
    user-select: none;
    transition: all 0.5s ease;
    position: relative;
    z-index: 11;
}

#logged-user input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

#logged-user input:checked ~ div.options{
    display: flex;
}

#logged-user:hover {
    background-color: #f1f1f1;
}

#logged-user > div.user-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#logged-user > div.user-info p {
    font-weight: 600;
    color: #36454f;
}

#logged-user > div.user-info span:first-child {
    font-weight: 200;
    color: #36454f;
    font-size: 30px;
}

#logged-user > div.user-info span:last-child {
    color: #36454f;
    margin-left: 20px;
}

#logged-user .options {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    top: calc(100% + 5px);
    animation: fadeIn 0.3s ease;
}

#logged-user .options a {
    text-decoration: none;
    color: #f1f1f1;
    padding: 10px 20px;
    background-color: #36454f;
    border-radius: 25px;
    font-weight: 400;
    font-size: 13px;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    transition: all 0.5s ease-in;
}

#logged-user .options a:hover {
    background-color: #a51b38;
    color: #f1f1f1;
}

.hero {
    height: 100%;
    overflow: hidden;
    background-image: url(./images/front.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #36454f;
    opacity: 0.9;
}

.hero-content {
    z-index: 5;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 10%;
    padding-top: 100px;
}

.hero-content h1 {
    color: #f1f1f1;
    font-size: 50px;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
}

.hero-content h2 {
    text-align: center;
    font-weight: 200;
    color: #f1f1f1;
    font-size: 1.2;
    margin-bottom: 20px;
}

#about-us {
    padding: 0 10%;
}

#about-us > div {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
}

#about-us > div article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #f1f1f1;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
    position: relative;
    top: -50px;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    border: 1px solid #0556c9;
}

#about-us > div article span {
    background-color: #0556c9;
    padding: 15px;
    color: #f1f1f1;
    border-radius: 50%;
    position: absolute;
    top: -30px;
    font-size: 2rem;
    font-weight: 300;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
}

#about-us > div article h1 {
    font-weight: 700;
    color: #0556c9;
    font-size: 1.5rem;
}

#about-us > div article p {
    font-weight: 600;
    color: #36454f;
    text-align: center;
}

#cursos {
    padding: 10px 10%;
}

.section-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-header h1 {
    font-size: 50px;
    color: #36454f;
}

.section-header p {
    font-weight: 300;
}

#cursos-categorias {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#cursos-categorias span {
    user-select: none;
    padding: 10px;
    color: #36454f}

#cursos-categorias > div {
    width: 100%;
    display: flex;
    justify-content: center;
    white-space: nowrap;
    gap: 10px;

    overflow-x: scroll;
    scroll-behavior: smooth; 
    -ms-overflow-style: none;  
    scrollbar-width: none; 
}

#cursos-categorias > div::-webkit-scrollbar {
    display: none;
}

#cursos-categorias > div a {
    text-decoration: none;
    color: #36454f;
    padding: 10px 20px;
    background-color: #f1f1f1;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.5s ease;
    flex: 0 0 auto;
    white-space: nowrap;
    user-select: none;
}

#cursos-categorias > div a:hover {
    opacity: 0.8;
}

#cursos-categorias > div a.active {
    background-color: #0556c9;
    color: #f1f1f1;
}


#lista-cursos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#lista-cursos article {
    border: 1px solid #0556c9;
    padding: 40px 20px;
    border-radius: 10px;
    background-color: #f1f1f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#lista-cursos article span {
    padding: 15px;
    background-color: #0556c9;
    color: #f1f1f1;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 200;
}

#lista-cursos article h1 {
    color: #36454f;
    font-weight: 700;
    font-size: 1.4rem;
    color: #0556c9;
}

#lista-cursos article p {
    color: #36454f;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
}


#lista-cursos article .btn {
    background-color: #36454f;
    color: #f1f1f1;
    margin-top: 10px;
}

#lista-cursos article .btn:hover {
    background-color: #a51b38;
}

#contactos {
    padding: 50px 10%;
}

#contactos .section-body {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

#contactos .section-body > div {
    width: 100%;
}

#contactos .section-body > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px;
}

.address-item {
    background-color: #f1f1f1;
    display: flex;
    gap: 10px;
    align-items: center;
    
}

.address-item > span {
    background-color: #0556c9;
    color: #f1f1f1;
    padding: 15px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 200;
}

.address-item > div {
    padding: 20px 0;
}

.address-item h3, .address-item h4 {
    color: #36454f;
    font-weight: 300;
}

footer {
    text-align: center;
    color: #f1f1f1;
    padding: 10px 0;
    background-color: #36454f;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal .container {
    background-color: #fff;
    width: 500px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 21;
    opacity: 1;
}

.modal .container .header {
    border-bottom: 1px solid #ccc;
}

.modal .container .header,
.modal .container .content {
    padding: 20px 40px;
}

.modal .container .header h1 {
    color: #36454f;
    font-weight: lighter;
    font-size: 25px;
}

.modal .container .header span {
    color: #36454f;
    position: absolute;
    top: 0;
    right: 0;
    user-select: none;
    padding: 15px;
    font-weight: 200;
}

.modal .container .header span:hover {
    color: #a51b38;
}

.modal .container form {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}

.input-group input,
.input-group select {
    padding: 15px 20px;
    border-radius: 10px;
    outline: none;
    border: none;
    border: 1px solid #ccc;
    color: #36454f;
    width: 100%;
}

.input-group input:focus,
.input-group select:focus {
    box-shadow: 0px 0px 1px 1px #0557c99a;
}

.input-group label {
    color: #36454f;
    font-weight: 300;
    font-size: 0.8rem;
}

.modal .btn {
    padding-bottom: 13px;
    padding-top: 13px;
    margin-top: 10px;
    border-radius: 10px;
}

.modal .btn.secondary {
    background-color: #ccc;
}

#detalhes-candidatura .content h1 {
    color: #0556c9;
    font-weight: 500;
}

#detalhes-candidatura .content span {
    color: #36454f;
    font-weight: 700;
    font-size: 14px;
}

#detalhes-candidatura .content h3 {
    color: #36454f;
    font-weight: lighter;
}

/*  */

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #0556c9;
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 33.33%;
}

.step-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.step-indicator {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #64748b;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: #0556c9;
    color: white;
}

.step-indicator.completed {
    background: #10b981;
    color: white;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.completion-message {
    text-align: center;
    padding: 40px 20px;
}

.completion-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    /* margin-top: 30px; */
}



/* validacao do form pelo ClaudeAI */
.error-message {
        color: #e74c3c;
        font-size: 12px;
        margin-top: 5px;
        display: block;
    }
    
    .input-group.error input,
    .input-group.error select {
        border-color: #e74c3c;
        background-color: #fdf2f2;
    }
    
    .input-group.success input,
    .input-group.success select {
        border-color: #27ae60;
        background-color: #f2fdf2;
    }

