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

:root {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #d4a574;
    --border-color: #d4a574;
    --button-gradient-start: #d4a574;
    --button-gradient-end: #8b6f47;
    --input-bg: #000000;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.form-wrapper {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(212, 165, 116, 0.2);
    position: relative;
    margin-bottom: 40px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--button-gradient-start), var(--button-gradient-end));
    transition: width 0.3s ease;
    width: 0%;
}

.form-page {
    display: none;
    padding: 40px 30px;
    animation: fadeIn 0.4s ease-in-out;
}

.form-page.active {
    display: block;
}

/* Hero Page Styles */
.hero-page {
    padding: 0 !important;
    min-height: auto;
}

.hero-image-container {
    width: 100%;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-image-full {
    width: 100%;
    max-height: 300px;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

.hero-placeholder {
    width: 100%;
    max-height: 300px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 20px;
}

/* Shield and Key Placeholder Graphics */
.shield-key-graphic {
    position: relative;
    width: 300px;
    height: 400px;
    z-index: 1;
}

.shield {
    width: 250px;
    height: 320px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 8px solid #d4a574;
    border-radius: 20px 20px 60px 20px;
    position: relative;
    margin: 0 auto;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.8);
}

.shield::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #d4a574, #b8945f, #d4a574);
    border-radius: 20px 20px 60px 20px;
    z-index: -1;
    opacity: 0.3;
}

.shield-rivets {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shield-rivets span {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #d4a574;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.8);
}

.shield-rivets span:nth-child(1) { top: 10px; left: 50%; transform: translateX(-50%); }
.shield-rivets span:nth-child(2) { top: 50%; left: 10px; }
.shield-rivets span:nth-child(3) { top: 50%; right: 10px; }
.shield-rivets span:nth-child(4) { bottom: 20px; left: 20px; }
.shield-rivets span:nth-child(5) { bottom: 20px; right: 20px; }
.shield-rivets span:nth-child(6) { top: 30px; left: 20px; }
.shield-rivets span:nth-child(7) { top: 30px; right: 20px; }
.shield-rivets span:nth-child(8) { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.key {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 180px;
    z-index: 2;
}

.key-head {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4a574 0%, #b8945f 100%);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    margin: 0 auto;
    box-shadow: 
        0 0 20px rgba(212, 165, 116, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.key-head::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.key-shaft {
    width: 12px;
    height: 100px;
    background: linear-gradient(135deg, #d4a574 0%, #b8945f 100%);
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.5);
}

.key-bit {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #d4a574 0%, #b8945f 100%);
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.5);
    position: relative;
}

.key-bit::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
}

.hero-form-section {
    padding: 40px;
    background: var(--bg-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
    opacity: 0.9;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-help {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    line-height: 1.4;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    border-color: var(--button-gradient-start);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4a574' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    padding-right: 45px;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-continue,
.btn-back {
    flex: 1;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-continue {
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 165, 116, 0.4);
}

.btn-continue:active {
    transform: translateY(0);
}

.btn-continue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-back:hover {
    background: rgba(212, 165, 116, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(212, 165, 116, 0.05);
    border-color: var(--button-gradient-start);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--button-gradient-start);
}

.checkbox-label span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: var(--text-secondary);
    font-weight: 500;
}

.mensagem {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.mensagem.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 2px solid #10b981;
    display: block;
}

.mensagem.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 2px solid #ef4444;
    display: block;
}

/* Validação visual */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Responsividade */
@media (max-width: 968px) {
    .hero-placeholder {
        min-height: 300px;
        padding: 30px;
    }

    .shield-key-graphic {
        width: 250px;
        height: 350px;
    }

    .shield {
        width: 200px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        max-width: 100%;
    }

    .form-wrapper {
        min-height: 500px;
    }

    .form-page {
        padding: 30px 20px;
    }

    .hero-image-container {
        max-height: 200px;
    }

    .hero-image-full {
        max-height: 200px;
    }

    .hero-placeholder {
        max-height: 200px;
        min-height: 120px;
        padding: 15px;
    }

    .business-club {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .hero-form-section {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .form-input {
        padding: 14px 18px;
        font-size: 0.95rem;
    }

    .btn-continue,
    .btn-back {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .shield-key-graphic {
        width: 200px;
        height: 300px;
    }

    .shield {
        width: 160px;
        height: 200px;
    }

    .key {
        width: 50px;
        height: 150px;
    }
}

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

    .form-page {
        padding: 25px 15px;
    }

    .hero-image-container {
        max-height: 150px;
    }

    .hero-image-full {
        max-height: 150px;
    }

    .hero-placeholder {
        max-height: 150px;
        min-height: 100px;
        padding: 10px;
    }

    .hero-form-section {
        padding: 25px 15px;
    }

    .shield-key-graphic {
        width: 180px;
        height: 250px;
    }

    .shield {
        width: 140px;
        height: 180px;
        border-width: 6px;
    }

    .key {
        width: 40px;
        height: 120px;
    }
}

/* Animações de transição */
.form-page {
    position: relative;
}

.form-page.slide-out-left {
    animation: slideOutLeft 0.3s ease-in-out;
}

.form-page.slide-out-right {
    animation: slideOutRight 0.3s ease-in-out;
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Termos de Privacidade */
.termos-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.termos-text {
    color: var(--text-primary);
    line-height: 1.8;
}

.termos-text h3 {
    color: var(--text-secondary);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.termos-text h3:first-child {
    margin-top: 0;
}

.termos-text p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.termos-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.termos-text li {
    margin-bottom: 8px;
    opacity: 0.9;
}

/* Página de Agradecimento */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--bg-primary);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
}

.thank-you-page .hero-image-container {
    width: 100%;
    max-height: 50vh;
    overflow: visible;
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-page .hero-image-full {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
}

.thank-you-content {
    text-align: center;
    max-width: 500px;
    padding: 0 20px 40px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--button-gradient-start), var(--button-gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-primary);
    font-weight: bold;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.thank-you-message {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.thank-you-submessage {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}
