@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Montserrat:wght@400;500;700&family=Special+Elite&display=swap');

:root {
    --dino-green: #2D5A27;
    --leaf-green: #4CAF50;
    --earth-brown: #5D4037;
    --safari-tan: #F4E7D3;
    --adventure-orange: #FF8F00;
    --danger-red: #D32F2F;
    --text-dark: #2c1e1a;
    --paper-bg: #fdf6e9;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #8c8b86;
    background-image: url('bg.png');
    background-repeat: repeat;
    background-size: 250px;
    background-blend-mode: overlay;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Paper / Map Effect */
.adventure-card {
    background: var(--paper-bg);
    background-image: radial-gradient(#d4c4a8 1px, transparent 1px);
    background-size: 20px 20px;
    border: 15px solid transparent;
    border-image: url('https://www.transparenttextures.com/patterns/wood-pattern.png') 30 round;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 80px 40px 40px 40px;
    /* Aumentado o padding superior */
    position: relative;
    margin-bottom: 40px;
}

.adventure-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--earth-brown);
    pointer-events: none;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.header-img {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto -90px auto;
    /* Margem negativa para sobrepor a caixa abaixo */
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
}

.header-img:hover {
    transform: scale(1.02);
}

h1,
h2,
h3 {
    font-family: 'Luckiest Guy', cursive;
    color: var(--dino-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.story-text {
    font-family: 'Special Elite', cursive;
    font-size: 1.1rem;
    color: var(--earth-brown);
    margin-bottom: 30px;
    text-align: justify;
    line-height: 1.8;
    border-left: 4px solid var(--adventure-orange);
    padding-left: 20px;
}

.hidden {
    display: none !important;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    border-bottom: 2px dashed var(--earth-brown);
    padding-bottom: 10px;
}

.section-title i {
    color: var(--adventure-orange);
}

.section-title h2 {
    margin-bottom: 0;
}

.logistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.info-box {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #d4c4a8;
}

.info-box h4 {
    font-family: 'Luckiest Guy', cursive;
    color: var(--earth-brown);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline {
    margin-top: 30px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 25px;
}

.time {
    font-weight: bold;
    color: var(--adventure-orange);
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 143, 0, 0.3);
    padding-bottom: 2px;
    display: inline-block;
    width: auto;
}

.action {
    color: var(--text-dark);
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.sticky-btns {
    position: relative;
    margin-top: 30px;
    background: rgba(253, 246, 233, 0.5);
    padding: 20px;
    border-radius: 15px;
    z-index: 100;
}

.btn {
    font-family: 'Luckiest Guy', cursive;
    padding: 20px 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    box-shadow: 0 8px 0px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--leaf-green);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 0px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--danger-red);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 0px rgba(0, 0, 0, 0.2);
}

.frame-img {
    width: 100%;
    height: auto;
    margin-top: 30px;
}

/* Forms */
.form-card {
    max-width: 500px;
    margin: 0 auto;
}

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

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.error-msg {
    color: var(--danger-red);
    background: rgba(211, 47, 47, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    border: 1px solid rgba(211, 47, 47, 0.2);
    display: block;
    text-align: left;
}

.summary-card {
    background: #fdfaf5;
    padding: 15px 10px;
    border-radius: 12px;
    border: 1px solid #e0d5c0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.summary-card strong {
    display: block;
    font-size: 1.5rem;
    color: var(--earth-brown);
}

.summary-card small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8d6e63;
}

/* Guest List Mobile Adjustment */
@media (max-width: 480px) {
    .guest-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .guest-row .btn-wa {
        width: 100%;
        text-align: center;
    }
}

textarea {
    height: 150px;
    resize: vertical;
}

.companion-row {
    background: #fdfaf3;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #d4c4a8;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.companion-row input,
.companion-row select {
    padding: 10px;
    border-width: 1px;
    font-size: 0.9rem;
}

.btn-remove {
    background: var(--danger-red);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    min-width: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 3px 0px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.btn-remove:hover {
    transform: scale(1.1);
}

.btn-add {
    background: var(--leaf-green);
    color: white;
    font-family: 'Luckiest Guy', cursive;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.2);
}

/* Audio button polish */
.audio-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--adventure-orange);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Modal Overlay */
.full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Permite scroll se for grande */
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    margin: auto;
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

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

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--leaf-green);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* Full Screen Roteiro Overlay */
.full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.roteiro-container {
    max-width: 95%;
    max-height: 85vh;
    overflow: auto;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.roteiro-container img {
    display: block;
    width: 100%;
    height: auto;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--danger-red);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 3001;
}

@media (max-width: 600px) {
    .container {
        padding: 0;
    }

    .adventure-card {
        padding: 60px 15px 30px 15px;
        border-width: 8px;
    }

    .logistics-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .modal-content {
        max-width: 90%;
        margin: 20px;
        padding: 25px;
    }

    .audio-control {
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
    }

    .sticky-btns {
        position: relative !important;
        /* Desabilita o sticky no mobile */
        opacity: 1 !important;
        pointer-events: auto !important;
        bottom: auto;
        border-radius: 12px;
        width: 90%;
        margin: 30px auto;
        box-shadow: none;
        background: var(--paper-bg);
    }
}