/* IEEE Color Palette */
:root {
    --ieee-blue: 0, 98, 155;
    --cyan: 0, 181, 226;
    --teal: 0, 156, 166;
    --dark-teal: 0, 115, 119;
    --dark-green: 0, 99, 65;
    --green: 0, 132, 61;
    --olive-green: 101, 141, 27;
    --bright-green: 120, 190, 32;
    --yellow: 255, 209, 0;
    --dark-yellow: 255, 199, 44;
    --orange: 255, 163, 0;
    --dark-orange: 232, 119, 34;
    --red: 186, 12, 47;
    --dark-red: 134, 32, 65;
    --purple: 152, 29, 151;
    --dark-purple: 119, 37, 131;
    --dark-blue: 0, 40, 85;
    --gray: 117, 120, 123;
}

/* ===== Geral ===== */
body {
    margin: 0;
    font-family: 'Open-Sans', sans-serif;
    background: #001f3f;
    color: white;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    font-family: 'Open-Sans', sans-serif;
}

input:focus, textarea:focus, select:focus {
    border-color: #6aabff;
}

input::placeholder, textarea::placeholder {
    font-family: 'Open-Sans', sans-serif;
    font-size: 16px;
    color: #999;
}

/* ===== Timeline ===== */
.timeline-section {
    position: relative;
    overflow: hidden;
}

.timeline-section.hero {
    height: auto;
}

.timeline-background {
    background: url('banner images/tecnico-1.jpg') no-repeat center/cover;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
}

.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 10px auto 0;
    padding: 170px 20px 60px;
    text-align: center;
    color: #fff;
    z-index: 1;
}

.line-base, .line-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    top: 260px;
    border-radius: 3px;
}

.line-base {
    height: 100%;
    background: white;
}

.line-progress {
    height: 0;
    background: rgb(var(--cyan));
    transition: height 0.25s ease-out;
}

.timeline-title {
    font-size: 40px;
    letter-spacing: 6px;
    font-weight: 500;
}

.step {
    position: relative;
    margin: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.step:first-of-type {
    margin-top: 0;
}

.step-content {
    position: relative;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.step-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-content.left {
    order: -1;
    text-align: right;
    margin-right: 500px;
}

.step-content.right {
    text-align: left;
    margin-left: 500px;
}

.checkpoint {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%) scale(0.4);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid rgb(var(--cyan));
    opacity: 0;
    transition: all 0.3s ease-out;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60%;
    margin: 10px 0;
}

.checkpoint.visible {
    background-color: rgb(var(--cyan));
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background-image: url("icons&logos/check.png");
}

.step h2 {
    margin-top: -10px;
    font-size: 26px;
    font-weight: 500;
}

.step p {
    max-width: 600px;
    margin: 5px auto 0;
    font-size: 17px;
    line-height: 1.5;
    opacity: 0.9;
    text-transform: none;
}

/* Remove espaço extra no fim da timeline */
.timeline-section .step:last-child {
    margin-bottom: 110px;
}

.timeline-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== Contact ===== */
.contact-section {
    position: relative;
    z-index: 1;
    padding: 50px 0 80px;
}

.contact-wrapper {
    background: white;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    padding: 30px 50px 30px 50px;
}

.contact-header {
    text-align: left;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 0px;
    color: rgb(var(--ieee-blue));
}

.contact-header p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

form .row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

form .row .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full {
    display: flex;
    flex-direction: column;
}

.attachment-group {
    margin-top: 24px;
}

.message-group {
    margin-top: 24px;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 500;
    color: #333;
}

/* File list and submitted files styles (ensure text is not white) */
#file-list, #submitted-files, .file-list {
    color: #222;
    margin-top: 12px;
}

#file-list ul, #submitted-files ul {
    list-style: none;
    padding-left: 0;
}

#file-list li, #submitted-files li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f7f7f7;
    color: #111;
    margin-bottom: 8px;
}

#file-list button, #submitted-files button {
    background: transparent;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #222;
}

#file-list button:hover, #submitted-files button:hover {
    background: #eee;
}

/* Placeholder when no files are uploaded: lighter tone and spacing */
.no-files {
    color: #7a7a7a;
    font-style: italic;
    margin-bottom: 16px; /* space between file list and message field */
}

#file-list {
    margin-bottom: 18px; /* space between file list and following form elements */
}

select {
    appearance: none;
    background-color: #fff;
    color: rgb(var(--gray));
    font-size: 16px;
    font-family: 'Open-Sans', sans-serif;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'10'%20height%3D'6'%20viewBox%3D'0%200%2010%206'%20fill%3D'none'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M1%201L5%205L9%201'%20stroke%3D'%23666'%20stroke-width%3D'1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

select:focus {
    border-color: rgb(var(--ieee-blue));
    color: #333;
}

.custom-file-upload {
    background-color: #fff;
    color: rgb(var(--ieee-blue));
    border: 2px solid rgb(var(--ieee-blue));
    border-radius: 50px;
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    margin-top: 12px;
    padding: 10px 40px;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 400ms ease;
}

.custom-file-upload:hover {
    color: #000;
    border: 2px solid #000;
    border-radius: 50px;
    display: inline-block;
    padding: 10px 40px;
    font-weight: bold;
    font-size: 16px;
        font-family: 'Open Sans', sans-serif;
            text-transform: uppercase;
            text-decoration: none;
            transition: all 400ms ease;
}

.submit-button {
    background-color: rgb(var(--ieee-blue));
    color: white;
    border-radius: 50px;
    display: inline-block;
    margin-top: 24px;
        padding: 10px 40px;
            font-weight: bold;
            font-size: 16px;
            font-family: 'Open Sans', sans-serif;
            text-transform: uppercase;
            text-decoration: none;
            transition: all 400ms ease;
}

.submit-button:hover {
    background-color: white;
    color: rgb(var(--ieee-blue));
    border-radius: 50px;
    display: inline-block;
    padding: 10px 40px;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 400ms ease;
}

/* Language Toggle Button */
.lang-toggle button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.lang-toggle button:hover {
  opacity: 0.8;
}

.fi {
  font-size: 24px;
  border-radius: 3px;
}
