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

:root {
    /* Cores do gradiente azul da imagem */
    --blue-top: #6495ED;      /* Cornflower Blue - topo */
    --blue-medium: #4285F4;   /* Google Blue - meio */
    --blue-bottom: #2A67C4;   /* Azul profundo - base */
    --teal: #4ecdc4;
    --teal-light: #7dd3cc;
    --teal-dark: #3ab5ad;
    --accent-green: #4ade80;
    --accent-green-light: #6ee7b7;
    --text-white: #ffffff;
    --text-light: #e8f4f8;
    --text-gray: #a0b8c8;
    --border-color: rgba(255, 255, 255, 0.25);
    --success-color: #10b981;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(ellipse at center, var(--blue-top) 0%, var(--blue-medium) 50%, var(--blue-bottom) 100%);
    min-height: 100vh;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.hero-section {
    background: radial-gradient(ellipse at center, var(--blue-top) 0%, var(--blue-medium) 40%, var(--blue-bottom) 100%);
    min-height: 100vh;
    position: relative;
    padding: 40px 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(100, 149, 237, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(100, 149, 237, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

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

.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-family: 'Quicksand', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
    color: var(--text-white);
}

.logo-highlight {
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    position: relative;
}

.logo-highlight::before {
    content: '🎓';
    position: absolute;
    left: -35px;
    font-size: 0.8em;
}

.tagline {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    color: var(--teal-light);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.intro-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.avatars-container {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
}

.avatars-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    background: transparent;
    border: none;
    padding: 0;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.25));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.intro-text {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-heading {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    color: var(--text-white);
}

.description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.description.highlight {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
    margin: 24px 0;
    padding: 16px 0;
    border-top: 2px solid rgba(74, 222, 128, 0.4);
    border-bottom: 2px solid rgba(74, 222, 128, 0.4);
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeInRight 1s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue-bottom);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--blue-bottom);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--text-white);
    color: var(--blue-bottom);
}

select {
    color: var(--blue-bottom);
}

select option {
    color: var(--blue-bottom);
    background: var(--text-white);
}

select option:first-child {
    color: #6b7280; /* Cor cinza para o placeholder "Selecione seu estado" */
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232A67C4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
    color: var(--blue-bottom) !important;
}

select:invalid {
    color: #6b7280;
}

select:valid,
select:not([value=""]) {
    color: var(--blue-bottom) !important;
}

.submit-btn {
    font-family: 'Quicksand', sans-serif;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    color: var(--text-white);
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6);
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--success-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #065f46;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--success-color);
}

.success-message h4 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #065f46;
}

.success-message p {
    font-size: 1rem;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

.hidden label {
    position: absolute;
    left: -9999px;
}

.footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.footer-text {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Responsividade */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-section {
        gap: 25px;
    }

    .avatars-container {
        order: -1;
        background: transparent;
        padding: 0;
    }

    .avatars-image {
        max-width: 80%;
        background: transparent;
    }

    .intro-text {
        text-align: center;
    }

    .main-heading {
        font-size: 2rem;
    }

    .logo {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 20px 15px;
    }

    .header {
        margin-bottom: 40px;
    }

    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .main-heading {
        font-size: 1.6rem;
    }

    .description {
        font-size: 1rem;
    }

    .avatars-image {
        max-width: 100%;
        background: transparent;
        padding: 0;
    }

    .form-container {
        padding: 25px 20px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Melhorias de foco para acessibilidade */
input:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}
