.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-secondary-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-purple);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 8, 23, 0.95);
    /* Deeper navy for modal backdrop */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    /* Habilita scroll se o modal for maior que a tela */
    padding: 2rem 0;
    /* Respiro vertical para mobile */
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-primary-navy);
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: auto;
    /* Mantém centralizado mas permite scroll do pai */
}

@media (max-width: 480px) {
    .modal {
        align-items: flex-start;
        /* No mobile, começa do topo para facilitar scroll */
        padding: 1rem;
    }

    .modal-content {
        padding: 2.5rem 1.5rem 1.5rem;
        /* Mais espaço no topo para o botão X */
        width: 100%;
        border-radius: 20px;
    }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    /* Playful interaction */
}