@font-face {
    font-family: 'CBFHomeAway2026';
    src: url('../fontes/CBFHomeAway2026.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Papernotes';
    src: url('../fontes/Papernotes.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Papernotes';
    src: url('../fontes/Papernotes\\ Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-color: #C60B1E;
    --highlight-color: #FFC400;
    --text-color: #000000;
    --btn-bg: #FFC400;
    --btn-text: #FFFFFF;
}

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

body {
    background-color: var(--bg-color);
    font-family: 'Papernotes', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    width: 100%;
    max-width: 800px;
    padding: 2rem 1.25rem;
    text-align: center;
    position: relative;
    isolation: isolate;
}

.title {
    font-family: 'CBFHomeAway2026', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.title .highlight {
    color: var(--highlight-color);
}

.cards-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 420px;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    position: absolute;
    width: 256px;
    height: 382px;
    border-radius: 16px;
}

/* Animations */
@keyframes floatLeft {

    0%,
    100% {
        transform: translate(-100px, 0px) rotate(-8deg);
    }

    50% {
        transform: translate(-100px, -15px) rotate(-5deg);
    }
}

@keyframes floatCenter {

    0%,
    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    50% {
        transform: translate(0px, -20px) rotate(3deg);
    }
}

@keyframes floatRight {

    0%,
    100% {
        transform: translate(100px, 0px) rotate(8deg);
    }

    50% {
        transform: translate(100px, -15px) rotate(5deg);
    }
}

.card-left {
    z-index: 10;
    animation: floatLeft 6s ease-in-out infinite;
}

.card-center {
    z-index: 30;
    animation: floatCenter 6s ease-in-out infinite;
}

.card-right {
    z-index: 10;
    animation: floatRight 6s ease-in-out infinite;
}

/* For mobile responsiveness with cards */
@media (max-width: 600px) {
    .cards-container {
        height: 300px;
    }

    .card {
        width: 180px;
        height: 268px;
    }

    @keyframes floatLeft {

        0%,
        100% {
            transform: translate(-60px, 0px) rotate(-8deg);
        }

        50% {
            transform: translate(-60px, -10px) rotate(-5deg);
        }
    }

    @keyframes floatRight {

        0%,
        100% {
            transform: translate(60px, 0px) rotate(8deg);
        }

        50% {
            transform: translate(60px, -10px) rotate(5deg);
        }
    }
}

.description {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    max-width: 450px;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: normal;
    color: #FFFFFF;
}

.btn-start {
    font-family: 'CBFHomeAway2026', sans-serif;
    width: 100%;
    max-width: 450px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    padding: 1.25rem;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 2px;
}

.btn-start:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.btn-start:active {
    transform: scale(0.95);
}

.footer-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.flags {
    display: flex;
    margin-left: 10px;
    /* To adjust for negative margin on items */
}

.flag {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'CBFHomeAway2026', sans-serif;
    border: 2px solid var(--highlight-color);
    margin-left: -10px;
}

.counter {
    font-size: 0.875rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Step logic */
.step-section {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.step-section.active {
    display: flex;
}

.hidden {
    display: none !important;
}

/* Step 2 styles */
.progress-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #FFFFFF;
}

.progress-bar-bg {
    width: 100%;
    max-width: 400px;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--highlight-color);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.card-form {
    background-color: #FFFFFF;
    /* White background */
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.form-title {
    font-family: 'CBFHomeAway2026', sans-serif;
    color: var(--bg-color);
    /* Red for high contrast */
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0.7;
    margin-top: 0.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 1.2rem 1rem;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    background-color: #FFFFFF;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Papernotes', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input[type="text"]::placeholder {
    color: #9CA3AF;
    font-weight: bold;
}

.form-group input[type="text"]:focus {
    border-color: var(--bg-color);
    /* Focus in Red */
}

.form-label {
    display: block;
    font-family: 'CBFHomeAway2026', sans-serif;
    color: var(--bg-color);
    /* Red for high contrast */
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 900;
}

.upload-buttons {
    display: flex;
    gap: 1rem;
}

.btn-upload {
    flex: 1;
    background: transparent;
    border: 2px dashed #D1D5DB;
    /* Light gray border */
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-upload:hover {
    border-color: var(--bg-color);
    /* Red hover */
    background-color: rgba(198, 11, 30, 0.05);
    /* Slight red background */
}

.emoji-large {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.btn-upload-text {
    font-family: 'Papernotes', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
}

.preview-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--highlight-color);
    margin: 0 auto 0.5rem;
    overflow: hidden;
    cursor: pointer;
}

.preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-text {
    color: var(--bg-color);
    /* Red for contrast */
    font-size: 0.8rem;
    font-weight: bold;
}

.error-msg {
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.btn-next {
    margin-top: 1rem;
    width: 100%;
}

/* Loading Screen & Step 3 Styles */
.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-gif {
    width: 192px;
    height: 192px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.progress-bar-container {
    width: 100%;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--bg-color);
    margin-bottom: 0.5rem;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.flex-1 { flex: 1; }
.flex-1-5 { flex: 1.5; }

.form-select, .form-input {
    width: 100%;
    padding: 1.2rem 1rem;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    background-color: #FFFFFF;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Papernotes', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C60B1E'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.form-select:focus, .form-input:focus {
    border-color: var(--bg-color);
}

.form-input::placeholder {
    color: #9CA3AF;
    font-weight: bold;
}

.text-sm {
    font-size: 0.9rem !important;
}

.row-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.row-actions .btn-next {
    flex: 1;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-top: 0;
}

.btn-outline {
    flex: 1;
    font-family: 'CBFHomeAway2026', sans-serif;
    background-color: transparent;
    color: var(--bg-color);
    border: 2px solid var(--bg-color);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 900;
    padding: 1.25rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 2px;
}

.btn-outline:hover {
    background-color: var(--bg-color);
    color: #FFFFFF;
}

/* Form hint */
.form-hint {
    font-family: 'Papernotes', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
    margin-top: -0.8rem;
    margin-bottom: 1.2rem;
}

/* Result price GREEN */
.result-price {
    font-family: 'CBFHomeAway2026', sans-serif;
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    font-weight: 900;
    color: #00C853;
    margin-top: 0.5rem;
}

/* Club Grid */
.club-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.club-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    background: #FFFFFF;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Papernotes', sans-serif;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}

.club-btn:hover {
    border-color: var(--bg-color);
    background-color: rgba(198,11,30,0.04);
}

.club-btn.selected,
.club-btn.active {
    border-color: var(--bg-color);
    background-color: rgba(198,11,30,0.08);
    color: var(--bg-color);
}

/* Result Screen */
.result-title-area {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-gol {
    font-family: 'CBFHomeAway2026', sans-serif;
    font-size: clamp(3.5rem, 12vw, 5rem);
    font-weight: 900;
    color: var(--highlight-color);
    letter-spacing: 4px;
    line-height: 1;
}

.result-subtitle {
    font-family: 'CBFHomeAway2026', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-top: 0.5rem;
}

.result-sub2 {
    font-size: 0.95rem;
    color: #FFFFFF;
    opacity: 0.9;
    margin-top: 0.3rem;
}

.result-price {
    font-family: 'CBFHomeAway2026', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #00C853;
    margin-top: 0.5rem;
}

/* Red background for result step */
#step-result {
    background-color: var(--bg-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.btn-receive-final {
    background-color: var(--btn-bg) !important;
    color: var(--text-color) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    max-width: 400px;
    width: 100%;
    font-family: 'CBFHomeAway2026', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 900;
    padding: 1.25rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-receive-final:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Watermarked preview wrapper */
.result-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none; /* blocks drag */
}

/* Allow button pointer-events */
.result-card-wrapper * {
    pointer-events: none;
}

.result-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Watermark overlay — image based */
.watermark-overlay-img {
    position: absolute;
    inset: 0;
    background-image: url('images/marcadelagua.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.55;
    pointer-events: none;
    z-index: 2;
}

/* Physical anti-copy overlay */
.anti-copy-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: auto;
}

/* Efeito de brilho passando continuamente */
@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

.shine-effect {
  position: relative;
  overflow: hidden;
  display: inline-block; /* ensures after pseudo-element aligns properly */
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 3s ease-in-out infinite;
}


/* ── Botão de erro / recuperação WhatsApp ───────────────────────────────── */
.btn-whatsapp-error {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    font-family: 'CBFHomeAway2026', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    justify-content: center;
}

.btn-whatsapp-error:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(37,211,102,0.4);
}

/* Background patterns for Mobile screen (following implementacaodebg.md) */
.bg-topo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: -1;
}

.bg-baixo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: -1;
}

@media (min-width: 768px) {
    .bg-topo,
    .bg-baixo {
        display: none !important;
    }
}