:root {
    /* Colors */
    --sepia-limiar: #F4EBE1;
    --tinta-noturna: #2C3539;
    --verde-musgo: #556B2F;
    --terracota: #A26A5A;
    --chama-suave: #E6C280;

    /* Typography */
    --font-title: 'Mrs Saint Delafield', cursive;
    --font-subtitle: 'Quicksand', sans-serif;
    --font-body: 'Merriweather', serif;
}

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

body {
    background-color: var(--sepia-limiar);
    color: var(--tinta-noturna);
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle noise effect to simulate paper texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    text-align: center;
    padding: 2rem 0;
}

.logo-img {
    max-width: 250px;
    height: auto;
    display: inline-block;
}

.hero {
    text-align: center;
    margin: 4rem 0 3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-title {
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--tinta-noturna);
}

.subtitle {
    font-family: var(--font-subtitle);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    color: var(--tinta-noturna);
    opacity: 0.9;
}

.capture-section {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.form-title {
    font-family: var(--font-subtitle);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-description {
    font-family: var(--font-subtitle);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.capture-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.form-group.hidden {
    display: none;
}

label {
    font-family: var(--font-subtitle);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tinta-noturna);
}

input, select {
    font-family: var(--font-body);
    padding: 0.8rem 1rem;
    border: 1px solid rgba(44, 53, 57, 0.2);
    border-radius: 6px;
    background-color: var(--sepia-limiar);
    color: var(--tinta-noturna);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--terracota);
    box-shadow: 0 0 0 3px rgba(162, 106, 90, 0.2);
}

.cta-button {
    font-family: var(--font-subtitle);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    background-color: var(--terracota);
    color: var(--sepia-limiar);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(162, 106, 90, 0.3);
}

.cta-button:hover {
    background-color: #8c5749; /* Slightly darker terracota */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 106, 90, 0.4);
}

/* Dynamic styling for non-fiction (Green) */
.form-theme-nonfiction .cta-button {
    background-color: var(--verde-musgo);
    box-shadow: 0 4px 14px rgba(85, 107, 47, 0.3);
}

.form-theme-nonfiction .cta-button:hover {
    background-color: #435425;
    box-shadow: 0 6px 20px rgba(85, 107, 47, 0.4);
}

.form-theme-nonfiction input:focus, 
.form-theme-nonfiction select:focus {
    border-color: var(--verde-musgo);
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.2);
}

.footer {
    text-align: center;
    padding: 2rem 0;
    font-family: var(--font-subtitle);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Banner LGPD */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--tinta-noturna);
    color: var(--sepia-limiar);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-family: var(--font-subtitle);
}

.cookie-content p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.cookie-button {
    background-color: var(--chama-suave);
    color: var(--tinta-noturna);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-subtitle);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-button:hover {
    background-color: #d1ab68;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-title {
        font-size: 4rem;
    }
    
    .capture-section {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
