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

:root {
    --color-rose: #f4e6d7;
    --color-beige: #faf8f5;
    --color-cream: #fffefb;
    --color-gold: #d4af8e;
    --color-text: #5a4a3a;
    --color-text-light: #8b7d6b;
    --color-border: rgba(212, 175, 142, 0.2);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* Garantir fundo branco quando formulário estiver visível */
html.form-visible,
html.form-visible body {
    background: #ffffff !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-cream);
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden; /* Bloqueado inicialmente, desbloqueado após animação */
}

/* Permitir pull-to-refresh no mobile */
@media (max-width: 768px) {
    html {
        overscroll-behavior-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Permitir que o html possa fazer scroll para pull-to-refresh */
        height: 100%;
    }
    
    body {
        overflow-y: auto !important;
        overscroll-behavior-y: auto;
        /* Garantir que o body pode fazer scroll para permitir pull-to-refresh */
        min-height: 101vh;
        -webkit-overflow-scrolling: touch;
        /* Permitir pull-to-refresh mesmo com overflow */
        position: relative;
    }
    
    /* Garantir que hero-scene não bloqueie pull-to-refresh */
    .hero-scene {
        position: absolute;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Permitir que o conteúdo possa fazer scroll para além do viewport */
        min-height: 101vh;
    }
}

/* Menu Hambúrguer dentro da secção */
.menu-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.menu-wrapper-night {
    top: 20px;
    left: 20px;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: rgba(255, 254, 251, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px 6px;
    z-index: 1001;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.burger-menu:hover {
    background: rgba(255, 254, 251, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.burger-menu-night {
    background: rgba(26, 26, 46, 0.9);
    border-color: rgba(212, 165, 116, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.burger-menu-night:hover {
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.burger-menu-night span {
    background: #d4a574;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(255, 254, 251, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    overflow: hidden;
}

.menu-dropdown-night {
    background: rgba(26, 26, 46, 0.98);
    border-color: rgba(212, 165, 116, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.menu-item {
    border-bottom: 1px solid var(--color-border);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item a:hover,
.menu-item.active a {
    color: var(--color-gold);
    background: rgba(212, 175, 142, 0.1);
}

.menu-dropdown-night .menu-item a {
    color: #e8e8e8;
}

.menu-dropdown-night .menu-item a:hover,
.menu-dropdown-night .menu-item.active a {
    color: #d4a574;
    background: rgba(212, 165, 116, 0.15);
}

.layout-container {
    width: 100%;
    position: relative;
    overflow: visible;
}

/* Fluxo Dinâmico - Fullscreen Sections */
.flow-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
}

.flow-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    overflow-x: visible;
}

.flow-step.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.flow-step:not(.active) {
    pointer-events: none;
}

.flow-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    gap: 40px;
}

/* Indicador de Progresso */
.progress-indicator {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 175, 142, 0.3);
    border: 2px solid var(--color-gold);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--color-gold);
    transform: scale(1.3);
}

/* Secção 1: O Quê */
.flow-what {
    background: linear-gradient(rgba(244, 230, 215, 0.3), rgba(244, 230, 215, 0.3)),
                url('images/praia1.jpg') center/cover no-repeat;
    padding: 60px 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.flow-what::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 254, 251, 0.4) 0%, rgba(255, 254, 251, 0.2) 70%, transparent 100%);
    border-radius: 12px;
    pointer-events: none;
}

/* Imagens Flutuantes */
.floating-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-image {
    position: absolute;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 254, 251, 0.8);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 254, 251, 0.5);
    opacity: 0;
    animation: rotateInFloat 3s ease-out forwards;
}

.floating-image-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0.2s;
}

.floating-image-2 {
    top: 15%;
    right: 15%;
    animation-delay: 0.4s;
}

.floating-image-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 0.6s;
}

.floating-image-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 0.8s;
}

.floating-image-5 {
    top: 50%;
    left: 5%;
    animation-delay: 1s;
}

.floating-image-6 {
    top: 45%;
    right: 5%;
    animation-delay: 1.2s;
}

@keyframes rotateInFloat {
    0% {
        opacity: 0;
        transform: rotate(-180deg) translateY(50px) scale(0.5);
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.85;
        transform: rotate(0deg) translateY(0) scale(1);
        animation: float 4s ease-in-out infinite;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

.flow-text {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    margin-top: -80px;
}

.flow-text h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 4em;
    color: var(--color-text);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 
        2px 2px 8px rgba(255, 254, 251, 0.9),
        0 0 20px rgba(255, 254, 251, 0.6),
        -1px -1px 4px rgba(255, 254, 251, 0.8);
    position: relative;
    padding: 20px 0;
}

.flow-text h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    font-size: 3em;
    color: var(--color-text);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.flow-tagline {
    font-size: 1.8em;
    color: var(--color-gold);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 
        3px 3px 8px rgba(0, 0, 0, 0.3),
        2px 2px 6px rgba(255, 254, 251, 0.95),
        0 0 20px rgba(255, 254, 251, 0.8),
        -2px -2px 4px rgba(255, 254, 251, 0.9);
    position: relative;
    background: rgba(255, 254, 251, 0.3);
    padding: 15px 25px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 142, 0.3);
    display: inline-block;
}

.flow-description {
    font-size: 1.2em;
    color: var(--color-text);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.5px;
    text-shadow: 
        1px 1px 4px rgba(255, 254, 251, 0.9),
        0 0 10px rgba(255, 254, 251, 0.6);
    background: rgba(255, 254, 251, 0.4);
    padding: 20px 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 254, 251, 0.5);
}

.flow-date {
    font-size: 2.5em;
    color: var(--color-text);
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.flow-time {
    font-size: 3em;
    color: var(--color-gold);
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.flow-location {
    font-size: 2.5em;
    color: var(--color-text);
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Secção 3: Onde - Com Imagem */
.flow-where {
    background: var(--color-cream);
}

.flow-image-container {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.flow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Secção 4: Como */
.flow-how {
    background: var(--color-beige);
    padding: 60px 40px;
    border-radius: 12px;
}

.flow-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flow-details p {
    font-size: 1.3em;
    color: var(--color-text);
    font-weight: 300;
    letter-spacing: 0.5px;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.flow-details p:last-child {
    border-bottom: none;
}

/* Secção 5: Formulário */
.flow-form {
    background: var(--color-cream);
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
}

/* Botões de Navegação */
.flow-btn {
    padding: 14px 35px;
    background: var(--color-gold);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    min-width: 150px;
    position: relative;
    z-index: 2;
}

.flow-btn-primary {
    font-weight: 700;
    font-size: 1.2em;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #b59a7a 100%);
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(212, 175, 142, 0.5),
        0 0 30px rgba(212, 175, 142, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.flow-btn-primary:hover {
    background: linear-gradient(135deg, #c29d7d 0%, var(--color-gold) 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 142, 0.6),
        0 0 40px rgba(212, 175, 142, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.flow-btn:hover {
    background: #c29d7d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 142, 0.3);
}

.flow-btn-prev {
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

.flow-btn-prev:hover {
    background: var(--color-rose);
    border-color: var(--color-gold);
    color: var(--color-text);
}

.flow-btn-submit {
    background: var(--color-gold);
    color: #ffffff;
}

.flow-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Formulário */
.registration-form {
    background: var(--color-beige);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-sizing: border-box;
    width: 100%;
}

.guest-entry {
    background: var(--color-cream);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

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

.form-group label {
    color: var(--color-text-light);
    font-weight: 300;
    margin-bottom: 8px;
    font-size: 0.85em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    background: #ffffff;
    color: var(--color-text);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: #ffffff;
}

.add-guest-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 300;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.add-guest-btn:hover {
    background: var(--color-rose);
    border-color: var(--color-gold);
}

.success-message {
    background: var(--color-beige);
    color: var(--color-text);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    border: 1px solid var(--color-border);
    font-size: 1em;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.remove-btn {
    padding: 10px 20px;
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    box-sizing: border-box;
    white-space: nowrap;
}

.remove-btn:hover {
    background: var(--color-rose);
    border-color: var(--color-gold);
}

/* Responsive */
@media (max-width: 968px) {
    .progress-indicator {
        right: 15px;
        gap: 10px;
    }
    
    .progress-dot {
        width: 8px;
        height: 8px;
    }
    
    .flow-text h1 {
        font-size: 3em;
    }
    
    .flow-text h2 {
        font-size: 2.5em;
    }
    
    .flow-tagline {
        font-size: 1.5em;
    }
    
    .flow-date,
    .flow-location {
        font-size: 2em;
    }
    
    .flow-time {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .menu-wrapper {
        top: 15px;
        left: 15px;
    }
    
    .burger-menu {
        width: 32px;
        height: 28px;
        padding: 7px 5px;
    }
    
    .flow-step {
        height: 100vh;
        padding: 20px 15px;
    }
    
    .progress-indicator {
        display: none;
    }
    
    .flow-content {
        gap: 30px;
    }
    
    .flow-text {
        margin-top: -40px;
    }
    
    .flow-text h1 {
        font-size: 2.5em;
    }
    
    .flow-text h2 {
        font-size: 2em;
    }
    
    .flow-tagline {
        font-size: 1.2em;
        letter-spacing: 2px;
    }
    
    .flow-description {
        font-size: 1em;
    }
    
    .flow-date,
    .flow-location {
        font-size: 1.8em;
    }
    
    .flow-time {
        font-size: 2em;
    }
    
    .flow-image-container {
        height: 300px;
    }
    
    .flow-how,
    .flow-what,
    .flow-form {
        padding: 30px 20px;
    }
    
    .floating-image {
        width: 80px;
        height: 80px;
    }
    
    .flow-btn-primary {
        font-size: 1em;
        padding: 16px 35px;
    }
    
    .flow-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .flow-btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .registration-form {
        padding: 25px 20px;
    }
    
    .menu-dropdown {
        left: auto;
        right: 0;
        min-width: 260px;
    }
}

@media (max-width: 480px) {
    .flow-text {
        margin-top: -20px;
    }
    
    .flow-text h1 {
        font-size: 2em;
    }
    
    .flow-text h2 {
        font-size: 1.8em;
    }
    
    .flow-tagline {
        font-size: 1em;
        letter-spacing: 1px;
    }
    
    .flow-date,
    .flow-location {
        font-size: 1.5em;
    }
    
    .flow-time {
        font-size: 1.8em;
    }
    
    .flow-image-container {
        height: 250px;
    }
    
    .flow-details p {
        font-size: 1.1em;
    }
    
    .floating-image {
        width: 60px;
        height: 60px;
    }
    
    .flow-btn-primary {
        font-size: 0.95em;
        padding: 14px 30px;
        letter-spacing: 1px;
    }
}

/* ============================================
   DRINKS BEACH NIGHT THEME
   ============================================ */

.flow-night {
    background: #1a1a2e;
    position: relative;
    overflow: visible;
}

.flow-night .flow-content {
    background: transparent;
}

/* Tiles Background - Layout Night */
.tiles-background {
    position: absolute;
    top: -50vh;
    left: -50vw;
    width: 200vw;
    height: 200vh;
    z-index: 0;
    overflow: visible;
    background: #1a1a2e;
    pointer-events: none;
}

.photo-tile {
    position: absolute;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 1s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(212, 165, 116, 0.2);
    border: 2px solid rgba(212, 165, 116, 0.3);
    pointer-events: none;
    z-index: 1;
}

.photo-tile-appear {
    opacity: 0.6;
}

.tile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cartão Central do Fluxo */
.flow-card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.flow-card-container .flow-step {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.flow-card-container .flow-step.active {
    opacity: 1;
}

.flow-card {
    max-width: 800px;
    width: 100%;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 60px 50px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(212, 165, 116, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.flow-card-night {
    background: rgba(26, 26, 46, 0.9);
}

.flow-card .flow-text {
    margin-bottom: 0;
    margin-top: 0;
}

.flow-card .flow-nav {
    margin-top: 20px;
}

.flow-card .flow-image-container {
    margin: 20px 0;
}

.flow-card .flow-details {
    margin-top: 30px;
}

.flow-card .registration-form {
    width: 100%;
    margin-top: 20px;
}

/* Progress Indicator Night */
.progress-night {
    right: 30px;
}

.progress-dot-night {
    background: rgba(212, 165, 116, 0.2);
    border-color: #d4a574;
    box-shadow: 0 0 8px rgba(212, 165, 116, 0.5);
}

.progress-dot-night.active {
    background: #d4a574;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.8);
}

/* Secção 1: O Quê - Night */
.flow-what-night {
    background: transparent;
}

.flow-text-night h1,
.flow-text-night h2 {
    color: #f4f4f4;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(212, 165, 116, 0.4),
        -1px -1px 4px rgba(0, 0, 0, 0.6);
}

.flow-text-night h1 {
    text-shadow: 
        3px 3px 10px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(212, 165, 116, 0.5),
        -2px -2px 6px rgba(0, 0, 0, 0.7);
}

.flow-date-night,
.flow-location-night {
    color: #d4a574;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(212, 165, 116, 0.6);
}

.flow-time-night {
    color: #ff8787;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 135, 135, 0.6);
}

.flow-description-night {
    color: #e8e8e8;
    text-shadow: 
        1px 1px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(212, 165, 116, 0.3);
    background: rgba(45, 85, 103, 0.4);
    border-color: rgba(212, 165, 116, 0.3);
}

/* Imagens Flutuantes Night */
.floating-image-night {
    border-color: rgba(212, 165, 116, 0.6);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(212, 165, 116, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Secção 2: Quando - Night */
.flow-when-night {
    background: transparent;
}

/* Secção 3: Onde - Night */
.flow-where-night {
    background: transparent;
}

.flow-image-container-night {
    border-color: rgba(212, 165, 116, 0.4);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(212, 165, 116, 0.3);
}

.flow-image-night {
    filter: brightness(0.7) contrast(1.1) saturate(1.2);
}

/* Secção 4: Como - Night */
.flow-how-night {
    background: transparent;
}

.flow-details-night p {
    color: #e8e8e8;
    border-color: rgba(212, 165, 116, 0.3);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Secção 5: Formulário - Night */
.flow-form-night {
    background: transparent;
}

.registration-form-night {
    background: rgba(45, 85, 103, 0.3);
    border-color: rgba(212, 165, 116, 0.4);
    backdrop-filter: blur(10px);
}

.guest-entry-night {
    background: rgba(26, 61, 79, 0.5);
    border-color: rgba(212, 165, 116, 0.3);
}

.guest-entry-night .form-group label {
    color: #d4a574;
}

.guest-entry-night .form-group input {
    background: rgba(26, 26, 46, 0.7);
    border-color: rgba(212, 165, 116, 0.4);
    color: #f4f4f4;
}

.guest-entry-night .form-group input:focus {
    border-color: #d4a574;
    background: rgba(26, 26, 46, 0.9);
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

.add-guest-btn-night {
    background: rgba(212, 165, 116, 0.2);
    color: #d4a574;
    border-color: rgba(212, 165, 116, 0.4);
}

.add-guest-btn-night:hover {
    background: rgba(212, 165, 116, 0.3);
    border-color: #d4a574;
    color: #f4f4f4;
}

.success-message-night {
    background: rgba(45, 85, 103, 0.5);
    color: #e8e8e8;
    border-color: rgba(212, 165, 116, 0.4);
}

/* Botões Night */
.flow-btn-night {
    background: linear-gradient(135deg, #d4a574 0%, #b8936d 100%);
    color: #1a1a2e;
    border: 2px solid rgba(212, 165, 116, 0.5);
    box-shadow: 
        0 4px 20px rgba(212, 165, 116, 0.4),
        0 0 30px rgba(212, 165, 116, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: none;
    font-weight: 600;
}

.flow-btn-night:hover {
    background: linear-gradient(135deg, #e5b584 0%, #d4a574 100%);
    box-shadow: 
        0 6px 25px rgba(212, 165, 116, 0.5),
        0 0 40px rgba(212, 165, 116, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.flow-btn-prev.flow-btn-night {
    background: transparent;
    color: #d4a574;
    border-color: rgba(212, 165, 116, 0.5);
}

.flow-btn-prev.flow-btn-night:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: #d4a574;
    color: #f4f4f4;
}

.flow-btn-primary.flow-btn-night {
    background: linear-gradient(135deg, #ff8787 0%, #ff6b6b 100%);
    color: #ffffff;
    border-color: rgba(255, 135, 135, 0.6);
    box-shadow: 
        0 4px 20px rgba(255, 135, 135, 0.5),
        0 0 30px rgba(255, 135, 135, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.flow-btn-primary.flow-btn-night:hover {
    background: linear-gradient(135deg, #ff9a9a 0%, #ff8787 100%);
    box-shadow: 
        0 6px 25px rgba(255, 135, 135, 0.6),
        0 0 40px rgba(255, 135, 135, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.remove-btn.flow-btn-night {
    background: rgba(212, 165, 116, 0.2);
    color: #d4a574;
    border-color: rgba(212, 165, 116, 0.4);
}

.remove-btn.flow-btn-night:hover {
    background: rgba(212, 165, 116, 0.3);
    border-color: #d4a574;
    color: #f4f4f4;
}

/* Responsive Night Theme */
@media (max-width: 768px) {
    .progress-night {
        right: 15px;
    }
    
    .flow-card {
        padding: 40px 30px;
        max-width: 95%;
    }
    
    .photo-tile {
        opacity: 0.4;
    }
}

@media (max-width: 480px) {
    .flow-card {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .photo-tile {
        opacity: 0.3;
    }
}

/* ============================================
   LAYOUT EDITORIAL MINIMAL - PRETO E BRANCO
   ============================================ */

/* Menu para layout editorial */
.menu-wrapper-editorial {
    top: 20px;
    left: 20px;
}

.burger-menu-editorial {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #D8D8D8;
}

.burger-menu-editorial span {
    background: #111;
}

.menu-dropdown-editorial {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #D8D8D8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.menu-dropdown-editorial .menu-item a {
    color: #111;
}

.menu-dropdown-editorial .menu-item a:hover {
    color: #555;
}

/* Container principal */
.editorial-container {
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    font-family: 'Playfair Display', 'Bodoni', 'Didot', serif;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
}

.editorial-invite {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: none;
}

/* Hero Section - Canvas vazio */
.editorial-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Editor Mode - Neutraliza animações durante edição */
.editor-mode .editorial-container *,
.editor-mode .editorial-container *::before,
.editor-mode .editorial-container *::after {
    animation: none !important;
    transition: none !important;
}

/* Neutraliza motion-path nos elementos que usam offset-path */
.editor-mode .editorial-number-six,
.editor-mode .editorial-photo-section {
    offset-path: none !important;
    offset-distance: 0% !important;
    offset-rotate: 0deg !important;
}

/* Container da direita - LOOK WHO'S + Foto - Removido, elementos soltos */

.editorial-number-six {
    font-size: clamp(320px, 64vw, 560px);
    font-weight: 400;
    line-height: 0.8;
    color: #111;
    letter-spacing: 0.08em;
    font-family: 'Playfair Display', serif;
    position: absolute;
    /* Posicionamento livre - ajustar via drag and drop */
    left: 10%;
    top: 20%;
    border: 2px solid #00ff00; /* DEBUG: Verde */
    display: inline-block;
    transform-origin: center center;
    user-select: none;
    -webkit-user-select: none;
    
    /* Motion path - curva suave da esquerda/baixo até posição final */
    offset-path: path("M -760 1200 C -260 40, -80 -10, 0 0");
    offset-distance: 0%;
    offset-rotate: 0deg;
    
    /* Estado inicial */
    opacity: 0;
    transform: rotate(-50deg) scale(0);
    will-change: transform, opacity, offset-distance;
}

/* Photo Section - Elemento solto */
.editorial-photo-section {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Posicionamento livre - ajustar via drag and drop */
    right: 20%;
    bottom: 15%;
    border: 2px solid #ff00ff; /* DEBUG: Magenta */
    user-select: none;
    -webkit-user-select: none;
    
    /* Motion path - curva suave da direita/baixo até posição final */
    offset-path: path("M 760 1200 C 260 40, 80 -10, 0 0");
    offset-distance: 0%;
    offset-rotate: 0deg;
    
    /* Estado inicial */
    opacity: 0;
    transform: scale(0);
    will-change: transform, opacity, offset-distance;
}

.editorial-photo-section .editorial-photo-container {
    width: clamp(224px, 35.2vw, 288px);
    height: clamp(280px, 44vw, 360px);
    overflow: hidden;
    clip-path: ellipse(50% 50%);
    -webkit-clip-path: ellipse(50% 50%);
    filter: grayscale(100%);
    position: relative;
}

.editorial-photo-section .editorial-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.editorial-look {
    position: absolute;
    text-align: center;
    /* Posicionamento livre - ajustar via drag and drop */
    right: 15%;
    top: 15%;
    border: 2px solid #0000ff; /* DEBUG: Azul */
    z-index: 2;
    user-select: none;
    -webkit-user-select: none;
}

.editorial-look-line {
    font-size: clamp(14px, 2.5vw, 18px);
    color: #111;
    letter-spacing: 0.18em;
    line-height: 1.4;
    font-weight: 400;
    text-transform: uppercase;
}


/* Title Section */
.editorial-title-section {
    text-align: center;
    margin: 30px 0 25px;
    grid-column: 1 / -1;
    border: 2px solid #ffff00; /* DEBUG: Amarelo */
    position: relative;
}

.editorial-headline {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 400;
    color: #111;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin-bottom: 16px;
    text-transform: uppercase;
    position: relative;
}

.editorial-subheadline {
    font-size: clamp(12px, 2vw, 14px);
    color: #555;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 300;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Divider */
.editorial-divider {
    width: 100%;
    height: 1px;
    background: #D8D8D8;
    margin: 30px 0;
    border: 2px solid #00ffff; /* DEBUG: Ciano */
}

/* Details Grid */
.editorial-details {
    margin: 30px 0;
    border: 2px solid #ff8800; /* DEBUG: Laranja */
    position: relative;
}

.editorial-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid #D8D8D8;
    border-bottom: 1px solid #D8D8D8;
}

.editorial-detail-item {
    padding: 16px 20px;
    border-right: 1px solid #D8D8D8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid #8800ff; /* DEBUG: Roxo */
    position: relative;
}

.editorial-detail-item:last-child {
    border-right: none;
}

.editorial-detail-label {
    font-size: 9px;
    color: #555;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 300;
    line-height: 1.2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.editorial-detail-value {
    font-size: clamp(20px, 3.5vw, 28px);
    color: #111;
    letter-spacing: 0.08em;
    font-weight: 400;
    line-height: 1.1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
}

.editorial-detail-time {
    font-size: clamp(28px, 4.5vw, 42px);
    color: #111;
    letter-spacing: 0.08em;
    font-weight: 400;
    text-align: right;
    line-height: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
}

/* Footer */
.editorial-footer {
    margin-top: 30px;
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid #D8D8D8;
    align-items: start;
    border: 2px solid #0088ff; /* DEBUG: Azul claro */
}

.editorial-address {
    font-size: 10px;
    color: #555;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.4;
    font-weight: 300;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 2px solid #ff0088; /* DEBUG: Rosa */
}

.editorial-rsvp {
    text-align: right;
    border: 2px solid #88ff00; /* DEBUG: Verde claro */
}

.editorial-rsvp-label {
    font-size: 9px;
    color: #555;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 300;
    line-height: 1.2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.editorial-rsvp-contact {
    font-size: 10px;
    color: #111;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   ANIMAÇÕES - SLIDE IN HORIZONTAL + OPACITY
   ============================================ */

/* ============================================
   ANIMAÇÕES LEQUE RAINBOW
   ============================================ */

/* Estado inicial - elementos fora do ecrã */
.editorial-slide-left,
.editorial-slide-right {
    opacity: 0;
}

/* Número 6 - animação rainbow com motion-path */
.editorial-container.is-ready .editorial-number-six {
    animation: sixRainbow 2200ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sixRainbow {
    0% {
        opacity: 0;
        offset-distance: 0%;
        transform: rotate(-50deg) scale(0);
    }
    100% {
        opacity: 1;
        offset-distance: 120%;
        transform: rotate(-20deg) scale(1);
    }
}

/* Imagem - animação rainbow com motion-path */
.editorial-container.is-ready .editorial-photo-section {
    animation: photoRainbow 900ms cubic-bezier(0.22, 1, 0.36, 1) 140ms forwards;
}

@keyframes photoRainbow {
    0% {
        opacity: 0;
        offset-distance: 0%;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        offset-distance: 100%;
        transform: scale(1);
    }
}

/* LOOK - vem da esquerda */
.editorial-look-line:first-child {
    opacity: 0;
}

.editorial-container.is-ready .editorial-look-line:first-child {
    animation: lookSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes lookSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* WHO'S - vem da direita */
.editorial-look-line:last-child {
    opacity: 0;
}

.editorial-container.is-ready .editorial-look-line:last-child {
    animation: whosSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes whosSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estado final - quando container recebe classe is-ready */
.editorial-container.is-ready .editorial-slide-left {
    opacity: 1;
}

.editorial-container.is-ready .editorial-slide-right {
    opacity: 1;
}

/* Outros elementos mantêm animações simples com delay */
.editorial-container.is-ready .editorial-headline {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 0.6s,
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}

.editorial-container.is-ready .editorial-subheadline {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 0.7s,
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 0.7s;
}

.editorial-container.is-ready .editorial-divider {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 0.8s,
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 0.8s;
}

.editorial-container.is-ready .editorial-detail-item:nth-child(1) {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 0.9s,
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 0.9s;
}

.editorial-container.is-ready .editorial-detail-item:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 1s,
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 1s;
}

.editorial-container.is-ready .editorial-address {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 1.1s,
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 1.1s;
}

.editorial-container.is-ready .editorial-rsvp {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 1.2s,
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 1.2s;
}

/* ============================================
   RESPONSIVIDADE - MOBILE FIRST
   ============================================ */

/* Mobile (até 640px) - já aplicado acima */
@media (max-width: 640px) {
    .editorial-invite {
        padding: 20px;
    }
    
    .editorial-hero {
        gap: 16px;
    }
    
    .editorial-number-six {
        font-size: 140px;
    }
    
    .editorial-photo-section {
        margin: -30px 0 0;
    }
    
    .editorial-photo-section .editorial-photo-container {
        width: 192px;
        height: 240px;
    }
    
    .editorial-look {
        padding-top: 8px;
    }
    
    .editorial-slide-left {
        transform: translateX(-24px);
    }
    
    .editorial-slide-right {
        transform: translateX(24px);
    }
    
    .editorial-detail-item {
        padding: 14px 16px;
    }
    
    .editorial-footer {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .editorial-rsvp {
        text-align: left;
    }
}

/* Tablet (641px - 1023px) */
@media (min-width: 641px) and (max-width: 1023px) {
    .editorial-invite {
        max-width: 580px;
        padding: 32px 24px;
    }
    
    .editorial-hero {
        gap: 18px;
    }
    
    .editorial-photo-section {
        margin: -35px 0 0;
    }
    
    .editorial-photo-section .editorial-photo-container {
        width: 256px;
        height: 320px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .editorial-invite {
        max-width: 620px;
        padding: 60px 40px;
    }
    
    .editorial-hero {
        gap: 20px;
    }
    
    .editorial-photo-section {
        margin: -40px 0 0;
    }
    
    .editorial-photo-section .editorial-photo-container {
        width: 288px;
        height: 360px;
    }
    
    .editorial-look {
        padding-top: 12px;
    }
    
    .editorial-hero {
        margin-bottom: 60px;
    }
    
    .editorial-title-section {
        margin: 60px 0 50px;
    }
    
    .editorial-details {
        margin: 50px 0;
    }
    
    .editorial-footer {
        margin-top: 60px;
        padding-top: 40px;
    }
}

/* ============================================
   EDITOR VISUAL - HANDLES E CONTROLES
   ============================================ */

/* Elementos editáveis - Geometria via CSS vars */
.editable-element {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate3d(var(--x, 0px), var(--y, 0px), 0)
               rotate(var(--r, 0deg))
               scale(var(--s, 1));
    transform-origin: center;
    transition: opacity 0.2s;
}

/* Garantir que elementos de texto podem ser posicionados */
.editorial-headline,
.editorial-subheadline,
.editorial-detail-item,
.editorial-detail-label,
.editorial-detail-value,
.editorial-detail-time,
.editorial-address,
.editorial-rsvp,
.editorial-rsvp-label,
.editorial-rsvp-contact {
    position: relative;
}

.editable-element.selected {
    outline: 2px dashed #4a90e2;
    outline-offset: 4px;
}

/* Overlay para handles (nunca no DOM do elemento) */
.editor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.editor-overlay .handle {
    pointer-events: all;
}

.handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4a90e2;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rotate-handle {
    background: #e24a4a;
    cursor: crosshair;
}

.rotate-handle.top-left {
    top: -6px;
    left: -6px;
}

.resize-handle.top-right {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.resize-handle.bottom-left {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.resize-handle.bottom-right {
    bottom: -6px;
    right: -6px;
    cursor: nw-resize;
}

/* Painel de Controlo */
.control-panel {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.control-panel.visible {
    right: 0;
}

.control-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f5f5f5;
}

.control-panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.layer-btn {
    background: #4a90e2;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    margin-right: 5px;
}

.layer-btn:hover {
    background: #357abd;
}

.delete-element-btn {
    background: #ff4444;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    margin-right: 5px;
}

.delete-element-btn:hover {
    background: #cc0000;
}

.reset-canvas-btn {
    background: #ff8800;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    margin-right: 5px;
}

.reset-canvas-btn:hover {
    background: #cc6600;
}

.close-panel {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.close-panel:hover {
    color: #333;
}

.control-panel-content {
    padding: 20px;
}

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

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.control-group input[type="number"],
.control-group input[type="text"],
.control-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.control-group input[type="range"] {
    width: calc(100% - 40px);
    margin-right: 10px;
}

.control-group input[type="range"] + span {
    display: inline-block;
    width: 30px;
    text-align: right;
    font-size: 14px;
    color: #666;
}

.control-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e6e6e6;
}

.control-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #333;
}

.control-section button {
    margin-top: 8px;
    padding: 8px 12px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.control-section button:hover {
    background: #333;
}

.inline-controls {
    display: flex;
    gap: 8px;
}

.inline-controls input {
    width: 100%;
}

.inline-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.control-panel textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

.canvas-text {
    min-width: 120px;
    min-height: 30px;
    padding: 6px 8px;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.canvas-image img {
    display: block;
    max-width: 400px;
    height: auto;
}

.canvas-image {
    overflow: hidden;
    display: inline-block;
}

.mask-square {
    border-radius: 0;
}

.mask-rounded {
    border-radius: 16px;
}

.mask-circle {
    border-radius: 50%;
}

.mask-oval {
    border-radius: 50% / 65%;
}

.canvas-line {
    background: #111;
}

.canvas-table {
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
}

.canvas-table td,
.canvas-table th {
    padding: 8px 10px;
    min-width: 60px;
    border: 1px dashed rgba(0, 0, 0, 0.2);
}

.canvas-table-bordered td,
.canvas-table-bordered th {
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.canvas-context-menu {
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    padding: 6px;
    display: none;
    z-index: 10001;
}

.canvas-context-menu.visible {
    display: block;
}

.canvas-context-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 6px 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.canvas-context-menu button:hover {
    background: #f0f0f0;
}

/* ============================================
   HERO SCENE - Secção Animada
   ============================================ */

.hero-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1000;
    padding: 0;
}


.hero-content {
    position: relative;
    width: 100%;
    max-width: 620px;
    padding: 60px 40px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: 'Playfair Display', serif;
    color: #111;
    min-height: 100vh;
    justify-content: flex-start;
    align-items: stretch;
}

/* Duas colunas independentes para número, LOOK WHO'S, espaço vazio e imagem */
.hero-top-grid {
    display: flex;
    gap: 0;
    width: 100%;
    min-height: 500px;
    height: 60vh;
    position: relative;
    margin-top: -30px;
    margin-bottom: 0;
    border: none;
}

/* Coluna esquerda: número "6" e espaço vazio */
.hero-left-column {
    flex: 1;
    height: 100%;
    display: grid;
    grid-template-rows: 7fr 3fr;
    min-height: 0;
    border-right: none;
}

/* Coluna direita: LOOK WHO'S e imagem */
.hero-right-column {
    flex: 1;
    height: 100%;
    display: grid;
    grid-template-rows: 3fr 7fr;
    min-height: 0;
}

/* Número grande "6" - coluna esquerda, ocupa 70% altura (7fr) */
.hero-number {
    font-size: clamp(340px, 68vw, 580px);
    font-weight: 400;
    line-height: 0.75;
    color: #111;
    z-index: 1;
    pointer-events: none;
    font-family: 'Fraunces', serif;
    font-optical-sizing: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: -12%;
    justify-content: center;
    border-bottom: none;
    min-height: 0;
    margin-top: 150px;
}

/* Secção "LOOK WHO'S" - coluna direita, ocupa 30% altura (3fr) */
.hero-look-section {
    text-align: left;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-bottom: none;
    min-height: 0;
    padding-top: 35%;
    padding-left: 20px;
}

.hero-text-look,
.hero-text-whos {
    font-size: clamp(28px, 5.5vw, 45px);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    color: #111;
    font-family: 'Fraunces', serif;
    font-optical-sizing: auto;
}

/* Espaço vazio - coluna esquerda, ocupa 30% altura (3fr) */
.hero-empty-space {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

/* Célula da foto - coluna direita, ocupa 70% altura (7fr) */
.hero-photo-cell {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 0;
}

/* Foto oval da criança - máscara oval vertical */
.hero-image {
    position: relative;
    width: clamp(168px, 31.5vw, 230px);
    aspect-ratio: 2.1/3.4;
    z-index: 2;
    border-radius: 50% / 50%;
    overflow: hidden;
    margin-left: -5%;
}

.hero-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 132%;
    height: 132%;
    object-fit: cover;
    object-position: 60% 100%;
    display: block;
    margin-left: -16%;
    margin-top: -5%;
}

.hero-image img {
    width: 132%;
    height: 132%;
    object-fit: cover;
    object-position: 60% 100%;
    display: block;
    margin-left: -16%;
    margin-top: -5%;
}

/* Secção "SUSANA IS TURNING 60!" */
.hero-name-section {
    text-align: left;
    margin: -20px 0 8px;
    z-index: 2;
    position: relative;
}

.hero-text-name,
.hero-text-age {
    font-size: clamp(32px, 6vw, 50px);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    color: #111;
    font-family: 'Fraunces', serif;
    font-optical-sizing: auto;
}

.hero-text-name {
    margin-bottom: 4px;
}

/* Texto "COME AND CELEBRATE" */
.hero-text-invite {
    font-size: clamp(14px, 2.5vw, 18px);
    color: #555;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 300;
    text-align: left;
    margin-top: -8px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

/* Detalhes do evento */
.hero-details {
    display: flex;
    flex-direction: column;
    margin: 0px 0 3px 0;
    position: relative;
    z-index: 2;
}

.hero-details-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

.hero-detail-separator-top,
.hero-detail-separator-bottom {
    width: 100%;
    height: 1px;
    background: #D8D8D8;
    display: block;
    opacity: 0;
}

.hero-details-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    text-align: left;
}

.hero-detail-weekday,
.hero-detail-daymonth {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    text-align: left;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.hero-detail-separator-h {
    width: 100%;
    height: 1px;
    background: #D8D8D8;
    display: block;
    margin: 2px 0;
    opacity: 0;
}

.hero-detail-separator-v {
    width: 1px;
    height: 100%;
    background: #D8D8D8;
    min-height: 40px;
    display: block;
    opacity: 0;
}

.hero-detail-time {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

    .hero-content {
        padding-top: 10px;
    }
}

/* Endereço */
.hero-address {
    margin: 2px 0 0 0;
    text-align: left;
    position: relative;
    z-index: 2;
}

.hero-address-line {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

/* Margem superior apenas em desktop */
@media (min-width: 769px) {
    .hero-address {
        margin-top: 8px;
    }
    
    /* Garantir que campos e botões tenham a mesma largura em desktop */
    .guest-row {
        padding: 0;
        grid-template-columns: 1fr 1fr auto;
        gap: 16px;
        width: 100%;
    }
    
    .guest-row .form-group {
        margin-bottom: 24px;
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 24px;
    }
}

/* Botão CTA */
.hero-cta-button {
    margin-top: 5px;
    padding: 16px 40px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: clamp(14px, 2.5vw, 16px);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    align-self: center;
    opacity: 0;
}

.hero-cta-button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-cta-button:active {
    transform: translateY(0);
}


/* ============================================
   FORM SECTION - Formulário de Inscrição
   ============================================ */

.form-section {
    display: none;
    min-height: 100vh;
    padding: 60px 20px;
    background: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: visible;
}

/* Garantir que o body e html sejam brancos quando o formulário estiver visível */
body.form-visible,
body.form-visible html {
    background: #ffffff !important;
}

html.form-visible {
    background: #ffffff !important;
}

/* Garantir que o form-section seja branco */
.form-section[style*="display: block"],
.form-section:not([style*="display: none"]) {
    background: #ffffff !important;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.form-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 36px);
    color: #111;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 400;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #111;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #111;
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 24px;
}

.submit-btn:hover {
    background: #333;
}

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

/* Estilos para múltiplos convidados */
#guests-container {
    margin-bottom: 20px;
    overflow: visible;
}

.guest-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    position: relative;
    width: 100%;
}

.guest-row .form-group {
    margin-bottom: 0;
}

.remove-guest-btn {
    position: absolute;
    right: -140px;
    bottom: 0;
    padding: 12px 20px;
    background: transparent;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: fit-content;
}

/* Primeiro botão remover fica invisível */
.guest-row[data-index="0"] .remove-guest-btn {
    display: none;
}

.remove-guest-btn:hover {
    background: #d32f2f;
    color: #fff;
}

.add-guest-btn {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: #111;
    border: 1px solid #111;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.add-guest-btn:hover {
    background: #111;
    color: #fff;
}

/* Responsividade para múltiplos convidados */
@media (max-width: 768px) {
    .guest-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
        padding-top: 20px;
        border-top: 1px solid #e0e0e0;
    }
    
    /* Primeiro convidado não tem linha separadora */
    .guest-row[data-index="0"] {
        border-top: none;
        padding-top: 0;
    }
    
    .guest-row .form-group {
        margin-bottom: 0;
    }
    
    .guest-row .form-group label {
        margin-bottom: 6px;
        font-size: 0.8em;
    }
    
    .guest-row .form-group input {
        padding: 10px 14px;
        font-size: 0.9em;
    }

    .remove-guest-btn {
        position: static;
        width: 100%;
        margin-top: 8px;
        padding: 10px 16px;
        font-size: 0.85em;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .add-guest-btn {
        margin-bottom: 20px;
    }
    
    .submit-btn {
        margin-top: 24px;
    }
}

/* Modal de confirmação de telemóvel */
.phone-confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.phone-confirm-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.phone-confirm-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #111;
    margin-bottom: 20px;
    font-weight: 400;
}

.phone-confirm-content p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.phone-confirm-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.phone-confirm-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.phone-confirm-back {
    background: transparent;
    color: #111;
    border: 1px solid #111;
}

.phone-confirm-back:hover {
    background: #f5f5f5;
}

.phone-confirm-send {
    background: #111;
    color: #fff;
}

.phone-confirm-send:hover {
    background: #333;
}

@media (max-width: 768px) {
    .phone-confirm-content {
        padding: 30px 20px;
    }

    .phone-confirm-buttons {
        flex-direction: column;
    }

    .phone-confirm-btn {
        width: 100%;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-content {
        padding: 60px 15px 30px 15px;
        max-width: 100%;
    }

    .hero-top-grid {
        min-height: 400px;
        height: 55vh;
        /* Mantém flex-direction: row para manter 2 colunas lado a lado */
    }

    .hero-left-column,
    .hero-right-column {
        /* Mantém flex: 1 para manter proporção 50/50 */
        min-height: 0;
    }

    .hero-number {
        font-size: clamp(400px, 100vw, 620px);
        line-height: 0.85;
        height: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        margin-top: -20%;
        margin-left: -12%;
    }

    .hero-text-look,
    .hero-text-whos {
        font-size: clamp(32px, 7vw, 48px);
    }

    .hero-look-section {
        padding-top: 3%;
    }

    .hero-photo-cell {
        align-items: flex-start;
        justify-content: flex-start;
        padding-left: 0;
    }

    .hero-image {
        width: 100%;
        height: 95%;
        max-width: 100%;
        max-height: 95%;
        aspect-ratio: 2.6/4.2;
        border-radius: 50% / 50%;
        margin: 0;
        margin-left: -12%;
        margin-top: -25%;
    }

    .hero-top-grid {
        margin-bottom: 0 !important;
    }

    .hero-name-section {
        margin-top: -110px !important;
        margin-bottom: 0 !important;
    }

    .hero-text-name,
    .hero-text-age {
        font-size: clamp(32px, 7vw, 48px);
    }

    .hero-text-invite {
        font-size: clamp(16px, 3vw, 20px);
    }

    .hero-text-invite {
        font-size: clamp(16px, 3vw, 20px);
        margin-top: 8px !important;
        margin-bottom: 5px !important;
    }

    .hero-details {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
        padding: 6px 8px;
        margin-top: 8px !important;
        margin-bottom: 0 !important;
    }

    .hero-details-date {
        gap: 2px;
    }

    .hero-detail-weekday,
    .hero-detail-daymonth {
        font-size: clamp(16px, 3vw, 18px);
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        letter-spacing: 0.18em;
    }

    .hero-detail-time {
        font-size: clamp(18px, 3.5vw, 22px);
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        letter-spacing: 0.18em;
    }

    .hero-address {
        margin-top: 8px !important;
        margin-bottom: 0 !important;
    }

    .hero-address-line {
        font-size: clamp(15px, 3vw, 18px);
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        letter-spacing: 0.18em;
    }

    .hero-cta-button {
        margin-top: 15px !important;
    }

    .hero-detail-separator-v {
        min-height: 35px;
    }

    .hero-detail-time {
        text-align: center;
    }

    .form-section {
        padding: 40px 16px;
    }

    .form-container {
        padding: 32px 24px;
    }
}

/* Desktop - ajustes específicos */
@media (min-width: 1025px) {
    .hero-photo-cell {
        align-items: flex-start;
        padding-top: 0;
    }
    
    .hero-image {
        width: clamp(200px, 38vw, 280px);
        aspect-ratio: 2.4/3.4;
        z-index: 2;
        margin-top: -10px;
    }
    
    .hero-look-section {
        padding-top: 30%;
        z-index: 3;
    }
    
    .hero-right-column {
        row-gap: 60px;
    }
}
