/* Font Face */
@font-face {
    font-family: 'Allianz';
    src: url('/assets/webfont/AllianzNeoW01-Light.woff2') format('woff2'),
         url('/assets/webfont/AllianzNeoW01-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Allianz';
    src: url('/assets/webfont/AllianzNeoW01-Regular.woff2') format('woff2'),
         url('/assets/webfont/AllianzNeoW01-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Allianz';
    src: url('/assets/webfont/AllianzNeoW01-SemiBold.woff2') format('woff2'),
         url('/assets/webfont/AllianzNeoW01-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Allianz';
    src: url('/assets/webfont/AllianzNeoW01-Bold.woff2') format('woff2'),
         url('/assets/webfont/AllianzNeoW01-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IconFont';
    src: url('assets/webfont/icons/Allianz-Icons.woff2') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: 'Allianz', sans-serif;
    font-weight: 400; /* Regular */
    color: #122B54;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6, a, input, textarea, button, label {
    overflow-wrap: break-word;
    text-wrap: balance;
    font-family: 'Allianz', sans-serif;
    font-weight: 400; /* Regular */
}

/* Layout & Containers */
.inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: clamp(15px, 5vw, 80px);
    padding-right: clamp(15px, 5vw, 80px);
}

/* Typography */
.heading-1 {
    flex-shrink: 0;
    color: #FFF;
    font-size: clamp(45px, 6vw, 96px);
    font-style: normal;
    font-weight: 300; /* Light */
    line-height: 1em;
    width: 100%;
    font-family: 'Allianz', sans-serif;
}

.heading-2 {
    color: #122B54;
    font-size: 45px;
    font-style: normal;
    font-weight: 400; /* Regular */
    line-height: 115%; /* 51.75px */
    font-family: 'Allianz', sans-serif;
    text-wrap: balance;
}

a {
    color: #414141;
}

.paragraph {
    font-size: 18px;
    font-style: normal;
    font-weight: 400; /* Regular */
    line-height: 147%; /* 32.34px */
    letter-spacing: 0.44px;
    font-family: 'Allianz', sans-serif;
}

.paragraph--blue {
    color: #122B54;
}

.paragraph--white {
    color: #FFF;
}

/* Components */
/* Buttons */
.button {
    width: clamp(280px, 90vw, 460px);
    height: clamp(48px, 8vh, 70px);
    padding: 0 clamp(16px, 3vw, 32px);
    border-radius: 13px;    
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 400; /* Regular */
    line-height: 152%;
}

.button-ghost {
    transition: all 0.3s ease;
    border: 3px solid #FFF;
    background: rgba(255, 255, 255, 0.10);  
    color: #FFF;
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 1);
    color: rgba(0,0,0,1);
}

.button-accent {
    transition: all 0.3s ease;
    background: #F62459;
    color: #fff;
    border: none;
}

.button-accent:hover {
    background: #fd3f6f;
}

/* Overlay de Feedback */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.feedback-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    text-align: center;
}

.feedback-logo {
    width: 250px;
    height: 62px;
    margin-bottom: -24px; /* Ajuste o espaçamento entre o logo e a mensagem */
}

.feedback-message {
    color: #122B54;
    font-size: 2em;
    line-height: 1em;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.feedback-message.active {
    opacity: 1;
    transform: translateY(0);
}

.feedback-progress {
    width: 200px;
    height: 2px;
    background: rgba(0, 55, 129, 0.2);
    margin-top: -24px;
    overflow: hidden;
    border-radius: 2px;
}

.feedback-progress-bar {
    width: 0%;
    height: 100%;
    background: #122B54;
    transition: width 0.5s ease;
}

/* Header */
.header .logo {
    width: 100%;
    max-width: 175px;
    flex-shrink: 0;
}

.header .inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}
@media (max-width: 1024px) {
    .header .inner {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .header .logo {
        margin: 0 auto;
    }

    .header .text {
        text-align: center !important;
        display: none;
    }
}

.header .text {
    text-align: right;
}

.event-date {
    display: none;
}
@media (max-width: 1024px) {
    .event-date {
        display: block;
        padding: clamp(15px, 5vw, 80px);
        text-align: left;
        color: #003781;
    }
}


/* Hero Section */
.hero {
    --heading-gap-lg: clamp(100px, 15vw, 220px);
    --heading-gap-md: clamp(70px, 10vw, 140px);
    --heading-gap-sm: clamp(75px, 10vw, 150px);
    --button-spacing: 70px;
    
    position: relative;
    min-height: 600px;
    height: calc(100vh - 200px);
    background: url(/public/images/campanha-hero-background.webp) center/cover no-repeat;
    overflow: hidden;
}

.hero .inner {
    position: relative;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 70px;
    height: 100%;
    z-index: 2;
}

@media (max-width: 1024px) {
    .hero .inner {
        gap: 0px;
    }
}

.hero-image {
    position: absolute;
    bottom: 0;
    transform: translateX(-78%);
    z-index: 1;
    width: 1440px;
    max-width: none;
    left: 50%;
    object-fit: cover;
    height: calc(100vh - 250px);
    object-position: top;
}

.hero .heading-1 {
    text-align: center;
}

/* Hero Typography Animation */
.hero .heading-1 {
    z-index: 2;
    text-align: center;
}

.hero .heading-line {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.hero .heading-line:nth-child(1) {
    gap: var(--heading-gap-lg);
    > span { transform: translateX(-40px); }
}

.hero .heading-line:nth-child(2) {
    gap: var(--heading-gap-md);
    > span { transform: translateX(-60px); }
}

.hero .heading-line:nth-child(3) {
    gap: var(--heading-gap-sm);
    > span { transform: translateX(60px); }
}

@media screen and (max-width: 1024px) {

    .hero .heading-line {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .hero .heading-1{
        text-align: left;
    }
    
    .hero .heading-line:nth-child(3) {
        flex-direction: column;
    }
    
}

.hero .button {
    z-index: 2;
}

.hero .heading-1 .syllable {
    display: inline-block;
    will-change: transform, opacity;
}

.hero .heading-1 .word {
    display: inline-block;
}

.hero .heading-1 .word--gap-lg {
    margin-left: clamp(100px, 15vw, 220px);
}

.hero .heading-1 .word--gap-md {
    margin-left: clamp(70px, 10vw, 140px);
}

.hero .heading-1 .word--gap-sm {
    margin-left: clamp(75px, 10vw, 150px);
}

.hero .heading-1 .word--gap-xs {
    margin-left: clamp(16px, 10vw, 240px)
}

/* Hero Final Styles */
.hero-final {
    background: url(/public/images/campanha-fim-hero-background.webp) center/cover no-repeat;
    position: relative;
    min-height: 600px;
    height: 100vh;
    max-height: 800px;
    overflow: hidden;
}

.hero-final .hero-final-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    overflow: visible;
}

.hero-final .heading-1 {
    text-align: left;
    max-width: 50%;
}

.hero-final .heading-line {
    justify-content: flex-start;
}

.hero-final .heading-line:first-child {
    transform: translateX(70px);
}

/* Responsive adjustments for hero-final */
@media (max-width: 1024px) {
    .hero-final .heading-1 {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
        transform: translateY(80px);
    }

    .hero-final .heading-line:first-child {
        transform: translateX(0px);
    }

    .hero-final .hero-final-image {
        width: 100%;
        height: 100%;
        bottom: 0;
        object-position: top center;
    }
    
    .hero-final .heading-line {
        justify-content: center;
        align-items: center;
    }
}

/* About Campaign Section */
.about-campaign .inner {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.grid-paragraphs {
    display: grid;
    grid-template-columns: repeat(2, 6fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .grid-paragraphs {
        grid-template-columns: 1fr;
    }
}

/* How It Works Section */
.how-it-works {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.how-it-works .image-col {
    background: url(/public/images/campanha-gif.gif) no-repeat center;
    background-size: cover;
    min-height: 600px;
}

.how-it-works .content-col {
    background-color: #122B54;
    padding: clamp(40px, 5vw, 80px) 0;
    display: flex;
    align-items: center;
}

.how-it-works .content-col .inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* max-width: 560px; */
}

.how-it-works .heading-2 {
    color: #FFF;
}

/* Write Message Section */
.write-message {
    background: #DFEFF2;
    
}

.write-message .content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 64px;
}

.message-form {
    /* max-width: 800px; */
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.form-group label {
    color: #414141;
    font-family: 'Allianz', sans-serif;
    font-weight: 600; /* Semibold */
    font-size: 18px;
    font-family: 'Allianz', sans-serif;
}

.form-group input,
.form-group textarea {
    padding: 16px;
    border-radius: 8px;
    font: inherit;
    color: #414141;
    border: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F62459;
}

.checkbox-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    gap: 16px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 16px;
    color: #414141;
    line-height: 1.4;
    font-family: 'Allianz', sans-serif;
    font-weight: 400;
}

.message-form .button {
    align-self: flex-start;
    margin-top: 16px;
}

.char-counter {
    font-size: 14px;
    color: #666666;
    text-align: right;
    margin-top: 8px;
}

.char-counter.near-limit {
    color: #F62459;
}

/* Footer */
.footer {
    background: #f5f5f5;
    color: #666666;
}

.footer .inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.social-links {
    padding: 64px 0;
    display: flex;
    justify-content: center;
    position: relative;
    background: #fff;
}

.social-links .inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 32px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.social-link img {
    width: 32px;
    height: 32px;
    transition: opacity 0.3s;
}

.social-link:hover img {
    opacity: 0.8;
}

.social-separator {
    border: none;
    height: 1px;
    background: #d9d9d9;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

.footer-links {
    background: #f5f5f5;
    padding: 64px 0;
}

.footer-links .inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h3 {
    color: #122B54;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 24px;
    font-family: 'Allianz', sans-serif;
}

.footer-col a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #122B54;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin: 0;
}

.footer-bottom {
    background: #fff;
    padding: 32px 0;
}

.footer-bottom .inner {
    display: flex;
    justify-content: space-between;
}

.bottom-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.bottom-nav a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s;
}

.bottom-nav a:hover {
    color: #122B54;
}

.phone {
    color: #666666;
}

.phone small {
    font-size: 12px;
}

/* Utilities */
/* Padding utilities */
.padding-xl {
    padding: 100px;
}

.padding-lg {
    padding: 75px;
}

.padding-md {
    padding: 50px;
}

.padding-sm {
    padding: 25px;
}

.padding-xs {
    padding: 12px;
}

.padding-x-xl {
    padding-left: 100px;
    padding-right: 100px;
}

.padding-x-lg {
    padding-left: 75px;
    padding-right: 75px;
}

.padding-x-md {
    padding-left: 50px;
    padding-right: 50px;
}

.padding-x-sm {
    padding-left: 25px;
    padding-right: 25px;
}

.padding-x-xs {
    padding-left: 12px;
    padding-right: 12px;
}

.padding-y-xl {
    padding-top: 100px;
    padding-bottom: 100px;
}

.padding-y-lg {
    padding-top: 75px;
    padding-bottom: 75px;
}

.padding-y-md {
    padding-top: 50px;
    padding-bottom: 50px;
}

.padding-y-sm {
    padding-top: 25px;
    padding-bottom: 25px;
}

.padding-y-xs {
    padding-top: 12px;
    padding-bottom: 12px;
}

@media (max-width: 768px) {

    .hero .button {
        max-width: 100%;
        width: 100%;
    }
    
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero .heading-1 {
        --offset-x: 0;
        --offset-y: 0;
        
        position: static;
        transform: none;
        font-size: 42px;
        width: 90%;
    }

    .hero .heading-line:nth-child(1),
    .hero .heading-line:nth-child(2),
    .hero .heading-line:nth-child(3) {
        gap: 16px;
        > span { transform: none; }
    }

    .hero .heading-line:nth-child(3) {
        gap: 0px;
    }

    .hero .button {
        position: static;
        transform: none;
        max-width: 380px;
        margin-top: var(--button-spacing);
        margin-left: 0;
        margin-right: auto;
    }


    .hero-image {
        position: absolute;
        bottom: 0;
        left: auto !important;
        transform: translateX(0%);
        z-index: 1;
        width: 100%;
        height: calc(100vh - 240px);
        object-fit: cover;
        object-position: 75%;
    }

    .hero .heading-1 .word--gap-lg,
    .hero .heading-1 .word--gap-md,
    .hero .heading-1 .word--gap-sm {
        margin-left: 0px;
    }

    .how-it-works {
        grid-template-columns: 1fr;
    }

    .how-it-works .image-col {
        min-height: 400px;
    }

    .message-form .button,
    .button {
        width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links .inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 32px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col ul {
        align-items: center;
    }

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

    .bottom-nav {
        flex-direction: column;
        gap: 16px;
    }

    .hero .inner {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .hero .heading-1 {
        width: 100%;
    }
    
    .hero-final .heading-1 {
        max-width: 100%;
        text-align: center;
        margin-bottom: -120px;
    }

    .hero-final-image {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        
    }
    
    .hero-final .heading-line {
        justify-content: center;
    }
}

.loading-line {
    width: 100px;
    height: 4px;
    display: inline-block;
    vertical-align: middle;
    color: #122B54;
}

#nome {
    display: inline-block;
    min-width: 100px;
}

/* Toast Message */
.toast-container {
    position: fixed;
    bottom: 32px;
    
    right: 32px;
    z-index: 9999;
    pointer-events: none;
}

.toast-message {
    background: #589C15;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.toast-message.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .toast-container {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}
