:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00f0ff;
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, #1a1a24 0%, #050505 100%);
}

.form-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.form-container {
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ccc;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"] {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input::placeholder {
    color: #555;
}

.input-group input[type="text"]:focus,
.input-group input[type="email"]:focus,
.input-group input[type="tel"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #fff;
}

.radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--input-bg);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 18px;
    height: 18px;
    border: 2px solid var(--input-border);
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.radio-label input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--accent-color);
}

.radio-label input[type="radio"]:checked::before {
    transform: scale(1);
}

.radio-label input[type="radio"]:checked {
    border-color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #000;
    background: linear-gradient(45deg, var(--accent-color), #00a2ff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
}

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

/* Success Section */
.success-container {
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

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

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #00a2ff);
    color: #000;
    font-size: 3rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 30px;
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
}

.success-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.4;
}

.success-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}



/* Map Section */
.map-section {
    margin-top: 30px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.map-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.map-shape-wrapper {
    position: relative;
    width: 100%;
    height: 340px; /* Made bigger */
}

.map-shape-container {
    width: 100%;
    height: 100%;
    /* Cyberpunk double opposite bevel shape */
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    background: #000;
    position: relative;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    background: #000; /* Fixes white gaps between tiles */
    outline: none;
    filter: contrast(1.05) brightness(0.95) saturate(0.9);
}

.leaflet-container {
    background: #000 !important;
}

.map-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 400;
}

/* Map marker styles */
.city-marker {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color), 0 0 30px var(--accent-color);
}

.city-marker::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(0, 217, 255, 0.45);
    border-radius: 50%;
    animation: pulseMarker 2.5s infinite;
}

.city-label {
    margin-top: 12px;
    transform: translateX(-35%);
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.1);
}

@keyframes pulseMarker {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.leaflet-control-attribution {
    display: none !important;
}

.cities-list {
    margin-top: 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.5;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
}

/* Responsividade (Mobile) */
@media (max-width: 768px) {
    body {
        align-items: flex-start; /* Evita que o formulário corte o topo em telas menores */
        padding: 30px 0;
    }

    .form-wrapper {
        padding: 15px;
        margin: 0 auto;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 0;
    }

    .form-wrapper {
        padding: 10px;
    }

    .form-container, .success-container {
        padding: 25px 20px;
    }

    .logo {
        font-size: 2rem;
    }

    .form-header p {
        font-size: 0.85rem;
    }

    .map-shape-wrapper {
        height: 260px; /* Reduz altura do mapa no mobile */
    }

    .map-shape-container {
        clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    }

    .map-title {
        font-size: 0.8rem;
    }

    .city-label {
        font-size: 8px;
        padding: 6px 10px;
    }
}
